Daily Appointments Report

{{ $clinic->name }}

{{ $dateObj->format('l, F j, Y') }}
Total
{{ $stats['total'] }}
Confirmed
{{ $stats['confirmed'] }}
Completed
{{ $stats['completed'] }}
Cancelled
{{ $stats['cancelled'] }}
@foreach($timeSlots as $slot => $data)
{{ count($data['appointments']) }} {{ count($data['appointments']) == 1 ? 'Patient' : 'Patients' }}

{{ $slot }} ({{ $data['period'] }} Session)

@if(count($data['appointments']) > 0) @foreach($data['appointments'] as $index => $apt) @endforeach
# Patient Name IC Number Phone Assigned Nurse Status
{{ $index + 1 }} {{ $apt->mother->name }} {{ $apt->mother->expectantMother->ic_number ?? 'N/A' }} {{ $apt->mother->expectantMother->phone_number ?? $apt->mother->phone_number ?? 'N/A' }} {{ $apt->assignedNurse->name ?? 'Not assigned' }} {{ ucfirst($apt->status) }}
@else
No appointments for this time slot
@endif
@endforeach