@foreach ($attempt->exam->questions as $index => $question)

{{ $index + 1 }}. {!! $question->question_text !!}

@if ($question->question_type->value === 'mcq')
@foreach ($question->options as $option) @endforeach
@else @endif
@endforeach {{ __('Submit exam') }}