@extends('layouts.admin') @section('title', 'Dashboard') @section('page_title', 'Dashboard') @section('content') {{-- ── STAT CARDS (clickable) ── --}}
● Total
{{ $totalStates }}
Total States
● Total
{{ $totalDistricts }}
Total Districts
● Total
{{ $totalUnits }}
Total Units
● Total
{{ $totalUnitAdmins }}
Unit Admins
● All
{{ $totalMembers }}
Total Members
● Pending
{{ $pendingMembers }}
Pending Approval
● Approved
{{ $approvedMembers }}
Approved Members
● Active
{{ $activeMembers }}
Active Members
{{-- ── CHARTS ROW ── --}}
{{-- LINE CHART — Monthly Registrations --}}
Member Registrations (Last 6 Months)
{{-- DONUT CHART — Membership Type --}}
Membership Type
{{ $lifeCount }} Life {{ $annualCount }} Annual
{{-- ── SECOND ROW: Status Bar + Top Units ── --}}
{{-- STATUS BAR CHART --}}
Members by Status
{{-- TOP UNITS TABLE --}}
Top Units by Members
@forelse($topUnits as $i => $unit)
{{ $i+1 }}
{{ $unit->name }}
{{ $unit->member_profiles_count }}
@empty
No data yet
@endforelse
{{-- ── RECENT MEMBERS TABLE ── --}}
Recent Members
View all →
@forelse($recentMembers as $member) @empty @endforelse
# Member Unit Type Status Registered
{{ $loop->iteration }}
{{ strtoupper(substr($member->user->name,0,2)) }}
{{ $member->user->name }}
{{ $member->user->email }}
{{ $member->unit->name }} {{ $member->membership_type }} {{ $member->status }} {{ $member->created_at->format('d M Y') }}
No members yet
@endsection @section('scripts') @endsection