@extends('layouts.admin') @section('title', 'Dashboard') @section('content')
@foreach([ ['Total Users', number_format($stats['total_users']), '👤'], ['Total Transactions', number_format($stats['total_transactions']), '📊'], ['Total Deposit', '$'.number_format($stats['total_deposit'], 2), '➕'], ['Pending Deposit', '$'.number_format($stats['pending_deposit'], 2), '⏳'], ['Total Withdraw', '$'.number_format($stats['total_withdraw'], 2), '📤'], ['Pending Withdraw', '$'.number_format($stats['pending_withdraw'], 2), '➖'], ['Total Transfer', '$'.number_format($stats['total_transfer'], 2), '🔄'], ['Today Transfer', '$'.number_format($stats['today_transfer'], 2), '📅'], ] as [$label, $value, $icon])

{{ $label }}

{{ $value }}

{{ $icon }}
@endforeach
Recent System Activity
@forelse($activities as $activity) @empty @endforelse
{{ $activity->user->name }}
{{ ucfirst($activity->type) }}
${{ number_format($activity->amount, 2) }} {{ $activity->outcome }}
No activity yet
@endsection