{{-- ═══════════════════════════════════════════════════════════ --}} {{-- SYSTEM HEALTH HERO --}} {{-- ═══════════════════════════════════════════════════════════ --}}
{{-- Uptime Ring --}}
{{ $systemHealth['uptime_percentage'] }}% Uptime

{{ __('System Health Monitor') }}

{{ __('Executive Telemetry') }}

{{ __('Real-time system health, active sessions, and user metrics') }}

{{-- Quick Health Stats --}}

{{ $systemHealth['active_users_now'] }}

{{ __('Active Now') }}

{{ $systemHealth['api_latency_ms'] }}ms

{{ __('API Latency') }}

{{ $systemHealth['cache_hit_rate'] }}%

{{ __('Cache Hit') }}

{{ $systemHealth['active_today'] }}

{{ __('Active Today') }}

{{-- ═══════════════════════════════════════════════════════════ --}} {{-- SYSTEM METRICS CARDS --}} {{-- ═══════════════════════════════════════════════════════════ --}}
{{-- CPU Usage --}}
{{ __('CPU Usage') }} {{ $systemHealth['cpu_usage'] }}%
{{-- Memory Usage --}}
{{ __('Memory Usage') }} {{ $systemHealth['memory_usage'] }}%
{{-- DB Query Time --}}
{{ __('DB Query Time') }} {{ $systemHealth['db_queries_ms'] }}ms
{{-- Storage --}}
{{ __('Storage') }} {{ $systemHealth['storage_used_gb'] }}GB / {{ $systemHealth['storage_total_gb'] }}GB
{{-- ═══════════════════════════════════════════════════════════ --}} {{-- ACTIVE SESSIONS + USER METRICS --}} {{-- ═══════════════════════════════════════════════════════════ --}}
{{-- Active Sessions --}}

{{ __('Active Sessions') }}

{{ $activeSessions['live_classrooms'] }}

{{ __('Live Classrooms') }}

@if($activeSessions['live_classrooms'] > 0) {{ __('Live') }} @endif

{{ $activeSessions['active_exams'] }}

{{ __('Active Exams') }}

{{ $activeSessions['pending_submissions'] }}

{{ __('Pending Submissions') }}

{{ $activeSessions['active_parents'] }}

{{ __('Active Parents') }}

{{-- User Metrics by Role --}}

{{ __('User Activity by Role') }}

@foreach($userMetrics as $role => $metrics) @php $roleColors = [ 'student' => ['bg' => 'bg-blue-100 dark:bg-blue-900/20', 'text' => 'text-blue-600', 'bar' => 'bg-blue-500', 'icon' => '👥'], 'teacher' => ['bg' => 'bg-emerald-100 dark:bg-emerald-900/20', 'text' => 'text-emerald-600', 'bar' => 'bg-emerald-500', 'icon' => '🎓'], 'parent' => ['bg' => 'bg-purple-100 dark:bg-purple-900/20', 'text' => 'text-purple-600', 'bar' => 'bg-purple-500', 'icon' => '👨‍👩‍👧'], 'admin' => ['bg' => 'bg-amber-100 dark:bg-amber-900/20', 'text' => 'text-amber-600', 'bar' => 'bg-amber-500', 'icon' => '⚙️'], ]; $color = $roleColors[$role] ?? $roleColors['student']; @endphp
{{ $color['icon'] }}
{{ ucfirst($role) }} {{ $metrics['active_today'] }} / {{ $metrics['total'] }} {{ __('active today') }}
{{ $metrics['activity_rate'] }}%
@endforeach
{{-- ═══════════════════════════════════════════════════════════ --}} {{-- RECENT ACTIVITY FEED --}} {{-- ═══════════════════════════════════════════════════════════ --}}

{{ __('Recent Activity Feed') }}

@if(count($recentActivity) > 0)
@foreach($recentActivity as $activity)
{{ $activity['icon'] }}

{{ $activity['title'] }}

{{ $activity['description'] }}

{{ $activity['time'] }}
@endforeach
@else

📭

{{ __('No recent activity') }}

@endif
@push('scripts') @endpush