@extends('layouts.admin') @section('content')

Admin Dashboard

Welcome to the administration panel

Total Releases

{{ number_format($stats['releases'] ?? 0) }}

{{ number_format($stats['releases_today'] ?? 0) }} today

Active Users

{{ number_format($stats['users'] ?? 0) }}

{{ $stats['users_today'] ?? 0 }} registered today

Active Groups

{{ number_format($stats['active_groups'] ?? 0) }}

{{ number_format($stats['groups'] ?? 0) }} total groups

Failed Releases

{{ number_format($stats['failed'] ?? 0) }}

@if(isset($userStats))

User Statistics

Total Users

{{ number_format($userStats['summary']['total_users']) }}

Downloads Today

{{ number_format($userStats['summary']['downloads_today']) }}

Downloads (7d)

{{ number_format($userStats['summary']['downloads_week']) }}

API Hits Today

{{ number_format($userStats['summary']['api_hits_today']) }}

API Hits (7d)

{{ number_format($userStats['summary']['api_hits_week']) }}

Users by Role

@php $totalUsers = collect($userStats['users_by_role'])->sum('count'); @endphp @foreach($userStats['users_by_role'] as $roleData) @endforeach @if(empty($userStats['users_by_role'])) @endif
Role Count Percentage
{{ ucfirst($roleData['role']) }} {{ number_format($roleData['count']) }} {{ $totalUsers > 0 ? number_format(($roleData['count'] / $totalUsers) * 100, 1) : 0 }}%
No data available

Top Downloaders (Last 7 Days)

@foreach($userStats['top_downloaders'] as $index => $downloader) @endforeach @if(empty($userStats['top_downloaders'])) @endif
Rank Username Downloads
@if($index === 0) @elseif($index === 1) @elseif($index === 2) @else {{ $index + 1 }} @endif {{ $downloader->username }} {{ number_format($downloader->download_count) }}
No downloads in the last 7 days

Downloads (Last 7 Days)

API Hits (Last 7 Days)

@endif

System Status

Database Connected
Cache Active
Queue Running
Disk Space {{ $stats['disk_free'] ?? 'N/A' }} available

Recent Activity

@if(isset($recent_activity) && count($recent_activity) > 0) @foreach($recent_activity as $activity)

{{ $activity->message }}

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

@endforeach @else

No recent activity

@endif

Quick Links

@endsection @push('scripts') @if(isset($userStats)) @endif @endpush