{{-- --}} @if(!empty($input['answers']))

نتيجة الاختبار : {{ $input['answers']->note }} درجة

@endif @if(!empty($input['answers']))
@if (!empty($input['value'])) @php $i = 0; @endphp @foreach ($input['value']->questions as $question) @if ($question->deleted_at == null)
{{ $question->question }} @if($question->show_note) الدرجة ({{ $question->note }}) @endif
@if ($question->exam->type_questions == 'custom' || ($question->exam->type_questions == 'random' && $question->show_in_exam_randomly == true) ) @if ($question->answer_type == 'true_false') {{-- radio --}}
{{-- --}}
@foreach ($input['options'] as $option)
answers) and $input['answers']->answers[$i] == $option['value']) checked @endif value="{{ $option['value'] }}" id="{{ $input['id'] }}_{{ $option['value'] }}" {!! $input['value'] == $option['value'] ? 'checked' : '' !!} />
@endforeach
@endif @if ($question->answer_type == 'multiple_choice') @if ($question->answers) @php $mergedArray = array_merge($question->answers, $question->correct_answer); shuffle($mergedArray); @endphp @foreach ($mergedArray as $value)
answers) and in_array($value,$input['answers']->answers[$i])) checked @endif id="{{ $input['id'] }}_" {!! (is_array($input['value'])) ? 'checked' : '' !!} />
@endforeach @endif @endif @endif
@php $i++; @endphp @endif @endforeach @endif
@endif