@extends('layouts.admin') @section('title', 'Dashboard') @section('content') @push('styles') @endpush @php // Digest all profile data provided by controller $summary = [ [ 'label' => 'Athletes', 'count' => $members->athletes_all ?? 0, 'today' => $members->athletes_today ?? 0, 'icon' => 'fa-person-running', 'color' => 'primary' ], [ 'label' => 'Coach', 'count' => $members->coach_all ?? 0, 'today' => $members->coach_today ?? 0, 'icon' => 'fa-user-graduate', 'color' => 'info' ], [ 'label' => 'Referee', 'count' => $members->referee_all ?? 0, 'today' => $members->referee_today ?? 0, 'icon' => 'fa-award', 'color' => 'success' ], [ 'label' => 'Doctor', 'count' => $members->doctor_all ?? 0, 'today' => $members->doctor_today ?? 0, 'icon' => 'fa-user-md', 'color' => 'danger' ], [ 'label' => 'Physiotherapist', 'count' => $members->physiotherapist_all ?? 0,'today' => $members->physiotherapist_today ?? 0, 'icon' => 'fa-dumbbell', 'color' => 'secondary' ], [ 'label' => 'Manager', 'count' => $members->manager_all ?? 0, 'today' => $members->manager_today ?? 0, 'icon' => 'fa-user-tie', 'color' => 'dark' ], [ 'label' => 'Media', 'count' => $members->media_all ?? 0, 'today' => $members->media_today ?? 0, 'icon' => 'fa-bullhorn', 'color' => 'primary' ], [ 'label' => 'Fan', 'count' => $members->fan_all ?? 0, 'today' => $members->fan_today ?? 0, 'icon' => 'fa-heart', 'color' => 'info' ], [ 'label' => 'Official', 'count' => $members->official_all ?? 0, 'today' => $members->official_today ?? 0, 'icon' => 'fa-clipboard-check', 'color' => 'warning' ], [ 'label' => 'Other', 'count' => $members->other_all ?? 0, 'today' => $members->other_today ?? 0, 'icon' => 'fa-users', 'color' => 'secondary' ], ]; @endphp
@foreach($summary as $card)
{{ $card['label'] }}
{{ $card['count'] }}
{{ $card['today'] }} today
@endforeach
@push('scripts') @endpush {{-- Critical Alert: Stuck Users with Payments @php $stuckUsers = \App\Models\User::join('payments', 'portal_users.id', '=', 'payments.user_id') ->where('payments.status', 'captured') ->where('payments.purpose', 'UID Registration') ->where(function($q) { $q->whereNull('portal_users.reg_uid') ->orWhere('portal_users.reg_uid', '') ->orWhere('portal_users.paid', 0); }) ->count(); @endphp @if($stuckUsers > 0) @endif --}}
Pending top 10 applications for approval All-Applications
# Application ID Name Profile State District Action
Profile Ratio
Total Profiles
@include('admin.dashboard.migration-stats-card', ['stats' => $migrationStats])
@endsection @push('scripts') @endpush @push('scripts') @endpush