@extends('layouts.nurse') @section('title', 'Today\'s Appointments - Health Records') @section('content')

Today's Appointments

{{ \Carbon\Carbon::parse($date)->format('l, F j, Y') }}

Total Appointments

{{ $appointments->count() }}

Scheduled Today

View History
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(session('info'))
{{ session('info') }}
@endif
@forelse($appointments as $appointment) @empty @endforelse
Time Patient IC Number Zone Color Code Record Status Actions
{{ $appointment->slot_label }} {{ $appointment->mother->expectantMother->ic_number ?? 'N/A' }} @if($appointment->mother->expectantMother && $appointment->mother->expectantMother->currentAssignment) {{ $appointment->mother->expectantMother->currentAssignment->zone->zone_code }} @else Unassigned @endif @if($appointment->mother->expectantMother) @else N/A @endif @php // Check if health record exists for this appointment $healthRecord = \App\Models\MaternalHealthRecord::where('clinic_appointment_id', $appointment->id)->first(); @endphp @if($healthRecord) {{ $healthRecord->status_label }} @else No Record @endif @php $healthRecord = \App\Models\MaternalHealthRecord::where('clinic_appointment_id', $appointment->id)->first(); @endphp @if($healthRecord) Edit Record @else Create Record @endif

No appointments scheduled for today

Check back later or view the appointment calendar

@if($appointments->count() > 0)

Total Appointments

{{ $appointments->count() }}

Assigned to You

{{ $appointments->count() }}

Time Slots

{{ $appointments->count() }}

@endif
@endsection