@extends('layouts.admin') @section('title', 'Overview') @section('content') @php $totalCommunity = $totalPatients + $totalDoctors + $totalVolunteers; @endphp
{{-- WELCOME HEADER --}}

Dashboard

Welcome back, {{ auth()->user()->name ?? 'Administrator' }}. System is running optimized.

{{-- ENTERPRISE STATS CARDS (Accent Top) --}}
{{-- PATIENTS --}}

Total Patients

{{ number_format($totalPatients) }}

@if($newPatientsToday > 0)
+{{ $newPatientsToday }} New Today
@else
No new registrations today
@endif
{{-- DOCTORS --}}

Verified Doctors

{{ number_format($totalDoctors) }}

Thoroughly Vetted
{{-- VOLUNTEERS --}}

Volunteers

{{ number_format($totalVolunteers) }}

{{ $activeCampaigns }} Active Regions
{{-- PENDING --}}

Pending

{{ number_format($pendingApprovals) }}

{{ $pendingApprovals > 0 ? 'Action Required' : 'All Caught Up' }}
{{-- QUICK ACTIONS & STATS --}}
{{-- SHORTCUTS --}} {{-- ACTIVITY --}}

Live Activity Feed

System Optimization Complete

Automated maintenance cleaned up temporary files and optimized database indexes.

10:00 AM - Server Bot

New Patient Registration

@if($newPatientsToday > 0) {{ $newPatientsToday }} new members joined the community today. @else Waiting for new members today. @endif

Today

End of recent activity
@endsection