@if (!empty($input['value']))
@php
$i = 0;
@endphp
@foreach ($input['value']->questions as $question)
@if ($question->deleted_at == null)
@if ($question->exam->type_questions == 'custom' || ($question->exam->type_questions == 'random' && $question->show_in_exam_randomly == true) )
@if ($question->answer_type == 'true_false')
{{-- radio --}}
@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)
@endforeach
@endif
@endif
@endif
@php
$i++;
@endphp
@endif
@endforeach
@endif