@extends('tyro-dashboard::layouts.admin') @section('title', 'Admin Dashboard') @section('breadcrumb') Dashboard @endsection @section('content')
Total Users
{{ number_format($stats['total_users'] ?? 0) }}
Total Roles
{{ number_format($stats['total_roles'] ?? 0) }}
Total Privileges
{{ number_format($stats['total_privileges'] ?? 0) }}
Suspended Users
{{ number_format($stats['suspended_users'] ?? 0) }}
@if(config('tyro-dashboard.features.invitation_system', true))
Invitation Links
{{ number_format($stats['total_invitations'] ?? 0) }}
Total Referrals
{{ number_format($stats['total_referrals'] ?? 0) }}
@endif

Recent Users

View All
@if(isset($stats['recent_users']) && $stats['recent_users']->count())
@foreach($stats['recent_users'] as $recentUser) @endforeach
@if($recentUser->profile_photo_path || ($recentUser->use_gravatar && $recentUser->email)) {{ $recentUser->name }} @else {{ strtoupper(substr($recentUser->name, 0, 1)) }} @endif
{{ $recentUser->name }}
@if(method_exists($recentUser, 'isSuspended') && $recentUser->isSuspended()) Suspended @else Active @endif
@else

No users found.

@endif

Role Distribution

Manage Roles
@if(isset($stats['role_distribution']) && $stats['role_distribution']->count())
@foreach($stats['role_distribution'] as $roleStat) @endforeach
{{ $roleStat['name'] }} {{ $roleStat['count'] }} users
@else

No roles found.

@endif
@endsection