@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($examTypes 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->id) // ->where('section_id', $examSetting->section_id) ->inRandomOrder() ->limit(4) ->get(); $opens = App\Models\QuestionBank::where('type', 'Open') ->where('exam_type_id', $row->id) // ->where('section_id', $examSetting->section_id) ->inRandomOrder() ->limit(4) ->get(); $true_false = App\Models\QuestionBank::where('type', 'True or False') ->where('exam_type_id', $row->id) // ->where('section_id', $examSetting->section_id) ->inRandomOrder() ->limit(4) ->get(); @endphp
{{ $row != null ? $row->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