@extends('backEnd.master') @section('title') @lang('exam.mark_sheet_report_section') @endsection @section('mainContent')

@lang('common.select_criteria')

@if(session()->has('message-success') != "") @if(session()->has('message-success'))
{{ session()->get('message-success') }}
@endif @endif @if(session()->has('message-danger') != "") @if(session()->has('message-danger'))
{{ session()->get('message-danger') }}
@endif @endif
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'mark_sheet_reports', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if ($errors->has('exam')) {{ $errors->first('exam') }} @endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
{{ Form::close() }}
@if(isset($marks_registers))

@lang('exam.mark_sheet_report_wise')

School Management System

House 25, Road 27, Block B, 54th Floor, New York, United States of America

@lang('exam.emam_info')

@lang('common.academic_year') : 2018-19

@lang('common.year')Exam : {{$exam->name}}

Class : {{$class->class_name}}

Section : {{$section->section_name}}

Subjects

@foreach($subjects as $subject)

{{$subject->subject !=""?$subject->subject->subject_name:""}}

@endforeach
@php $subjects = $marks_register->marksRegisterChilds; @endphp @foreach($subjects as $subject) @endforeach @php $registerer_ids = []; @endphp @foreach($marks_registers as $marks_register) @php $registerer_ids[] = $marks_register->student_id; @endphp @php $results = $marks_register->marksRegisterChilds; $grand_total = 0; $grand_total_marks = 0; $final_result = 0; @endphp @foreach($results as $result) @php $subjectDetails = App\SmMarksRegister::subjectDetails($marks_register->exam_id, $marks_register->class_id, $marks_register->section_id, $result->subject_id); $grand_total_marks += $subjectDetails->full_mark; if($result->abs == 0){ $grand_total += $result->marks; if($result->marks < $subjectDetails->pass_mark){ $final_result++; } }else{ $final_result++; } @endphp @endforeach @endforeach
Student Admission No.{{$subject->subject->subject_name}}GPA
{{$marks_register->studentInfo->full_name}} {{$marks_register->studentInfo->admission_no}}{{$result->abs == 0? $result->marks: 'ABS'}} @php if($final_result == 0){ $percent = $grand_total/$grand_total_marks*100; foreach($grades as $grade){ if(floor($percent) >= $grade->percent_from && floor($percent) <= $grade->percent_upto){ echo $grade->grade_name; } } }else{ echo "F"; } @endphp
@endif @endsection