@extends('layouts.admin') @section('page_kicker', 'Platform') @section('page_title', 'Super admin overview') @section('content')

Hospitals

{{ $stats['hospitals'] }}

Users

{{ $stats['users'] }}

Independent doctors

{{ $stats['independent_doctors'] }}

Hospital doctors

{{ $stats['hospital_doctors'] }}

Patients

{{ $stats['patients'] }}

Appointments

{{ $stats['appointments'] }}

Revenue

${{ number_format((float) $stats['revenue'], 2) }}

Daily user growth

New or active user signals by day.

@php($maxUsers = max(1, (int) $dailyUsers->max('total')))
@foreach($dailyUsers as $point)
{{ $point->day }} {{ $point->total }}
@endforeach

Monthly revenue

Platform-wide payment totals.

@php($maxRevenue = max(1, (float) $monthlyRevenue->max('total')))
@foreach($monthlyRevenue as $point)
{{ $point->month }} ${{ number_format((float) $point->total, 2) }}
@endforeach

Recent activity logs

Cross-module audit trail.

@forelse($activityLogs as $log)

{{ $log->event_type }} in {{ $log->module }}

{{ $log->user->name ?? 'system' }} ยท {{ $log->created_at }}

@empty

No logs available yet.

@endforelse
@endsection