@if (isset($single)) @elseif(isset($allClass)) @endif @if (isset($single))

{{isset(generalSetting()->school_name)?generalSetting()->school_name:'Infix School Management ERP'}}

{{isset(generalSetting()->address)?generalSetting()->address:'Infix School Address'}}
@lang('common.email'): {{isset(generalSetting()->email)?generalSetting()->email:'hello@aorasoft.com'}}, @lang('common.phone'): {{isset(generalSetting()->phone)?generalSetting()->phone:'+96897002784'}}

@lang('reports.tabulation_sheet_of') {{$tabulation_details['exam_term']}} @lang('reports.in') {{$year}}

@lang('student.student_name'): {{$tabulation_details['student_name']}}

@lang('common.search'): {{$tabulation_details['student_class']}}

@lang('student.roll_no'): {{$tabulation_details['student_roll']}}

@lang('common.section'): {{$tabulation_details['student_section']}}

@lang('student.admission_no'): {{$tabulation_details['student_admission_no']}}

@lang('exam.exam'): {{$tabulation_details['exam_term']}}

@foreach($subjects as $subject) @php $subject_ID = $subject->subject_id; $subject_Name = $subject->subject->subject_name; $mark_parts = App\SmAssignSubject::getNumberOfPart($subject_ID, $class_id, $section_id, $exam_term_id); @endphp @endforeach @if ($optional_subject_setup!='') @else @endif @foreach($subjects as $subject) @php $subject_ID = $subject->subject_id; $subject_Name = $subject->subject->subject_name; $mark_parts = App\SmAssignSubject::getNumberOfPart($subject_ID, $class_id, $section_id, $exam_term_id); @endphp @foreach($mark_parts as $sigle_part) @endforeach {{-- --}} @endforeach @if ($optional_subject_setup!='') @endif @php $count=1; @endphp @foreach($students as $student) @php $this_student_failed=0; $tota_grade_point= 0; $tota_grade_point_main= 0; $marks_by_students = 0; $main_subject_total_gpa = 0; $Optional_subject_count = 0; $optional_subject=App\SmOptionalSubjectAssign::where('student_id','=',$student->id)->where('session_id','=',$student->session_id)->first(); $opt_sub_gpa=0; $optional_subject_gpa=0; @endphp @foreach($subjects as $subject) @php $subject_ID = $subject->subject_id; $subject_Name = $subject->subject->subject_name; $mark_parts = App\SmAssignSubject::getMarksOfPart($student->id, $subject_ID, $class_id, $section_id, $exam_term_id); $subject_count= 0; $optional_subject_marks=DB::table('sm_optional_subject_assigns') ->join('sm_mark_stores','sm_mark_stores.subject_id','=','sm_optional_subject_assigns.subject_id') ->where('sm_optional_subject_assigns.student_id','=',$student->id) ->first(); @endphp @foreach($mark_parts as $sigle_part) @endforeach @php $value=subjectFullMark($exam_term_id, $subject_ID); $persentage=subjectPercentageMark($tola_mark_by_subject,$value); $mark_grade = App\SmMarksGrade::where([ ['percent_from', '<=', $persentage], ['percent_upto', '>=', $persentage]]) ->where('academic_id', getAcademicId()) ->where('school_id',Auth::user()->school_id) ->first(); $mark_grade_gpa=0; $optional_setup_gpa=0; if (@$optional_subject->subject_id==$subject_ID) { $optional_setup_gpa= @$optional_subject_setup->gpa_above; if ($mark_grade->gpa >$optional_setup_gpa) { $mark_grade_gpa = $mark_grade->gpa-$optional_setup_gpa; $tota_grade_point = $tota_grade_point + $mark_grade_gpa; $tota_grade_point_main = $tota_grade_point_main + $mark_grade->gpa; } else { $tota_grade_point = $tota_grade_point + $mark_grade_gpa; $tota_grade_point_main = $tota_grade_point_main + $mark_grade->gpa; } } else { $tota_grade_point = $tota_grade_point + $mark_grade->gpa ; if($mark_grade->gpa<1){ $this_student_failed =1; } $tota_grade_point_main = $tota_grade_point_main + $mark_grade->gpa; } @endphp @endforeach @php $marks_by_students = 0; @endphp @if ($optional_subject_setup!='') @else @endif
{{$subject_Name}}@lang('exam.total_mark')@lang('exam.gpa') @lang('exam.gpa') @lang('reports.result')@lang('exam.gpa') @lang('reports.result')
{{$sigle_part->exam_title}} ({{$sigle_part->exam_mark}})@lang('exam.result')@lang('exam.gpa')@lang('reports.without_additional')
{{$sigle_part->total_marks}} @php $tola_mark_by_subject = App\SmAssignSubject::getSumMark($student->id, $subject_ID, $class_id, $section_id, $exam_term_id); $marks_by_students = $marks_by_students + $tola_mark_by_subject; @endphp {{$tola_mark_by_subject}} {{$marks_by_students}} @if(isset($this_student_failed) && $this_student_failed==1) @if(!empty($tota_grade_point_main))

