@extends('backEnd.master') @section('title') @lang('exam.result_view') @endsection @push('css') @endpush @section('mainContent')

@lang('exam.result_view')

@foreach($students as $student) @endforeach
@lang('student.admission_no') @lang('student.student') @lang('common.class_Sec') @lang('exam.exam') @lang('common.subject') @lang('exam.total_marks') @lang('exam.obtained_marks') @lang('reports.result')
{{$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
@endsection @include('backEnd.partials.data_table_js')