Test Builder
← Back to builder Test Preview {{ $selectedQuestions->count() }} question{{ $selectedQuestions->count() === 1 ? '' : 's' }} • {{ $totalMarks }} marks
Print Test
@if($selectedQuestions->isEmpty())

No questions selected.

@else

GCSE Practice Test

{{ auth()->id() === $targetUser->id ? auth()->user()->name : $targetUser->name }} • {{ now()->format('j M Y') }}

Name: __________________________ Date: ____________

@foreach($selectedQuestions as $index => $question)

Question {{ $index + 1 }}

[{{ $question->marks }} mark{{ $question->marks === 1 ? '' : 's' }}]

{{ $question->question_text }}

@if($question->question_type === 'multiple_choice' && is_array($question->options))
@foreach($question->options as $i => $option)
{{ chr(65 + $i) }} {{ is_array($option) ? ($option['text'] ?? '') : $option }}
@endforeach
@else
@if($question->marks >= 2)
@endif @if($question->marks >= 4)
@endif
@endif
@endforeach

Mark Scheme

@foreach($selectedQuestions as $index => $question)

Q{{ $index + 1 }}

{{ $question->unique_id ?: 'Q' . $question->id }}

{{ \Illuminate\Support\Str::limit($question->question_text, 120) }}

Answer: @if($question->question_type === 'diagram_label' && is_array($question->answer_parts))
@foreach($question->answer_parts as $label => $answer)
{{ $label }}: {{ $answer }}
@endforeach
@else {{ $question->correct_answer ?: 'N/A' }} @endif
@if($question->explanation)

Explanation: {{ $question->explanation }}

@endif
@endforeach
@endif