@extends('layouts.super') {{-- You can rename to layouts.super later --}} @section('content')

Super Admin Dashboard - {{ $district->name ?? 'My District' }}

Overview of users, Dewans, revenue, and activity across your entire district.

Users

Total Users

{{ $metrics['totalUsers'] ?? 0 }}

Total Admins

{{ $metrics['totalAdmins'] ?? 0 }}

Active Users (30d)

{{ $metrics['activeUsers'] ?? 0 }}

Dewans

Active Dewans

{{ $metrics['activeDewans'] ?? 0 }}

Total Dewans

{{ $metrics['totalDewans'] ?? 0 }}

Bookings & Reservations

Total Reservations

{{ $metrics['totalReservations'] ?? 0 }}

Total Bookings

{{ $metrics['totalBookings'] ?? 0 }}

Revenue Summary

Total Revenue

RM{{ number_format($metrics['totalRevenue'] ?? 0, 2) }}

Facility Revenue

RM{{ number_format($metrics['facilityRevenue'] ?? 0, 2) }}

Reservation Revenue

RM{{ number_format($metrics['reservationRevenue'] ?? 0, 2) }}

Booking & Revenue Analytics

Top 10 Dewans by Revenue

Performance Summary

In the past 30 days, your district has processed {{ $metrics['totalBookings'] ?? 0 }} facility bookings and {{ $metrics['totalReservations'] ?? 0 }} Dewan reservations, generating a combined revenue of RM{{ number_format($metrics['totalRevenue'] ?? 0, 2) }}. The top performer is {{ $metrics['topDewan']->name ?? 'N/A' }} with total earnings of RM{{ number_format($metrics['topDewan']->revenue ?? 0, 2) }}.

@endsection