| {{++$key}} |
@if($question->use_image=='yes')
@if(isset($question->name))
{{$question->name}}
@else
@endif
@else
{{$question->name}}
@endif
|
@php
$studentQuestion = \App\Model\NewStudentQuestion::where('student_id',$student->id)->where('question_id',$question->id)->first();
@endphp
@if($studentQuestion->status=='attempt')
@php
$studentOption = \App\Model\NewStudentObjectiveAnswer::where('student_id',$student->id)->where('question_id',$question->id)->first();
$option = $question->questionOptions()->where('type','True')->where('status','public')->first();
@endphp
@if($studentOption->option->use_image=='yes')
@if(isset($studentOption->option->name))
{{$studentOption->option->name}}
@else
@endif
@else
{{$studentOption->option->name}}
@endif
@elseif($studentQuestion->status=='non-attempt')
Not Attempt
@else
Expire
@endif
|
@if($studentQuestion->status=='attempt')
@php
$studentOption = \App\Model\NewStudentObjectiveAnswer::where('student_id',$student->id)->where('question_id',$question->id)->first();
$option = $question->questionOptions()->where('type','True')->where('status','public')->first();
@endphp
@if($option->id==$studentOption->question_option_id)
@php
$groupMarks += $default_marks;
@endphp
True
@else
False
@endif
@elseif($studentQuestion->status=='non-attempt')
Not Attempt
@else
Expire
@endif
|
@endforeach