@php $getNextQuestionCount = $allResults['getNextQuestionCount']; $class_session_id = $allResults['class_session_id']; $type = $allResults['type']; @endphp @if($getNextQuestionCount > 0) @php $question = $allResults['getQuizWiseQuestion'][0]; $getSingleQuiz = $allResults['getSingleQuiz']; $getStudentQuizQuestionAnswer = $allResults['getStudentQuizQuestionAnswer']; $studentQuizResultId = $allResults['studentQuizResultId']; $questionCount = 0; $checkedOptionIds = array(); foreach ($getStudentQuizQuestionAnswer as $singleOpt) { $checkedOptionIds[] = $singleOpt->question_option_id; } @endphp
@if($question->question_type == 1 || $question->question_type == 2) @php $questionOptionCount = 0; @endphp @foreach($question->options as $option) @php $questionOptionCount++; @endphp
@if($question->question_type == 1) id, $checkedOptionIds) ? 'checked' : '') }} onclick="optionInfo()"> @elseif($question->question_type == 2) id, $checkedOptionIds) ? 'checked' : '') }} onclick="optionInfo()"> @endif
@endforeach @endif
@endif