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

Total Users

{{ $totalUsers }}

{{ $activeUsers }} active

Survey Completions

{{ $totalCompletions }}

{{ $todayCompletions }} today

Total Rewards Paid

${{ number_format($totalRewards, 2) }}

${{ number_format($totalPaidOut, 2) }} withdrawn

Pending Requests

{{ $pendingDeposits + $pendingWithdrawals }}

{{ $pendingDeposits }} deposits, {{ $pendingWithdrawals }} withdrawals

Active Surveys

{{ $activeSurveys }}

of {{ $totalSurveys }} total

Active Plans (users)

{{ $activePlans }}

currently subscribed

Total Withdrawn

${{ number_format($totalPaidOut, 2) }}

approved withdrawals

Recent Users

View All
@foreach($recentUsers as $u)

{{ $u->name }}

{{ $u->email }}

{{ $u->is_active ? 'Active' : 'Suspended' }}

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

@endforeach

Recent Payment Requests

View All
@forelse($recentPayments as $p)

{{ $p->user->name ?? 'N/A' }}

{{ ucfirst($p->type) }} via {{ $p->paymentMethod->name ?? 'N/A' }}

${{ number_format($p->amount, 2) }}

{{ ucfirst($p->status) }}
@empty
No recent payments.
@endforelse
@endsection