@php $isPatient = ($recipientType ?? '') === 'patient'; $greetingName = $isPatient ? ($appointment->patient_name ?? 'Patient') : ($appointment->doctor_name ?? 'Doctor'); $bookingRef = $appointment->booking_reference ?? $appointment->id ?? ''; $newStatus = $appointment->status ?? ''; $oldStatusText = !empty($oldStatus ?? '') ? $oldStatus : null; $date = $appointment->appointment_date ?? null; $time = trim(($appointment->start_time ?? '') . ' - ' . ($appointment->end_time ?? '')); $mode = $appointment->consultation_mode ?? null; $reason = $appointment->cancellation_reason ?? null; @endphp
Hi {{ $greetingName }},
Your appointment status has been updated{{ !empty($bookingRef) ? ' for Booking ID ' . $bookingRef : '' }}.
| Previous Status | {{ $oldStatusText }} |
| New Status | {{ $newStatus }} |
| Date | {{ $date }} |
| Time | {{ $time }} |
| Mode | {{ $mode }} |
| Note | {{ $reason }} |
Thanks,
{{ config('mail.from.name') }}