{{$test->title}}
-
Time Left For This Section :
-
00 :
00 :
00
@if ($canUsePause)
-
Pause & Exit
@endif
@include('student.test.layouts.common.information_right')
{!! Form::open(array(
'id'=> 'test-form',
'autocomplete'=> 'nope',
'spellcheck'=> 'false'
)) !!}
@php
$questionHasVideo = FALSE;
$total_para_ques = 0;
$numberQuestion = 0;
@endphp
@foreach($section_data as $key=> $value)
@if (isset($value['questions']) && count($value['questions']) > 0)
@foreach($value['questions'] as $key_id => $question)
@php
$collection = collect($data['questions'] ?? []);
$filtered = $collection->where('id', $question);
$question = $filtered->first();
@endphp
@if (!is_null($question))
@php
if(!$questionHasVideo){
if($question->question_type=='video'){
$questionHasVideo = TRUE;
}
}
$display_question = 'display:none;';
$previous_answers = [];
$time_spent = 0;
if($current_question_id){
if($current_question_id == $question->id) {
$display_question = 'display:block;';
}else{
$display_question = 'display:none;';
}
}
if($current_state){
if(array_key_exists($question->id, $current_state)){
$previous_answers = $current_state[$question->id]->answers;
$time_spent = $current_state[$question->id]->time_spent;
}
}
@endphp
@if (in_array($question->question_type, ['para','video','audio', 'video_embed','audio_embed']))
@php
++$total_para_ques;
@endphp
@endif
@include('student.test.exam.questions.load', [
'question' => $question,
'total_para_ques' => $total_para_ques,
'numberQuestion' => $numberQuestion = $numberQuestion + 1
])
@endif
@endforeach
@endif
@endforeach
{!! Form::close() !!}
@include('student.test.layouts.common.footer')