@csrf
@foreach ($questions as $idx => $question)
{{ __("Question:") }} {{ $question["question"] }}
{{ __("Answer:") }} @if ($question["answer_type"] == "single_answer") @elseif ($question["answer_type"] == "single_choice") @foreach ($question["answers"] as $answer) @endforeach @elseif ($question["answer_type"] == "multiple_choice") @foreach ($question["answers"] as $answer)
{{ $answer }}
@endforeach @endif
@endforeach
{{ __("End test") }}