@extends('layouts.state') @section('title', 'User Analytics') @section('content')

User Analytics

Detailed user metrics and demographics for the state

Total Users

{{ $userStats['total'] ?? '0' }}

All Registered
Active Users

{{ $userStats['active'] ?? '0' }}

Approved
Pending

{{ $userStats['pending'] ?? '0' }}

Awaiting Approval
This Month

{{ $userStats['thisMonth'] ?? '0' }}

New Registrations
User Registration Over Time
User Status Distribution
Belt Rank Distribution
Age Group Distribution
Most Active Users
@if(isset($topUsers) && count($topUsers) > 0) @foreach($topUsers as $user) @endforeach @else @endif
User Belt Rank Events Participated Last Activity Status
{{ substr($user->first_name, 0, 1) }}{{ substr($user->last_name, 0, 1) }}
{{ $user->first_name }} {{ $user->last_name }}
{{ $user->email }}
{{ $user->belt_rank ?? 'White Belt' }} {{ $user->events_count ?? 0 }} {{ $user->last_login_at ? $user->last_login_at->diffForHumans() : 'Never' }} @if($user->status == 'approved') Active @elseif($user->status == 'pending') Pending @else Inactive @endif
No user data available
@endsection @push('scripts') @endpush