@php $doctor = $appointment->doctor; $service = $appointment->service; $dt = $appointment->scheduled_at; @endphp
Ciao Dott. {{ $doctor?->name }},
hai ricevuto una nuova prenotazione.
Quando: {{ $dt?->format('d/m/Y') }} alle {{ $dt?->format('H:i') }}
@if($service)
Prestazione: {{ $service->name }}
@endif
Paziente: {{ $appointment->patient_name }}
@if(!empty($appointment->patient_phone))
Telefono: {{ $appointment->patient_phone }}
@endif
@if(!empty($appointment->patient_email))
Email: {{ $appointment->patient_email }}
@endif
eDocly