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

Exam Details

{{ $exam->title }}

{{ $exam->exam_type }} @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->difficulty_level) {{ $exam->difficulty_level }} @endif @if($exam->test_type) {{ config('academix.test_types.' . $exam->test_type, $exam->test_type) }} @endif @if($exam->is_free_test) 🎁 Free Test @endif @if($exam->status === 'published') ● Published @else ● Draft @endif
@if(session('success'))
✅ {{ session('success') }}
@endif {{-- QUICK STATS --}}

Duration

{{ $exam->duration_minutes }} min

Questions

{{ $exam->questions_count ?? $exam->questions->count() }}

Total Marks

{{ $exam->total_marks ?? 0 }}

Pass %

{{ $exam->pass_percentage ?? 40 }}%

{{-- DETAIL GRID --}}
{{-- Test Structure --}}

Test Structure

Exam Type {{ $exam->exam_type }}
Test Type {{ config('academix.test_types.' . $exam->test_type, $exam->test_type) }}
Subject {{ $exam->subject ?: '—' }}
Topic {{ $exam->topic ?: '—' }}
Difficulty {{ $exam->difficulty_level ?: '—' }}
Language {{ config('academix.languages.' . $exam->language, $exam->language ?? 'both') }}
Question Source {{ config('academix.question_sources.' . $exam->question_source, $exam->question_source ?? 'Manual') }}
{{-- Marking & Timing --}}

Marking & Timing

Total Questions {{ $exam->questions_count ?? $exam->questions->count() }}
Marks per Question {{ $exam->marks_per_question ?? 1 }}
Total Marks {{ $exam->total_marks ?? 0 }}
Duration {{ $exam->duration_minutes }} minutes
Pass Percentage {{ $exam->pass_percentage ?? 40 }}%
Negative Marking @if($exam->negative_enabled) −{{ $exam->negative_marking }} per wrong answer @else Not enabled @endif
{{-- Schedule --}}

Schedule

Start Time @if($exam->start_time) {{ \Carbon\Carbon::parse($exam->start_time)->format('d M Y • h:i A') }} @else — @endif
End Time @if($exam->end_time) {{ \Carbon\Carbon::parse($exam->end_time)->format('d M Y • h:i A') }} @else — @endif
Free Test {{ $exam->is_free_test ? '🎁 Yes (For new students)' : 'No' }}
Status {{ ucfirst($exam->status) }}
{{-- Security & Proctoring --}}

Security & Proctoring

Anti-Cheat Level {{ ucfirst($exam->anti_cheat_level ?? 'Standard') }}
Proctoring {{ $exam->proctoring_enabled ? 'Enabled' : 'Disabled' }}
@if($exam->proctoring_enabled)
Camera {{ $exam->require_camera ? 'Required' : 'Not required' }}
Microphone {{ $exam->require_microphone ? 'Required' : 'Not required' }}
Max Warnings {{ $exam->max_warnings ?? 5 }}
Pre-Exam Countdown {{ $exam->pre_exam_countdown_seconds ?? 10 }} sec

Violation Checks:

@if($exam->detect_no_face) No Face @endif @if($exam->detect_multiple_faces) Multiple Faces @endif @if($exam->detect_talking) Talking @endif @if(!$exam->detect_no_face && !$exam->detect_multiple_faces && !$exam->detect_talking) No violation rules enabled @endif
@endif
{{-- Description --}} @if($exam->description)

Description

{{ $exam->description }}
@endif
{{-- ACTION BUTTONS --}}

Actions

✎ Edit Exam 📝 Manage Questions ({{ $exam->questions_count ?? $exam->questions->count() }}) + Add Question @if($exam->violations()->exists()) ⚠ Review Violations @endif
@csrf
@endsection