@extends('admin.layouts.app') @section('title', 'Exam Details') @section('content')

Exam Details

@if($exam->description)
Description

{{ $exam->description }}

@endif
Exam Settings
@if($exam->time_limit) @endif
Course: {{ $exam->material->course->title ?? 'N/A' }}
Attempts: {{ $exam->attempts }}
Pass Score: {{ $exam->pass_score }}%
Max Score: {{ $exam->max_score }}
Time Limit: {{ $exam->time_limit }} minutes
Marking Scheme
Correct Answer: +{{ $exam->mark_correct }} marks
Wrong Answer: {{ $exam->mark_wrong }} marks
Shuffle Questions: @if($exam->shuffle_questions) Yes @else No @endif
Shuffle Options: @if($exam->shuffle_options) Yes @else No @endif
Publish Results: @if($exam->publish_results) Yes @else No @endif
@if($exam->start_time || $exam->end_time)
Schedule
@if($exam->start_time) @endif @if($exam->end_time) @endif
Start Time: {{ \Carbon\Carbon::parse($exam->start_time)->format('d-m-Y, g:i A') }}
End Time: {{ \Carbon\Carbon::parse($exam->end_time)->format('d-m-Y, g:i A') }}
@endif

Exam Questions ({{ $exam->examQuestions->count() }})

@if($exam->examQuestions->count() > 0) @foreach($exam->examQuestions as $index => $examQuestion)
Question {{ $index + 1 }}
{{ $examQuestion->question->question_type }}

{{ $examQuestion->question->question_text }}

@if($examQuestion->question->questionOptions->count() > 0)
Options:
    @foreach($examQuestion->question->questionOptions as $option)
  • {{ chr(64 + $option->sort_order) }} {{ $option->option_text }} @if($option->is_correct) @endif
  • @endforeach
@endif @if($examQuestion->question->explanation)
Explanation: {{ $examQuestion->question->explanation }}
@endif
@endforeach @else

No questions added to this exam yet.

Add Questions
@endif

Statistics

{{ $stats['total_questions'] ?? 0 }}

Questions

{{ $stats['total_attempts'] ?? 0 }}

Attempts

{{ number_format($stats['average_score'] ?? 0, 1) }}%

Avg Score

{{ number_format($stats['pass_rate'] ?? 0, 1) }}%

Pass Rate

Status

@if ($exam->status === 'active') Active @elseif ($exam->status === 'scheduled') Scheduled @elseif ($exam->status === 'completed') Completed @elseif ($exam->status === 'archived') Archived @else Draft @endif
@endsection