@extends('backend.student.layouts.right_side_bar') @section('studentBody')
@include('layouts.message')

{{$heading}} @if(!request('page')) Back @elseif(request('page')==1) Back @endif

@if(count($objectives)>0) @foreach($objectives as $key=>$objective) @php $examTime=$objective->exam_time; $question_id = $objective->id; $mainKey = $key; @endphp
Remaining Time: {{$examTime}}
Question {{$mainKey + $objectives->firstItem()}} of {{count($allObjectives)}}
@if($objective->use_image=='yes') @if(isset($objective->name)) {{$objective->name}} @else @endif @else {{$objective->name}} @endif

{{csrf_field()}}
@foreach($objective->questionOptions as $optionKey=>$option) @php $keyValue = $optionKey; $alpha = range('A', 'Z'); @endphp
{{$alpha[$keyValue]}} @if($option->use_image=='yes') @else @endif
@endforeach
@if(request('page')) @if(request('page')>1) Previous Question @else @endif @endif @php $pageNumber = $mainKey + $objectives->firstItem()+1; @endphp @foreach($objectives as $key=>$objective) Skip @endforeach

@endforeach @else @php if ($studentSubject = \App\OnlineExam\StudentSubejct::where('student_id',$student->id)->where('subject_id',$subject->id)->where('status','pending')->first()){ $studentSubject->status = 'completed'; $studentSubject->save(); } @endphp @if ($studentTerm = \App\OnlineExam\StudentTerm::where('student_id',$student->id)->where('term_id',$term->id)->first()) @php $subject = $student->subject()->orderBy('id','DESC')->first(); $questionIds = \App\OnlineExam\StudentQuestion::where('student_id',$student->id)->select('subject_question_id'); $objectiveQuestions = \App\OnlineExam\SubjectQuestion::whereIn('id',$questionIds)->where('type','Objective'); @endphp @if(count($objectiveQuestions->where('subject_id',$subject->id)->get())>0) @php $marks = 0; @endphp @foreach($objectiveQuestions->where('subject_id',$subject->id)->get() as $key=>$objectiveQuestion) @if($checkStudentAnswer = $objectiveQuestion->studentObjectiveAnswers()->where('student_id',$student->id)->first()) @php $questionOption = \App\OnlineExam\QuestionOption::findOrFail($checkStudentAnswer->question_option_id); @endphp @if($questionOption->type=='True') @php $marks += $objectiveQuestion->marks; @endphp @endif @endif @endforeach @php $studentTerm->status = 'completed'; $studentTerm->objective_marks = $marks; $studentTerm->save(); @endphp @endif @endif
Thank you for attending the scholarship test. We will provide you the scholarship offers later through email or call.
Go to Main Page {{--
--}} {{--
--}} {{--
--}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{--@php--}} {{--$marks = 0;--}} {{--@endphp--}} {{--@foreach($allObjectives as $key=>$allObjective)--}} {{----}} {{----}} {{----}} {{----}} {{----}} {{--@endforeach--}} {{----}} {{----}} {{----}} {{----}} {{--
View Submitted Record
SNQuestionYour Answer
{{++$key}}--}} {{--@if($allObjective->use_image=='yes')--}} {{--@if(isset($allObjective->name))--}} {{--{{$allObjective->name}}--}} {{----}} {{--@else--}} {{----}} {{--@endif--}} {{--@else--}} {{--{{$allObjective->name}}--}} {{--@endif--}} {{----}} {{--@if($checkStudentAnswer = $allObjective->studentObjectiveAnswers()->where('student_id',$student->id)->first())--}} {{--@php--}} {{--$questionOption = \App\OnlineExam\QuestionOption::findOrFail($checkStudentAnswer->question_option_id);--}} {{--@endphp--}} {{--@if($questionOption->use_image=='yes')--}} {{----}} {{--@else--}} {{--{{$questionOption->name}}--}} {{--@endif--}} {{--@if($questionOption->type=='True')--}} {{--@php--}} {{--$marks += $allObjective->marks;--}} {{--@endphp--}} {{--@endif--}} {{--@else--}} {{--Not Attempt--}} {{--@endif--}} {{--
--}} {{--Your Total Mask : {{$marks}} | {{round(($marks*100)/$allObjectives->sum('marks'),2)}}%--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}}
@endif
@endsection @if(count($objectives)>0) @section('ajaxScipt') @endsection @endif