@php $aptDate = $appointment->appointment_date ? $appointment->appointment_date->format('Y-m-d') : \Carbon\Carbon::today()->toDateString(); @endphp