@extends('../student_layout/' . $layout) @section('subhead') Atarud MIS - Question @endsection @section('subcontent')
@php $time = explode(':',$exam->exam_time); @endphp

Exit Exam Questions

{{$exam->exam_time}}

@csrf @method('post') @php $c = 0; @endphp @foreach($examQuestionSetting as $row) @php $q = App\Models\QuestionBank::where('id', $row->question_id)->first(); $examType = App\Models\ExamType::where('id', $row->exam_type_id)->first(); $multis = App\Models\QuestionBank::where('type', 'Multi Choice') ->where('exam_type_id', $row->exam_type_id) // ->where('section_id', $examSetting->section_id) ->inRandomOrder() ->limit($row->multi_choice) ->get(); $opens = App\Models\QuestionBank::where('type', 'Open') ->where('exam_type_id', $row->exam_type_id) // ->where('section_id', $examSetting->section_id) ->inRandomOrder() ->limit($row->open) ->get(); $true_false = App\Models\QuestionBank::where('type', 'True or False') ->where('exam_type_id', $row->exam_type_id) // ->where('section_id', $examSetting->section_id) ->inRandomOrder() ->limit($row->true_false) ->get(); @endphp
{{ $examType != null ? $examType->name : '' }}
@foreach($multis as $m) @php ++$c; @endphp
{{ $m->question }}
@if($m->file != null) @endif
@endforeach @foreach($true_false as $t) @php ++$c; @endphp
{{ $t->question }}
@if($t->file != null) @endif
@endforeach @foreach($opens as $o) @php ++$c; @endphp
{{ $o->question }}
@if($o->file != null) @endif
@endforeach
@endforeach {{-- --}}
@endsection @section('script') @endsection