@extends('layouts.admin') @section('title', 'Super Admin - Multi-Branch Monitoring') @section('page-title', 'Multi-Branch Monitoring') @section('page-subtitle', 'Monitor all church branches from a single dashboard') @section('content')

Organization Overview

Real-time monitoring of all branches

Compare Branches

{{ $stats['total_churches'] }}

Total Branches

{{ number_format($stats['total_members']) }}

Total Members

{{ $stats['total_users'] }}

System Users

GH₵{{ number_format($stats['total_donations'] + $stats['total_tithes'] + $stats['total_welfare'] + $stats['total_offerings'], 0) }}

Total Income

GH₵{{ number_format($stats['total_expenses'], 0) }}

Total Expenses

Financial Trends (All Branches)

Last 6 months

Recent Activity

@forelse($recentActivity as $activity)
@if($activity['type'] === 'donation') @elseif($activity['type'] === 'expense') @else @endif

{{ $activity['description'] }}

{{ $activity['church'] }}

@if($activity['amount']) GH₵{{ number_format($activity['amount'], 0) }} @endif
@empty

No recent activity

@endforelse

Branch Overview

@foreach($churchStats as $church) @endforeach
Branch Members Users Total Income Total Expenses Net Balance Actions

{{ $church->name }}

{{ $church->location ?? 'No location' }}

{{ number_format($church->members_count ?? 0) }} {{ $church->users_count ?? 0 }} GH₵{{ number_format($church->total_income ?? 0, 2) }} GH₵{{ number_format($church->total_expenses ?? 0, 2) }} GH₵{{ number_format(($church->total_income ?? 0) - ($church->total_expenses ?? 0), 2) }} View

Branch Comparison Trends

Income vs Expenses by Branch
@foreach($branchTrends['churches'] as $index => $church)
{{ $church['name'] }}
@endforeach
@foreach($branchTrends['churches'] as $church) @php $totalIncome = array_sum($church['income']); $totalExpenses = array_sum($church['expenses']); $net = $totalIncome - $totalExpenses; @endphp

{{ $church['name'] }}

GH₵{{ number_format($totalIncome, 0) }}

Exp: GH₵{{ number_format($totalExpenses, 0) }}

@endforeach
@endsection @section('inline_scripts') @endsection