@endif @else @php if (@$optional_subject!='') { if(!empty($tota_grade_point_main)){ $subject = count($subjects)-1; $without_optional_subject=($tota_grade_point_main - $opt_sub_gpa) - $optional_subject_gpa; $number = number_format($without_optional_subject/ $subject , 2, '.', ''); }else{ $number = 0; } } else{ $subject_count=count($subjects); if(!empty($tota_grade_point_main)){ $number = number_format($tota_grade_point_main/ $subject_count, 2, '.', ''); }else{ $number = 0; } } @endphp {{$number==0?'0.00':$number}} @php $subject_count=0; $tota_grade_point_main= 0; $subject_count =count($subjects)-1; @endphp @endif
@php $subject_count=0; $subject_count =count($subjects)-1; @endphp @if(isset($this_student_failed) && $this_student_failed==1) {{number_format($tota_grade_point/ $subject_count, 2, '.', '')}} @else @php if (@$optional_subject!='') { $subject_count=count($subjects)-1; if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } else{ $subject_count=count($subjects); if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } @endphp @if ($number>$max_grade) {{$max_grade}} @else {{$number==0?'0.00':$number}} @endif @php $tota_grade_point= 0; @endphp @endif @if(isset($this_student_failed) && $this_student_failed==1) {{$fail_grade_name->grade_name}} @else @php if($number >= $max_grade){ echo gradeName($max_grade); }else{ echo gradeName($number); } @endphp @endif @if(isset($this_student_failed) && $this_student_failed==1) {{number_format($tota_grade_point/ count($subjects), 2, '.', '')}} @else @php $subject_count=0; if (@$optional_subject!='') { $subject_count=count($subjects)-1; if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } else{ $subject_count=count($subjects); if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } @endphp {{$number==0?'0.00':$number}} @php $tota_grade_point= 0; @endphp @endif @if(isset($this_student_failed) && $this_student_failed==1) {{$fail_grade_name->grade_name}} @else @php $main_subject_total_gpa=0; $Optional_subject_count=0; if($optional_subject_mark!=''){ $Optional_subject_count=$subjects->count()-1; }else{ $Optional_subject_count=$subjects->count(); } @endphp {{gradeName($number)}} @endif
@foreach($subjects as $subject) @php $subject_ID = $subject->subject_id; $subject_Name = $subject->subject->subject_name; $mark_parts = App\SmAssignSubject::getNumberOfPart($subject_ID, $class_id, $section_id, $exam_term_id); @endphp @endforeach @if ($optional_subject_setup!='') @else @endif @foreach($subjects as $subject) @php $subject_ID = $subject->subject_id; $subject_Name = $subject->subject->subject_name; $mark_parts = App\SmAssignSubject::getNumberOfPart($subject_ID, $class_id, $section_id, $exam_term_id); @endphp @foreach($mark_parts as $sigle_part) @endforeach {{-- --}} @endforeach @if ($optional_subject_setup!='') @endif @php $count=1; @endphp @foreach($students as $student) @php $this_student_failed=0; $tota_grade_point= 0; $tota_grade_point_main= 0; $marks_by_students = 0; $main_subject_total_gpa = 0; $Optional_subject_count = 0; $optional_subject=App\SmOptionalSubjectAssign::where('student_id','=',$student->id)->where('session_id','=',$student->session_id)->first(); $opt_sub_gpa=0; $optional_subject_gpa=0; @endphp @foreach($subjects as $subject) @php $subject_ID = $subject->subject_id; $subject_Name = $subject->subject->subject_name; $mark_parts = App\SmAssignSubject::getMarksOfPart($student->id, $subject_ID, $class_id, $section_id, $exam_term_id); $subject_count= 0; $optional_subject_marks=DB::table('sm_optional_subject_assigns') ->join('sm_mark_stores','sm_mark_stores.subject_id','=','sm_optional_subject_assigns.subject_id') ->where('sm_optional_subject_assigns.student_id','=',$student->id) ->first(); @endphp @foreach($mark_parts as $sigle_part) @endforeach @php $value=subjectFullMark($exam_term_id, $subject_ID); $persentage=subjectPercentageMark($tola_mark_by_subject,$value); $mark_grade = markGpa($persentage); $mark_grade_gpa=0; $optional_setup_gpa=0; if (@$optional_subject->subject_id==$subject_ID) { $optional_setup_gpa= @$optional_subject_setup->gpa_above; if ($mark_grade->gpa >$optional_setup_gpa) { $mark_grade_gpa = $mark_grade->gpa-$optional_setup_gpa; $tota_grade_point = $tota_grade_point + $mark_grade_gpa; $tota_grade_point_main = $tota_grade_point_main + $mark_grade->gpa; } else { $tota_grade_point = $tota_grade_point + $mark_grade_gpa; $tota_grade_point_main = $tota_grade_point_main + $mark_grade->gpa; } } else { $tota_grade_point = $tota_grade_point + $mark_grade->gpa ; if($mark_grade->gpa<1){ $this_student_failed =1; } $tota_grade_point_main = $tota_grade_point_main + $mark_grade->gpa; } @endphp @endforeach @php $marks_by_students = 0; @endphp @if ($optional_subject_setup!='') @else @endif @endforeach
{{$subject_Name}}@lang('exam.total_mark')@lang('exam.gpa') @lang('exam.gpa') @lang('exam.result')@lang('exam.gpa') @lang('exam.result')
{{$sigle_part->exam_title}} ({{$sigle_part->exam_mark}})@lang('exam.total')@lang('exam.gpa')@lang('exam.without_additional')
{{$sigle_part->total_marks}} @php $tola_mark_by_subject = App\SmAssignSubject::getSumMark($student->id, $subject_ID, $class_id, $section_id, $exam_term_id); $marks_by_students = $marks_by_students + $tola_mark_by_subject; @endphp {{$tola_mark_by_subject}} {{$marks_by_students}} @if(isset($this_student_failed) && $this_student_failed==1) @if(!empty($tota_grade_point_main))

