@extends('layouts.app') @section('title', 'Review ยท '.$quiz->title) @section('content')

{{ $quiz->title }}

{{ $quiz->category_label }} {{ $quiz->subject->name ?? '-' }} · Attempt #{{ $attempt->attempt_no }} · @if($best && $best->id === $attempt->id) · Best attempt @endif
Assessment home All assessments
@if($attempt->status === 'submitted')
Some responses need teacher review. Your score and feedback will be final once manual grading is complete.
@endif @if($attempt->teacher_feedback)

Teacher feedback

Overall comments on this attempt.
{{ $attempt->teacher_feedback }}
@endif

Answer feedback

@if($showAnswers) Each response shows what you answered, the correct answer and an explanation. @else Your teacher has chosen to release scores only. Correct answers are hidden. @endif
@forelse($answers as $index => $answer) @php $question = $answer->question; @endphp @if(!$question) @continue @endif
Q{{ $index + 1 }} {{ $question->type_label }} @if($answer->is_correct === true) Correct @elseif($answer->is_correct === false) Incorrect @elseif($question->isManual()) Awaiting review @else No answer @endif {{ num($answer->awarded, 1) }} / {{ num($question->marks, 1) }} marks
{{ $question->prompt }}
Your answer
{{ $answer->display_answer }}
@if($showAnswers)
Correct answer
{{ $question->correctAnswerText() }}
@endif
@if($answer->feedback)
{{ $answer->feedback }}
@elseif($question->isManual())
Your teacher will add feedback after reviewing this response against the rubric.
@endif @if($showAnswers && $question->explanation && !$answer->feedback)
Why: {{ $question->explanation }}
@endif
@empty @endforelse
Attempts used: {{ num($attemptsUsed) }} of {{ num($quiz->attempts_allowed) }}. @if($attemptsUsed < (int) $quiz->attempts_allowed) You can improve your score with another attempt while the assessment is open. @endif
Assessment home @if($attemptsUsed < (int) $quiz->attempts_allowed && $quiz->status === 'published' && $quiz->availableNow())
@csrf
@endif
@endsection