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

Super Admin Dashboard

Total Admins
{{ $totalAdmins }}
Total Users
{{ $totalUsers }}
Total Transactions
{{ $totalTransactions }}
Permissions Available
{{ $totalPermissions }}
Manage Admins
Create Admin
@if($admins->count() > 0)
@foreach($admins as $admin) @endforeach
Name Email Permissions Created Actions
{{ $admin->name }} {{ $admin->email }} {{ $admin->permissions_count }} permissions {{ $admin->created_at->format('M d, Y') }} Permissions
@csrf @method('DELETE')
{{ $admins->links() }}
@else
No admins created yet. Create one now
@endif
System Overview

Total Revenue: {{ number_format($totalRevenue, 2) }}

Total Expenses: {{ number_format($totalExpenses, 2) }}

Net Profit: {{ number_format($totalRevenue - $totalExpenses, 2) }}

Recent Users
    @foreach($recentUsers as $u)
  • {{ $u->name }} · {{ $u->email }}
  • @endforeach
Top Users (by income)
    @foreach($topUsers as $u)
  • {{ $u->name }} — {{ number_format($u->total_income, 2) }}
  • @endforeach
@endsection