@csrf
{{ $exam->title }}
{{ $questions->count() }} Questions ยท {{ $exam->total_marks }} Marks
@foreach($questions as $idx => $question)
Question {{ $idx + 1 }} of {{ $questions->count() }}
{{ $question->question_text }}
{{ $question->marks }} mark{{ $question->marks > 1 ? 's' : '' }}
@if(in_array($question->type, ['multiple_choice', 'true_false'])) @foreach($question->options as $optIdx => $option) @endforeach @elseif($question->type === 'fill_blank') @else @endif
@endforeach