@extends('layouts.admin-sidebar') @section('title', 'Admin Dashboard') @section('page-title', 'Dashboard') @section('page-description', 'Overview of your fintech platform') @section('content')

Total Users

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

{{ number_format($stats['active_users']) }} active

Pending KYC

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

{{ number_format($stats['approved_kyc']) }} approved

Transactions

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

₦{{ number_format($stats['total_transaction_volume'] / 1000000, 1) }}M volume

Active Cards

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

{{ number_format($stats['total_wallets']) }} wallets

@if($stats['pending_kyc'] > 0 || $stats['blocked_users'] > 0 || $stats['frozen_wallets'] > 0)

System Alerts

@if($stats['pending_kyc'] > 0)

{{ $stats['pending_kyc'] }} Pending KYC

Require approval

@endif @if($stats['blocked_users'] > 0)

{{ $stats['blocked_users'] }} Blocked Users

Need review

@endif @if($stats['frozen_wallets'] > 0)

{{ $stats['frozen_wallets'] }} Frozen Wallets

Temporary freeze

@endif
@endif

Quick Actions

Recent Users

View all
@if($recentUsers->count() > 0)
@foreach($recentUsers as $user)
{{ strtoupper(substr($user->first_name, 0, 1) . substr($user->last_name, 0, 1)) }}

{{ $user->full_name }}

{{ $user->email }}

{{ $user->created_at->diffForHumans() }}

View
@endforeach
@else

No recent users

@endif

Recent Transactions

View all
@if($recentTransactions->count() > 0)
@foreach($recentTransactions as $transaction)

{{ ucfirst(str_replace('_', ' ', $transaction->category)) }}

{{ $transaction->user->full_name ?? 'Unknown User' }}

{{ $transaction->created_at->format('M d, H:i') }}

{{ $transaction->type === 'credit' ? '+' : '-' }}₦{{ number_format($transaction->amount, 2) }}

{{ ucfirst($transaction->status) }}
@endforeach
@else

No recent transactions

@endif
@if($pendingKyc->count() > 0)

Pending KYC Verifications

View all
@foreach($pendingKyc as $kyc)
{{ strtoupper(substr($kyc->user->first_name, 0, 1) . substr($kyc->user->last_name, 0, 1)) }}

{{ $kyc->user->full_name }}

{{ strtoupper($kyc->type) }} Verification

{{ $kyc->created_at->diffForHumans() }}

Review
@endforeach
@endif
@endsection