@csrf
@foreach ($questions as $key => $question)
{{ ++$key }}
{!! $question->title !!}
@if ($question->type == 'mcq') @php $options = json_decode($question->options, true) ?? []; @endphp @foreach ($options as $index => $option)
{{ $option }}
@endforeach @elseif($question->type == 'fill_blanks')
@elseif($question->type == 'true_false')
{{ get_phrase('True') }}
{{ get_phrase('False') }}
@endif
@endforeach
@if ($questions->count() > 0)
{{ get_phrase('Prev') }}
{{ get_phrase('Next') }}
@if ($submits->count() < $quiz->retake)
{{ get_phrase('Submit') }}
@endif
@endif @include('course_player.init')