@extends('layouts.super') @section('content')

District Report – {{ $district->name ?? 'My District' }}

Overview of Dewan performance, revenue, and bookings across the entire district.

Total Dewans

{{ $district->dewans->count() }}

Total Bookings

{{ $bookings->count() }}

Active Dewans

{{ $district->dewans->where('status', 'active')->count() }}

@foreach($district->dewans as $dewan) @php $bookingData = $bookingsPerDewan->firstWhere('dewan_id', $dewan->id); $revenueData = $revenuePerDewan->firstWhere('dewan_id', $dewan->id); @endphp @endforeach
Dewan Name Total Bookings Revenue (RM)
{{ $dewan->name }} {{ $bookingData->total ?? 0 }} RM{{ number_format($revenueData->revenue ?? 0, 2) }}
@endsection