@extends('unit-admin.layout') @section('title', 'Reports') @section('page_title', 'Reports') @section('content') {{-- โ•โ• UNIT IDENTITY BANNER (same as dashboard) โ•โ• --}}
๐Ÿ“Š
{{ $unit->name ?? 'Your Unit' }} โ€” Reports
{{ $unit->district->name ?? '' }} ยท {{ $unit->district->state->name ?? '' }}  ยท  {{ now()->format('d M Y') }}
Back to Dashboard
{{-- โ•โ• STAT CARDS โ€” 4 columns matching dashboard โ•โ• --}}
โ— All
{{ $totalMembers }}
Total Members
โ— Pending
{{ $pendingMembers }}
Pending Approval
โ— Active
{{ $activeMembers }}
Active Members
โ— Revenue
โ‚น{{ number_format($totalAmountCollected) }}
Total Collected
{{-- โ•โ• CHARTS ROW 1 โ€” Line + Status Donut (same layout as dashboard) โ•โ• --}}
Registrations & Revenue โ€” Last 6 Months
Member Status
{{ $totalMembers }}
TOTAL
@foreach([ ['Active', 'var(--green)', $activeMembers], ['Approved', 'var(--accent)', $approvedMembers], ['Pending', 'var(--orange)', $pendingMembers], ['Rejected', 'var(--red)', $rejectedMembers], ] as [$lbl,$col,$cnt])
{{ $lbl }}
{{ $cnt }}
@endforeach
{{-- โ•โ• CHARTS ROW 2 โ€” Type donut + Plan bars + Monthly revenue โ•โ• --}}
{{-- Type split โ€” same style as dashboard plan type card --}}
Plan Type
{{ $totalMembers }}
TOTAL
Life
{{ $lifeMembers }}
Revenue
โ‚น{{ number_format($planBreakdown->where('type','LIFE')->sum('total_amount')) }}
Annual
{{ $annualMembers }}
Revenue
โ‚น{{ number_format($planBreakdown->where('type','ANNUAL')->sum('total_amount')) }}
{{-- Revenue by Plan --}}
Revenue by Plan
@php $colors = ['var(--accent)','var(--green)','var(--gold)','var(--purple)','var(--orange)']; @endphp @forelse($planBreakdown as $i => $plan)
{{ $plan->plan_name }} ({{ $plan->count }}) โ‚น{{ number_format($plan->total_amount) }}
@empty
No plan data yet
@endforelse
{{-- Monthly revenue bar --}}
Monthly Revenue
{{-- โ•โ• REPORT BUTTONS HUB โ•โ• --}}
Report Categories
Click a report to view details below
{{-- โ•โ• REPORT SECTIONS โ•โ• --}} {{-- โ”€โ”€ 1. MEMBER BY STATUS โ”€โ”€ --}}
Member by Status
{{-- Clickable status cards โ€” same style as dashboard --}}
@foreach([ ['PENDING', 'var(--orange)', $pendingMembers, 'fa-clock'], ['APPROVED', 'var(--accent)', $approvedMembers, 'fa-check-circle'], ['ACTIVE', 'var(--green)', $activeMembers, 'fa-user-check'], ['REJECTED', 'var(--red)', $rejectedMembers, 'fa-times-circle'], ] as [$lbl,$col,$cnt,$ico])
{{ $lbl }}
{{ $cnt }}
@endforeach
@include('unit-admin.partials.report-initial')
{{-- โ”€โ”€ 2. MEMBER BY TYPE โ”€โ”€ --}} {{-- โ”€โ”€ 3. REVENUE REPORT โ”€โ”€ --}} {{-- โ”€โ”€ 4. PENDING MEMBERS โ”€โ”€ --}} {{-- โ”€โ”€ 5. MONTHLY REPORT โ”€โ”€ --}} @endsection @section('scripts') @endsection