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

Manage Exams

All Tests

View, edit and publish all exams across every exam type.

+ Create Exam
{{-- ============ SUCCESS MESSAGE ============ --}} @if(session('success'))
{{ session('success') }}
@endif {{-- ============ RECENT EXAMS ============ --}}

📋 Recent Tests

Latest tests created across all exam types

@if($recentExams->count() > 0) {{ $recentExams->count() }} {{ Str::plural('test', $recentExams->count()) }} @endif
@if($recentExams->count() > 0) {{-- ============ DESKTOP TABLE ============ --}}
@foreach($recentExams as $exam) {{-- Test Info --}} {{-- Type Badges --}} {{-- Details --}} {{-- Status --}} {{-- Actions --}} @endforeach
Test Type Details Status Actions

{{ $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 📅 {{ $exam->created_at->format('d M Y') }}
{{ $exam->exam_type }} @if($exam->difficulty_level) {{ $exam->difficulty_level }} @endif @if($exam->is_free_test) 🎁 Free @endif
⏱️ {{ $exam->duration_minutes }}m @if($exam->total_questions > 0) ❓ {{ $exam->total_questions }}Q @endif @if($exam->total_marks > 0) 🎯 {{ $exam->total_marks }}M @endif
@if($exam->status === 'published') ● Published @else ● Draft @endif
@if($exam->status === 'published')
@csrf
@else
@csrf
@endif ✎ 👁
{{-- ============ MOBILE CARDS ============ --}}
@foreach($recentExams as $exam)
{{ $exam->exam_type }} @if($exam->difficulty_level) {{ $exam->difficulty_level }} @endif @if($exam->is_free_test) 🎁 Free @endif
@if($exam->status === 'published') ● Published @else ● Draft @endif

{{ $exam->title }}

@if($exam->subject && $exam->subject !== 'All Subjects') 📚 {{ $exam->subject }} @endif @if($exam->topic) → {{ $exam->topic }} @endif 📅 {{ $exam->created_at->format('d M Y') }}
⏱️ {{ $exam->duration_minutes }}m @if($exam->total_questions > 0) ❓ {{ $exam->total_questions }}Q @endif @if($exam->total_marks > 0) 🎯 {{ $exam->total_marks }}M @endif
@if($exam->status === 'published')
@csrf
@else
@csrf
@endif ✎ Edit 👁 View
@endforeach
@else

📭

No tests created yet

Click "Create Exam" to add your first test

+ Create First Test
@endif
@endsection