@lang('common.date') | @lang('exam.subject_full_marks') | @lang('exam.obtained_marks') | @if (@generalSetting()->result_type == 'mark')@lang('exam.pass_fail') | @else@lang('exam.grade') | @lang('exam.gpa') | @endif
---|---|---|---|---|---|
{{ !empty($schedule_by_subject->date) ? dateConvert($schedule_by_subject->date) : '' }} | {{ @$mark->subject->subject_name }} @if (@generalSetting()->result_type == 'mark') ({{subject100PercentMark()}}) @else ({{ @subjectFullMark($mark->exam_type_id, $mark->subject_id, $mark->studentRecord->class_id, $mark->studentRecord->section_id) }}) @endif | @if (@generalSetting()->result_type == 'mark') {{@subjectPercentageMark(@$mark->total_marks, @subjectFullMark($mark->exam_type_id, $mark->subject_id, $mark->studentRecord->class_id, $mark->studentRecord->section_id))}} @else {{@$mark->total_marks}} @endif | @if(@generalSetting()->result_type == 'mark')@php $totalMark = subjectPercentageMark(@$mark->total_marks, @subjectFullMark($mark->exam_type_id, $mark->subject_id, $mark->studentRecord->class_id, $mark->studentRecord->section_id)); $passMark = $mark->subject->pass_mark; @endphp @if ($passMark <= $totalMark) @lang('exam.pass') @else @lang('exam.fail') @endif | @else{{ @$mark->total_gpa_grade }} | {{ number_format(@$mark->total_gpa_point, 2, '.', '') }} | @endif
@lang('exam.position'): {{getStudentMeritPosition($record->class_id, $record->section_id, $exam->id, $record->id)}} | @lang('exam.grand_total'): {{ $grand_total }}/{{ $grand_total_marks }} | @if (@generalSetting()->result_type == 'mark')@else | @lang('exam.grade'): @php if (in_array($failgpaname->grade_name, $temp_grade)) { echo $failgpaname->grade_name; } else { $final_gpa_point = ($total_gpa_point - $optional_gpa) / ($total_subject - $optional_subject); $average_grade = 0; $average_grade_max = 0; if ($result == 0 && $grand_total_marks != 0) { $gpa_point = number_format($final_gpa_point, 2, '.', ''); if ($gpa_point >= $maxgpa) { $average_grade_max = App\SmMarksGrade::where('school_id', Auth::user()->school_id) ->where('academic_id', getAcademicId()) ->where('from', '<=', $maxgpa) ->where('up', '>=', $maxgpa) ->first('grade_name'); echo @$average_grade_max->grade_name; } else { $average_grade = App\SmMarksGrade::where('school_id', Auth::user()->school_id) ->where('academic_id', getAcademicId()) ->where('from', '<=', $final_gpa_point) ->where('up', '>=', $final_gpa_point) ->first('grade_name'); echo @$average_grade->grade_name; } } else { echo $failgpaname->grade_name; } } @endphp | @lang('exam.gpa') @php $final_gpa_point = 0; $final_gpa_point = ($total_gpa_point - $optional_gpa) / ($total_subject - $optional_subject); $float_final_gpa_point = number_format($final_gpa_point, 2); if ($float_final_gpa_point >= $maxgpa) { echo $maxgpa; } else { echo $float_final_gpa_point; } @endphp | @endif