@extends('layouts.admin') @section('content')
{{-- ============ HEADER ============ --}}

Results

Completed Exams

View performance, attempts, and per-student breakdown

{{-- ============ KPI STRIP ============ --}}

Completed Exams

{{ $totalExams ?? 0 }}

Total Attempts

{{ $totalAttempts ?? 0 }}

Pass Rate

{{ number_format($passRate ?? 0, 1) }}%

Avg Score

{{ number_format($avgScore ?? 0, 1) }}%

{{-- ============ SEARCH + FILTER ============ --}}
{{-- Search --}}
@if($selectedExamType) @endif @if($search || $selectedExamType) Reset @endif
{{-- Filter Pills --}}
{{-- ============ DESKTOP TABLE ============ --}} @if($exams->count() > 0)
@foreach($exams as $exam) {{-- Title --}} {{-- Exam Type --}} {{-- Subject --}} {{-- Topic --}} {{-- Difficulty --}} {{-- Test Type --}} {{-- Attempts --}} {{-- Action --}} @endforeach
Exam Type Subject Topic Difficulty Test Type Attempts Action

{{ $exam->title }}

{{ $exam->exam_type ?? 'N/A' }} @if($exam->subject && $exam->subject !== 'All Subjects') 📚 {{ $exam->subject }} @elseif($exam->subject === 'All Subjects') 📚 All Subjects @else — @endif @if($exam->topic) → {{ $exam->topic }} @else — @endif @if($exam->difficulty_level) {{ $exam->difficulty_level }} @else — @endif @if($exam->test_type) {{ ucwords(str_replace('_', ' ', $exam->test_type)) }} @else — @endif {{ $exam->results_count ?? 0 }} View Students
{{-- ============ MOBILE CARDS ============ --}}
@foreach($exams as $exam)
{{ $exam->exam_type ?? 'N/A' }} @if($exam->difficulty_level) {{ $exam->difficulty_level }} @endif
{{ $exam->results_count ?? 0 }}

{{ $exam->title }}

@if($exam->subject && $exam->subject !== 'All Subjects') 📚 {{ $exam->subject }} @elseif($exam->subject === 'All Subjects') 📚 All Subjects @endif @if($exam->topic) → {{ $exam->topic }} @endif
@if($exam->test_type) {{ ucwords(str_replace('_', ' ', $exam->test_type)) }} @endif
@endforeach
@else

📭

No completed exams yet

@if($search || $selectedExamType) Try adjusting your filters or search query @else Exams with at least one attempt will appear here @endif

@endif
@endsection