@if ($customer_question['question']['type'] != 'text')
@if ($customer_question['question']['type'] == 'image')
 . ('/storage/' . $customer_question['question']['url']) }})
@elseif($customer_question['question']['type'] == 'audio')
@elseif($customer_question['question']['type'] == 'video')
@endif
@endif
@foreach ($customer_question['question']['answers'] as $answer)
@if ($customer_question['question']['answer_type'] == 'single choice')
@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
@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'] !!}
@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