@extends('layouts.admin') @section('title', 'Admin Dashboard') @section('page-title', 'Dashboard') @section('content')

Admin Dashboard

Platform overview and management.

Total Users

{{ number_format($stats['total_users']) }}

+{{ $stats['new_users_today'] }} today

Total Transactions

{{ number_format($stats['total_transactions']) }}

{{ $stats['successful_transactions'] }} successful

Total Revenue

₦{{ number_format($stats['total_revenue'], 2) }}

₦{{ number_format($stats['today_revenue'], 2) }} today

Total Volume

₦{{ number_format($stats['total_volume'], 2) }}

{{ $stats['pending_transactions'] }} pending

Recent Transactions

@forelse($recentTransactions as $tx) @empty @endforelse
User Service Amount Status
{{ $tx->user->first_name }} {{ $tx->user->last_name }} {{ $tx->service_name }} ₦{{ number_format($tx->total_amount, 2) }} @if($tx->status === 'successful') OK @elseif($tx->status === 'failed') Failed @else {{ ucfirst($tx->status) }} @endif
No transactions yet.

Recent Users

@forelse($recentUsers as $u) @empty @endforelse
Name Email Role Joined
{{ $u->first_name }} {{ $u->last_name }} {{ $u->email }} {{ ucfirst($u->role) }} {{ $u->created_at->format('M d') }}
No users yet.
@endsection