@extends('layouts.super') {{-- You can rename to layouts.super later --}} @section('content')
Overview of users, Dewans, revenue, and activity across your entire district.
Total Users
{{ $metrics['totalUsers'] ?? 0 }}
Total Admins
{{ $metrics['totalAdmins'] ?? 0 }}
Active Users (30d)
{{ $metrics['activeUsers'] ?? 0 }}
Active Dewans
{{ $metrics['activeDewans'] ?? 0 }}
Total Dewans
{{ $metrics['totalDewans'] ?? 0 }}
Total Reservations
{{ $metrics['totalReservations'] ?? 0 }}
Total Bookings
{{ $metrics['totalBookings'] ?? 0 }}
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) }}
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) }}.