@endif @else @php if (@$optional_subject!='') { if(!empty($tota_grade_point_main)){ $subject = count($subjects)-1; $without_optional_subject=($tota_grade_point_main - $opt_sub_gpa) - $optional_subject_gpa; $number = number_format($without_optional_subject/ $subject , 2, '.', ''); }else{ $number = 0; } } else{ $subject_count=count($subjects); if(!empty($tota_grade_point_main)){ $number = number_format($tota_grade_point_main/ $subject_count, 2, '.', ''); }else{ $number = 0; } } @endphp {{$number==0?'0.00':$number}} @php $subject_count=0; $tota_grade_point_main= 0; $subject_count =count($subjects)-1; @endphp @endif
@php $subject_count=0; $subject_count =count($subjects)-1; @endphp @if(isset($this_student_failed) && $this_student_failed==1) {{number_format($tota_grade_point/ $subject_count, 2, '.', '')}} @else @php if (@$optional_subject!='') { $subject_count=count($subjects)-1; if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } else{ $subject_count=count($subjects); if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } @endphp @if ($number>$max_grade) {{$max_grade}} @else {{$number==0?'0.00':$number}} @endif @php $tota_grade_point= 0; @endphp @endif @if(isset($this_student_failed) && $this_student_failed==1) {{$fail_grade_name->grade_name}} @else @php if($number >= $max_grade){ echo gradeName($max_grade); }else{ echo gradeName($number); } @endphp @endif @if(isset($this_student_failed) && $this_student_failed==1) {{number_format($tota_grade_point/ count($subjects), 2, '.', '')}} @else @php $subject_count=0; if (@$optional_subject!='') { $subject_count=count($subjects)-1; if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } else{ $subject_count=count($subjects); if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } @endphp {{$number==0?'0.00':$number}} @php $tota_grade_point= 0; @endphp @endif @if(isset($this_student_failed) && $this_student_failed==1) {{$fail_grade_name->grade_name}} @else @php $main_subject_total_gpa=0; $Optional_subject_count=0; if($optional_subject_mark!=''){ $Optional_subject_count=$subjects->count()-1; }else{ $Optional_subject_count=$subjects->count(); } @endphp {{gradeName($number)}} @endif
@elseif (isset($allClass))

