BondaCare Logo

BondaCare Zone Management Report

{{ $clinic->name }}

Generated on {{ $generatedDate }} by {{ $generatedBy }}

Clinic Information

Name: {{ $clinic->name }}

Address: {{ $clinic->address ?? 'Not provided' }}

Phone: {{ $clinic->phone ?? 'Not provided' }}

Email: {{ $clinic->email ?? 'Not provided' }}

Summary Statistics

{{ $zones->count() }} Total Zones
{{ $zones->where('is_active', true)->count() }} Active Zones
{{ $zones->filter(function($zone) { return $zone->current_nurse !== null; })->count() }} Assigned Zones
{{ $zones->sum(function($zone) { return $zone->motherAssignments->count(); }) }} Total Mothers
@forelse($zones as $zone)

Zone {{ $zone->zone_code }} - {{ $zone->zone_name }}

Status
{{ $zone->is_active ? 'Active' : 'Inactive' }}
Boundary Notes
{{ $zone->boundary_notes ?? 'No notes' }}
@if($zone->coverage_areas && count($zone->coverage_areas) > 0)
Coverage Areas
{{ implode(', ', $zone->coverage_areas) }}
@endif
Assigned Nurses
@if($zone->nurses && $zone->nurses->count() > 0) @foreach($zone->nurses as $nurse) @endforeach
Name Staff ID Start Date Status
{{ $nurse->name }} {{ $nurse->staff_id ?? 'N/A' }} {{ $nurse->pivot->start_date ? \Carbon\Carbon::parse($nurse->pivot->start_date)->format('M j, Y') : 'N/A' }} @if($nurse->pivot->end_date) Ended @else Active @endif
@else

No nurses assigned to this zone.

@endif
Assigned Mothers
@if($zone->motherAssignments && $zone->motherAssignments->count() > 0) @foreach($zone->motherAssignments as $assignment) @if($assignment->expectantMother) @endif @endforeach
Name Series No. Phone Assigned Date Status
{{ $assignment->expectantMother->mother_full_name ?? 'N/A' }} {{ $assignment->expectantMother->series_number ?? 'N/A' }} {{ $assignment->expectantMother->phone_number ?? 'N/A' }} {{ $assignment->assigned_at ? \Carbon\Carbon::parse($assignment->assigned_at)->format('M j, Y') : 'N/A' }} @if($assignment->ended_at) Ended @else Active @endif
@else

No mothers assigned to this zone.

@endif
@empty

No zones found for this clinic.

@endforelse