@extends('backEnd.master') @section('title') @lang('reports.online_exam_report') @endsection @section('mainContent')

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'online_exam_reports', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if(moduleStatusCheck('University')) @includeIf( 'university::common.session_faculty_depart_academic_semester_level', ['mt' => 'mt-30', 'hide' => ['USUB'], 'required' => ['USL']] )
@if ($errors->has('exam')) {{ $errors->first('exam') }} @endif
@else
@if ($errors->has('exam')) {{ $errors->first('exam') }} @endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@endif
{{ Form::close() }}
@if(isset($online_exam_question))

@lang('reports.result_view')

@if(moduleStatusCheck('University')) @else @endif @foreach($students as $student) {{-- @dd($student->studentRecord); --}} @if(moduleStatusCheck('University')) @else @endif @endforeach
@lang('student.admission_no') @lang('student.student') @lang('university::un.semester_label') (@lang('common.section'))@lang('common.class_Sec')@lang('exam.exam') @lang('common.subject') @lang('exam.total_mark') @lang('exam.obtained_marks') @lang('reports.result')
{{$student->admission_no}} {{$student->full_name}}{{ $student->studentRecord->unSemesterLabel ? $student->studentRecord->unSemesterLabel->name : '' }} {{ $student->studentRecord->section ? '(' . $student->studentRecord->section->section_name . ')' : '' }} @php if(!empty($student->recordClass)){ echo $student->recordClass->class->class_name; }else { echo ''; } @endphp @if($section_id==null) (@foreach ($student->recordClasses as $section) {{$section->section->section_name}}, @endforeach) @else ({{$student->recordSection != ""? $student->recordSection->section->section_name:""}}) @endif {{$online_exam_question->title}} {{$online_exam_question->subject !=""?$online_exam_question->subject->subject_name:""}} {{$total_marks}} @if(in_array($student->id, $present_students)) @php if (moduleStatusCheck('OnlineExam')== TRUE) { $obtained_marks = Modules\OnlineExam\Entities\InfixOnlineExam::obtainedMarks($online_exam_question->id, $student->id); } else { $obtained_marks = App\SmOnlineExam::obtainedMarks($online_exam_question->id, $student->id); } if($obtained_marks){ 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"; } } }else{ echo "Waiting for marks"; } @endphp @else @lang('common.absent') @endif
@endif @endsection @include('backEnd.partials.data_table_js')