@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
@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
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{----}}
{{----}}
{{--| View Submitted Record | --}}
{{--
--}}
{{----}}
{{--| SN | --}}
{{--Question | --}}
{{--Your Answer | --}}
{{--
--}}
{{----}}
{{----}}
{{--@php--}}
{{--$marks = 0;--}}
{{--@endphp--}}
{{--@foreach($allObjectives as $key=>$allObjective)--}}
{{----}}
{{--| {{++$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--}}
{{-- | --}}
{{--
--}}
{{--@endforeach--}}
{{----}}
{{--| --}}
{{--Your Total Mask : {{$marks}} | {{round(($marks*100)/$allObjectives->sum('marks'),2)}}%--}}
{{-- | --}}
{{--
--}}
{{----}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
@endif