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

{{ $headTitle ?? "" }}

@csrf
@if($questions->isNotEmpty()) @foreach($questions as $question)
@if($question->content_type === 'text')
{{ $question->currentDescription->title ?? "" }}
@else
{{ __('exams::exams.question_image') }}
@endif @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(!empty($returnUrl)) {{ __('exams::exams.cancel_exam') }} @endif
@endsection @push('stack_scripts') @endpush