@section('title', 'Mother Management - Clinic Admin Dashboard')

Mother Management

View and manage expectant mothers registered under your clinic

@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

Total Mothers

{{ $stats['total'] }}

Active

{{ $stats['active'] }}

Assigned to Zone

{{ $stats['assigned'] }}

Unassigned

{{ $stats['unassigned'] }}

@forelse($mothers as $mother) @empty @endforelse
Series No. Mother Email Phone Number Zone Status Actions
{{ $mother->series_number }}
@if($mother->avatar_url) {{ $mother->mother_full_name }} @else
{{ strtoupper(substr($mother->mother_full_name ?? 'U', 0, 1)) }}{{ strtoupper(substr(explode(' ', $mother->mother_full_name ?? 'U')[1] ?? 'U', 0, 1)) }}
@endif
{{ $mother->user->email ?? 'N/A' }}
{{ $mother->phone_number ?? 'N/A' }}
@if($mother->currentAssignment && $mother->currentAssignment->zone)
{{ $mother->currentAssignment->zone->zone_code }} - {{ $mother->currentAssignment->zone->zone_name }} Nurse: {{ $mother->currentAssignment->nurse->name ?? 'Unassigned' }} {{ ucfirst($mother->currentAssignment->assignment_type) }} assigned
@elseif($mother->zone_assignment_pending)
Auto-assignment failed Address not in coverage areas
@else Unassigned @endif
@if($mother->user && $mother->user->is_active) Active @else Inactive @endif

No mothers found

Try adjusting your search or filters

{{ $mothers->links() }}