@php
// Get all required data
$logoImageUrl = asset('web/doctor/images/logo.png');
$doctorImageUrl = optional($enquiry->doctor)->image_webp ?: optional($enquiry->doctor)->image;
if (!empty($doctorImageUrl)) {
// Check if it's already a full URL
if (!preg_match('/^https?:\/\//i', $doctorImageUrl)) {
// Use url() instead of asset() for emails
$doctorImageUrl = url($doctorImageUrl);
}
} else {
// Use a default image if no doctor image exists
$doctorImageUrl = url('web/doctor/images/doctor-placeholder.png');
}
// Get doctor and user data
$doctorName = optional($enquiry->doctor)->title . ' ' . optional($enquiry->doctor)->name;
$doctorDesignation = optional($enquiry->doctor)->designation;
$patientName = optional($authUser)->name;
// Get patient concern
$patientConcern = optional($enquiry)->message ?? 'No concern mentioned';
@endphp
This secure consultation link is valid for one-time use only. Please do not share it with anyone.
You are receiving this email because a consultation has been scheduled through our platform. This is an automated email; please do not reply. If you did not request this appointment, please contact our support team immediately.