@extends('../themes/' . $activeTheme . '/' . $activeLayout) @section('subhead') Dashboard | {{config('app.name')}} @endsection @section('subcontent')

National Membership - {{$memberCount}}

Reload Data
@foreach(['Main Wing', "Women's League", 'Youth League', 'War Veterans'] as $wingName)
@php $change = $wingStats[$wingName]['change'] ?? 0; $isPositive = $change >= 0; $changeClass = $isPositive ? 'bg-success' : 'bg-danger'; $changeIcon = $isPositive ? 'ChevronUp' : 'ChevronDown'; $changeText = $isPositive ? 'Higher' : 'Lower'; @endphp {{ abs($change) }}%
{{ $wingStats[$wingName]['count'] ?? 0 }}
{{ $wingName }}
@endforeach

Members Report

Province @foreach($wings as $wing) {{ $wing }} @endforeach Total @foreach($tableData as $row) {{ $row['province'] }} @foreach($wings as $wing) {{ $row['counts'][$wing] ?? 0 }} @endforeach {{ $row['total'] }} @endforeach
Membership by Province
@foreach($provData as $provinceName => $data)
{{ $provinceName }} Membership Breakdown by Wing
@php $totalMale = 0; $totalFemale = 0; @endphp @foreach($data as $wing => $counts) @php $totalMale += $counts['Male']; $totalFemale += $counts['Female']; @endphp @endforeach
Wing Male Female Total
{{ $wing }} {{ $counts['Male'] }} {{ $counts['Female'] }} {{ $counts['Male'] + $counts['Female'] }}
Total Membership {{ $totalMale }} {{ $totalFemale }} {{ $totalMale + $totalFemale }}
Graphical Representation
@endforeach
@endsection @pushOnce('scripts') @vite('resources/js/pages/apex.js') @endPushOnce