@if (isset($single)) @elseif(isset($allClass)) @endif @if(resultPrintStatus('vertical_boarder')) @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.class'): {{$tabulation_details['student_class']}}

@lang('exam.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!='') @if (@generalSetting()->result_type != 'mark') @endif @else @if (@generalSetting()->result_type != 'mark') @endif @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; $gpa_without_optional_count=0; $main_subject_total_gpa =0; $Optional_subject_count=0; $optional_subject_gpa=0; $opt_sub_gpa=0; $optional_subject=App\SmOptionalSubjectAssign::where('student_id','=',$student->id) ->where('session_id','=',$student->session_id) ->first(); @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, $class_id, $section_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 @php if(@$optional_subject->subject_id==$subject_ID){ $optional_subject_gpa+= @$mark_grade->gpa-$optional_setup_gpa; $opt_sub_gpa+=$optional_setup_gpa; } @endphp @endforeach @php $marks_by_students = 0; @endphp @if ($optional_subject_setup!='') @else @if (@generalSetting()->result_type != 'mark') @endif @endif @endforeach
{{$subject_Name}}@lang('exam.total_mark')@lang('exam.gpa') @lang('exam.gpa') @lang('reports.result')@lang('exam.gpa') @lang('reports.result') @lang('exam.position')
{{$sigle_part->exam_title}} ({{$sigle_part->exam_mark}})@lang('exam.result')@lang('lang.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) {{number_format($max_grade,2)}} @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 @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) @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 @foreach($mark_sheet as $data) @php if ($data->subject_id==$optional_subject_mark) { continue; } $result = markGpa($persentage); $main_subject_total_gpa += $result->gpa; @endphp @endforeach {{gradeName($number)}} @endif {{getStudentMeritPosition($class_id, $section_id, $exam_term_id, $tabulation_details['record_id'])}}
@php $examReportSignature = examReportSignatures(); @endphp @if($examReportSignature->count() > 1 || !$exam_content)
@foreach ($examReportSignature as $signature)
{{$signature->title}}

{{$signature->title}}

@endforeach
@endif @if($exam_content) count() == 1)class="border-0 mt-auto" @endif>

@lang('exam.date_of_publication_of_result') : {{dateConvert(@$exam_content->publish_date)}}

@if($examReportSignature->count() == 1)

({{@$examReportSignature->first()->title}})

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

@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}}

@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!='') @if (@generalSetting()->result_type != 'mark') @endif @else @if (@generalSetting()->result_type != 'mark') @endif @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 @foreach ($students->where('active_status', 1) 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(); $studentRecord = App\Models\StudentRecord::where('class_id', $class_id) ->where('section_id', $section_id) ->where('student_id',$student->id) ->where('is_promote', 0) ->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, $class_id, $section_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 @if ($optional_subject_setup!='') @endif @if (@generalSetting()->result_type != 'mark') @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') @lang('reports.result') @lang('exam.position')
{{$sigle_part->exam_title}}@lang('exam.total')@lang('reports.without_additional')
{{$student->full_name}} {{$student->roll_no}}{{$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 @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
@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 @if(isset($this_student_failed) && $this_student_failed==1) @else {{getStudentMeritPosition($class_id, $section_id, $exam_term_id, $studentRecord->id)}} @endif
@php $examReportSignature = examReportSignatures(); @endphp @if($examReportSignature->count() > 1 || !$exam_content)
@foreach ($examReportSignature as $signature)
{{$signature->title}}

{{$signature->title}}

@endforeach
@endif @if($exam_content) count() == 1)class="border-0 mt-auto" @endif>

@lang('exam.date_of_publication_of_result') : {{dateConvert(@$exam_content->publish_date)}}

@if($examReportSignature->count() == 1)

({{@$examReportSignature->first()->title}})

@endif
@endif
@endif