@php $question_number = $loop->index + 1; $answers = explode('|', $attemptedQuestions?->answer) ?? []; $option_text = $attemptedQuestions?->question?->options[0]?->option_text; $options = !empty($option_text) ? explode('|', $option_text) : []; $question_title = str_replace('{{option}}', '_____', $attemptedQuestions?->question?->question_title); @endphp

{{ $question_number }} {{ $question_title}}

@if(!empty($show_result))
{{ __('quiz::quiz.result_point', ['points' => $attemptedQuestions?->marks_awarded, 'total_points' => $attemptedQuestions?->question->points]) }}
@endif
{{ $attemptedQuestions?->result }} @if(!empty($show_result) && !empty($attemptedQuestions?->question?->answer_explanation))

{{ $attemptedQuestions?->is_correct ? __('quiz::quiz.correct_answer') : __('quiz::quiz.wrong_answer') }}

{!! $attemptedQuestions?->question?->answer_explanation !!}

@endif