{{$student->admission_no}} |
{{$student->full_name}} |
{{@$online_exam_question->class->class_name}} ({{@$online_exam_question->section->section_name}})
|
{{$online_exam_question->title}} |
{{$online_exam_question->subject!=""?$online_exam_question->subject->subject_name:""}} |
{{$total_marks}} |
@if(in_array($student->id, $present_students))
@php
$obtained_marks = App\SmOnlineExam::obtainedMarks($online_exam_question->id, $student->id);
if($obtained_marks->status == 1){
echo "Waiting for marks";
}else{
echo $obtained_marks->total_marks;
}
@endphp
@else
@lang('exam.absent')
@endif
|
@if(in_array($student->id, $present_students))
@php
$result = $obtained_marks->total_marks * 100 / $total_marks;
@endphp
@if ($obtained_marks->status == 1)
@lang('exam.marks_waiting_for')
@else
@if($result >= $online_exam_question->percentage)
@lang('exam.pass')
@else
@lang('exam.fail')
@endif
@endif
{{-- @php
if($obtained_marks->status == 1){
echo "Waiting for marks";
}else{
$result = $obtained_marks->total_marks * 100 / $total_marks;
if($result >= $online_exam_question->percentage){
echo "Pass";
}else{
echo "Fail";
}
}
@endphp --}}
@else
@lang('exam.absent')
@endif
|
@endforeach