@forelse ($appointmentsByDate as $date => $items)
{{ \Carbon\Carbon::parse($date)->format('Y-m-d') }}
@foreach ($items as $appointment)
-
{{ $appointment->appointment_no ?? $appointment->id }} -
{{ $appointment->patient?->full_name ?? 'N/A' }}
({{ $appointment->start_time ?? '-' }})
@endforeach
@empty
No appointments found for this month.
@endforelse