@lang('common.search') : {{$tabulation_details['class']}}

@lang('common.section') : {{$tabulation_details['section']}}

{{isset(generalSetting()->school_name)?generalSetting()->school_name:'Infix School Management ERP'}}

{{isset(generalSetting()->address)?generalSetting()->address:'Infix School Address'}}
@lang('exam.email'): {{isset(generalSetting()->email)?generalSetting()->email:'hello@aorasoft.com'}}, @lang('exam.phone'): {{isset(generalSetting()->phone)?generalSetting()->phone:'+96897002784 '}}

@lang('common.class') : {{$tabulation_details['class']}}

@lang('common.section') : {{$tabulation_details['section']}}

{{isset(generalSetting()->school_name)?generalSetting()->school_name:'Infix School Management ERP'}}

{{isset(generalSetting()->address)?generalSetting()->address:'Infix School Address'}}
@lang('common.email'): {{isset(generalSetting()->email)?generalSetting()->email:'hello@aorasoft.com'}}, @lang('common.phone'): {{isset(generalSetting()->phone)?generalSetting()->phone:'+96897002784 '}}

@lang('reports.tabulation_sheet_of') {{$tabulation_details['exam_term']}} @lang('reports.in') {{$year}}

@lang('exam.tabulation_sheet') @lang('exam.of') {{$tabulation_details['exam_term']}} @lang('exam.in') {{$year}}

@foreach($subjects as $subject) @php $subject_ID = $subject->subject_id; $subject_Name = $subject->subject->subject_name; $mark_parts = App\SmAssignSubject::getNumberOfPart($subject_ID, $class_id, $section_id, $exam_term_id); @endphp @endforeach @if ($optional_subject_setup!='') @else @endif @if ($optional_subject_setup!='') @foreach($subjects as $subject) @php $subject_ID = $subject->subject_id; $subject_Name = $subject->subject->subject_name; $mark_parts = App\SmAssignSubject::getNumberOfPart($subject_ID, $class_id, $section_id, $exam_term_id); @endphp @foreach($mark_parts as $sigle_part) @endforeach @endforeach @if ($optional_subject_setup!='') @endif @else @php if (@$optional_subject!='') { if(!empty($tota_grade_point_main)){ $subject = count($subjects)-1; $without_optional_subject=($tota_grade_point_main - $opt_sub_gpa) - $optional_subject_gpa; $number = number_format($without_optional_subject/ $subject , 2, '.', ''); }else{ $number = 0; } } else{ $subject_count=count($subjects); if(!empty($tota_grade_point_main)){ $number = number_format($tota_grade_point_main/ $subject_count, 2, '.', ''); }else{ $number = 0; } } @endphp @if ($number >= $max_grade) {{$max_grade}} @else {{$number==0?'0.00':$number}} @endif @php $subject_count=0; $tota_grade_point_main= 0; $subject_count =count($subjects)-1; @endphp @endif @endif @endforeach
@lang('common.name') @lang('student.roll_no') {{$subject_Name}} @lang('exam.total_mark')@lang('exam.gpa') @lang('exam.gpa') @lang('reports.result') @lang('exam.gpa')
{{$sigle_part->exam_title}}@lang('exam.result')@lang('reports.without_additional') @if(isset($this_student_failed) && $this_student_failed == 1) {{number_format($tota_grade_point/ count($subjects), 2, '.', '')}} @else @php $subject_count=0; if (@$optional_subject!='') { $subject_count=count($subjects)-1; if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } else{ $subject_count=count($subjects); if(!empty($tota_grade_point)){ $number = number_format($tota_grade_point/ $subject_count, 2, '.', ''); }else{ $number = 0; } } @endphp @if ($number >= $max_grade) {{$max_grade}} @else {{$number==0?'0.00':$number}} @endif @php $tota_grade_point= 0; @endphp @endif @if(isset($this_student_failed) && $this_student_failed==1) {{$fail_grade_name->grade_name}} @else @if($number >= $max_grade) {{gradeName($max_grade)}} @else {{gradeName($number)}} @endif @endif
@endif