@extends('layouts.clinic-admin') @section('title', 'Clinic Admin Dashboard') @section('content')
{{ Auth::user()->clinic->name }}
{{ Auth::user()->clinic->address }}
{{ Auth::user()->clinic->phone }}
{{ Auth::user()->clinic->email }}
No clinic assigned
@endifTotal Nurses
{{ \App\Models\User::where('clinic_id', Auth::user()->clinic_id)->where('role', 'nurse')->where('is_active', true)->count() }}
Active Zones
{{ \App\Models\Zone::where('clinic_id', Auth::user()->clinic_id)->where('is_active', true)->count() }}
Expectant Mothers
{{ \App\Models\ExpectantMother::where('clinic_id', Auth::user()->clinic_id)->count() }}
Clinic Change Requests
{{ \App\Models\ClinicChangeRequest::where('requested_clinic_id', Auth::user()->clinic_id)->where('status', 'PENDING')->count() }}
You have {{ $unassignedMothersCount }} expectant {{ Str::plural('mother', $unassignedMothersCount) }} who {{ $unassignedMothersCount === 1 ? 'has' : 'have' }} not been assigned to any zone yet.
@if($pendingAssignmentCount > 0){{ $pendingAssignmentCount }} {{ Str::plural('mother', $pendingAssignmentCount) }} failed auto-assignment and need manual assignment.
@endifPlease assign them to zones so nurses can provide proper care and monitoring.
Assign Zones Now{{ $mother->mother_full_name }}
{{ $mother->series_number }} • {{ $mother->created_at->diffForHumans() }}