@if (!$token)

لقد قمت بعمل الأختبار ولن تتمكن لعمل الأختبار مرة اخرى

@else @if (!$thanks)

@if ($show)
@dump($customer_answers) Try : {{ $try_index }} index : {{ $index_exam_content }} exam_content : {{ $exam_content }} index_exam_content : {{ $index_exam_content }} @endif @if ($start_exam) @if (!$thanks) @if (!session()->has('exam_time_out_' . $token)) @php $paragraphs = explode("\n", $customer_question['question']['title']); @endphp

@if (isset($paragraphs[0]))
{{ $ui_counter_questions + 1 }}-

{!! $paragraphs[0] !!}

@endif
@if (count($paragraphs) > 0) @for ($i = 1; $i < count($paragraphs); $i++)

{!! $paragraphs[$i] !!}

@endfor @endif

@if ($customer_question['question']['type'] != 'text')
@if ($customer_question['question']['type'] == 'image') @elseif($customer_question['question']['type'] == 'audio')
play
@elseif($customer_question['question']['type'] == 'video') @endif
@endif
@foreach ($customer_question['question']['answers'] as $answer) @if ($customer_question['question']['answer_type'] == 'single choice')
@if ($show) ({{ $answer['status'] }}) @endif
@elseif($customer_question['question']['answer_type'] == 'multiple choices')
@endif @endforeach
@if ($customer_question['question']['answer_type'] == 'writing') @elseif($customer_question['question']['answer_type'] == 'audio')
@if (!isset($customer_answers[$customer_question['id']]) || $customer_answers[$customer_question['id']] == '') @endif
@elseif($customer_question['question']['answer_type'] == 'rearrange')
@php $exits_order = isset($customer_answers[$customer_question['id']]) ? explode('_-_', $customer_answers[$customer_question['id']]) : []; @endphp
@foreach ($customer_question['question']['arrange_elements'] as $key => $elem) @if (!in_array($elem, $exits_order))
{{ $elem }}
@endif @endforeach

Your Answer Arrange

@if (isset($customer_answers[$customer_question['id']])) @forelse ($exits_order as $elem)
{{ $elem }}
@empty Drag Here @endforelse @else Drag Here @endif
@elseif($customer_question['question']['answer_type'] == 'complete') @endif @if ($customer_question['question']['answer_type'] == 'questions group')
@foreach ($customer_question['question']['childs'] as $child)
{!! $child['title'] !!}
@foreach ($child['answers'] as $answer) @if ($child['answer_type'] == 'single choice')
@elseif($child['answer_type'] == 'multiple choices')
@endif @endforeach
@if ($child['answer_type'] == 'writing')
customer_answers.{{ $child['course_customer_exam_question_id'] }} 4
@elseif($child['answer_type'] == 'rearrange')
@php $exits_order = isset( $customer_answers[ $child['course_customer_exam_question_id'] ], ) ? explode( '_-_', $customer_answers[ $child['course_customer_exam_question_id'] ], ) : []; @endphp
@foreach ($child['arrange_elements'] as $key => $elem) @if (!in_array($elem, $exits_order))
{{ $elem }}
@endif @endforeach

Correct Answer Arrange

@if (isset($customer_answers[$child['course_customer_exam_question_id']])) @forelse ($exits_order as $elem)
{{ $elem }}
@empty Drag Here @endforelse @else Drag Here @endif
@elseif($child['answer_type'] == 'audio') @if ($show) {{ $child['id'] }} @endif
@if ( !isset($customer_answers[$child['course_customer_exam_question_id']]) || $customer_answers[$child['course_customer_exam_question_id']] == '') @endif
@elseif($child['answer_type'] == 'complete') @endif @endforeach
@endif
@endif @endif @endif
@if ($start_exam && !$thanks && !session()->has('exam_time_out_' . $token)) @if ($index_question != count($customer_questions) - 1) @else @endif @endif
Attention

هل تريد الخروج من الأمتحانات؟

@endif @endif