@extends('web.layouts.layout') @section('content')

{{ $headTitle ?? "" }}

@csrf
@if($questions->isNotEmpty()) @foreach($questions as $question)
{{ $question->currentDescription->title ?? "" }}
@if($question->answers->isNotEmpty()) @foreach($question->answers as $answer)
{{-- $errors->has("questions.{$loop->parent->index}.answer_id") ? 'is-invalid' : '' --}} {{-- @checked(old("questions.{$loop->parent->index}.answer_id", $latestExamAnswers[$question->id]->user_answer_id ?? null) == $answer->id) --}}
@endforeach @endif
@endforeach @endif
@if($exam->lesson?->unit?->course_id) {{ __('exams::exams.cancel_exam') }} @endif
@endsection @push('stack_scripts') @endpush