@extends('backend.student.layouts.right_side_bar') @section('studentBody') @php $questionIds = \App\Model\NewQuestion::where('exam_id',$exam->id)->select('id'); $studentQuestions = \App\Model\NewStudentQuestion::where('student_id',$student->id)->whereIn('question_id',$questionIds)->count(); @endphp

{{$heading}}

@if(count($questions)>0) @foreach($questions as $key=>$question) @php $mainKey = $key; $allQuestions = $exam->objectiveQuestions; if (isset($question->exam_time)){ $examTime = $question->exam_time; }elseif($question->group->default_time){ $examTime = $question->group->default_time; }else{ $examTime = $exam->default_time; } $questionId = $question->id; @endphp
Question {{$mainKey + $studentQuestions+1}} of {{count($allQuestions)}} @if(isset($question->group->name)) Group: {{$question->group->name}}@endif
Remaining Time: {{$examTime}}
@if($question->use_image=='yes') @if(isset($question->name)) {{$question->name}} @else @endif @else {{$question->name}} @endif

{{csrf_field()}}
@foreach($question->questionOptions as $optionKey=>$option) @php $keyValue = $optionKey; $alpha = range('A', 'Z'); @endphp
{{$alpha[$keyValue]}} @if($option->use_image=='yes') @else @endif
@endforeach
Skip
{{csrf_field()}}

@endforeach @else
Thank you for attending the {{$exam->title}} of {{$exam->semester->name}} ({{$exam->subject->name}}).
We will provide you the scholarship offers later through email or call.

Go to Main Page
@endif
@endsection @if(count($questions)>0) @section('after_js') @endsection @endif