@extends('admin.layouts.app') @php $appName = \App\Models\Setting::where('key', 'app_name')->value('value'); @endphp @section('content')

Dashboard

Total Users

{{ $totalUsers }}

16.8%

Since last month

Total Contests

{{ $totalContests }}

3.51%

Since last month

Contest Registrations

{{ $totalRegistrations }}

6.87%

Since last month

Pending Withdrawals

{{ $pendingWithdrawals }}

9.19%

Since last month

Total Withdrawn

₹{{ number_format($totalWithdrawnAmount, 2) }}

16.8%

Since last month

Top Registered Categories

Total Registrations

{{ $categoryChartTotal }}

@forelse ($categoryChartLabels as $index => $label)
{{ $label }}
{{ $categoryChartSeries[$index] ?? 0 }} registrations
@empty
No category registrations found.
@endforelse
Sales Overtime
Latest Withdrawal Requests
    @forelse ($latestWithdrawals as $withdrawal)
  • {{ $withdrawal->user->name ?? 'Unknown User' }}
    {{ $withdrawal->payment_method === 'upi' ? ($withdrawal->upi_id ?? '-') : ($withdrawal->account_number ?? '-') }}
    ₹{{ number_format($withdrawal->amount, 2) }}
    {{ ucfirst($withdrawal->status) }}
    {{ $withdrawal->created_at->format('d M Y h:i A') }}
  • @empty
  • No withdrawal requests found.
  • @endforelse
Latest Users
    @forelse ($latestUsers as $user)
  • {{ strtoupper(substr($user->name, 0, 1)) }}
    {{ $user->name }}
    {{ $user->email }}
    {{ $user->status ? 'Active' : 'Inactive' }} {{ $user->created_at->format('d M Y') }}
  • @empty
  • No users found.
  • @endforelse
Wallet Statistics

₹{{ number_format($walletApprovedAmount, 2) }}

Approved Withdrawals

₹{{ number_format($walletPendingAmount, 2) }}

Pending Withdrawals

Recent Winners
@forelse($recentWinners as $winner) @empty @endforelse
User Contest Rank Score Prize Won At
{{ $winner->user?->name ?? 'Unknown User' }}

{{ $winner->user?->email ?? '-' }}

{{ $winner->contest?->title ?? 'Contest' }}

{{ $winner->contest?->category?->name ?? '-' }}

#{{ $winner->rank }} {{ $winner->score ?? 0 }} {{ $winner->prizeAssignment?->amount ?? '0.00' }}
{{ $winner->submitted_at ? $winner->submitted_at->format('d M Y') : '-' }}

{{ $winner->submitted_at ? $winner->submitted_at->format('h:i A') : '' }}

No winners found.
@endsection @push('scripts') @endpush