@extends('layouts.app') @section('title', 'Manage Questions') @section('page-title', 'Questions — ' . $exam->title) @section('content')

{{ $exam->title }}

{{ $questions->count() }} question(s) · {{ $exam->total_marks }} total marks · {{ $exam->duration_minutes }} min
@if($exam->status === 'draft' && $questions->count() > 0)
@csrf
@endif @if($exam->status === 'published')
@csrf
@endif Candidates
Add Question
@csrf
@for($i = 0; $i < 4; $i++)
@if($i >= 2) @endif
@endfor

Select the radio button next to the correct answer.

Questions ({{ $questions->count() }})
Total: {{ $exam->total_marks }} marks
@forelse($questions as $i => $question)
{{ $i+1 }}
{{ \App\Models\Question::TYPES[$question->type] }} {{ $question->marks }} mark{{ $question->marks > 1 ? 's' : '' }}
@csrf @method('DELETE')

{{ $question->question_text }}

@if($question->options->count())
@foreach($question->options as $opt) {{ $opt->is_correct ? '✓' : '○' }} {{ $opt->option_text }} @endforeach
@endif @if($question->explanation)

{{ $question->explanation }}

@endif
@empty
No questions yet. Use the form above to add your first question.
@endforelse
@push('scripts') @endpush @endsection