@php $isPatient = ($recipientType ?? '') === 'patient'; $greetingName = $isPatient ? ($appointment->patient_name ?? 'Patient') : ($appointment->doctor_name ?? 'Doctor'); $bookingRef = $appointment->booking_reference ?? $appointment->id ?? ''; $doctorName = $appointment->doctor_name ?? ''; $date = $appointment->appointment_date ?? null; $time = trim(($appointment->start_time ?? '') . ' - ' . ($appointment->end_time ?? '')); $reason = $appointment->cancellation_reason ?? null; @endphp

Hi {{ $greetingName }},

We're sorry to inform you that your appointment{{ !empty($bookingRef) ? ' (Booking ID: ' . $bookingRef . ')' : '' }} has been cancelled.

@if(!empty($reason))

Cancellation Reason: {{ $reason }}

@endif @if(!empty($date)) @endif @if(!empty($time) && $time !== '-') @endif
Doctor {{ $doctorName }}
Date {{ $date }}
Time {{ $time }}

If you need to reschedule or have any questions, please contact us.