@extends('layouts.admin') @section('content')
{{-- HERO --}}
Admin Command Center
{{-- PENDING REQUESTS CARD --}} {{--

Notifications

{{ $pendingProfileRequestCount ?? 0 }}

{{ ($pendingProfileRequestCount ?? 0) > 0 ? 'Review student department/semester change requests.' : 'No pending change requests right now.' }}

View Requests
--}}
{{-- STATS --}}
{{-- EXAM TYPE BREAKDOWN --}}

Exam Overview

Test Distribution by Exam Type

Manage Exams โ†’
{{-- TWO COLUMN: Recent Exams + Recent Results --}}
{{-- RECENT EXAMS --}}

Content

Recent Tests

View All โ†’
{{-- RECENT RESULTS --}}

Activity

Recent Attempts

View All โ†’
@forelse($recentResults as $result)

{{ $result->user->name ?? 'Student' }}

{{ $result->exam->title ?? 'Test' }}

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

{{ number_format($result->percentage, 1) }}%

{{ $result->status }}

@empty
No attempts yet.
@endforelse
{{-- TWO COLUMN: Top Students + Weak Subjects --}}
{{-- TOP STUDENTS --}}

Leaderboard

Top Performers

@forelse($topStudents as $index => $row)
@if($loop->first) ๐Ÿฅ‡ @elseif($loop->iteration == 2) ๐Ÿฅˆ @elseif($loop->iteration == 3) ๐Ÿฅ‰ @else #{{ $index + 1 }} @endif
{{ $row->user->name }}

{{ $row->user->name }}

{{ $row->attempts }} attempts

{{ number_format($row->avg_percentage, 1) }}%
@empty
No data yet.
@endforelse
{{-- WEAK SUBJECTS --}}

โš ๏ธ Attention Areas

Weakest Subjects

Overall student performance across subjects

@forelse($weakSubjects as $weak)

{{ $weak->subject }}

{{ $weak->attempts }} attempts

{{ number_format($weak->avg_pct, 1) }}%

@empty
No subject-wise data yet.
@endforelse
{{-- QUICK ACTIONS --}}

Administration

Quick Actions

Platform Health

System Overview

๐ŸŽ Free Tests Used {{ $freeTestsUsed }}
๐Ÿ“ Total Questions {{ $totalQuestions }}
๐Ÿ“Š Average Score {{ $avgScore ? number_format($avgScore, 1) . '%' : 'โ€”' }}
โณ Pending Requests {{ $pendingProfileRequestCount }}
๐Ÿ“ˆ Active Exams {{ $activeExams }}
@endsection