Print
@include('print.includes.institution-detail')

FIRST ASSESSMENT TEST-{{ ViewHelper::getYearById($data['year']) }}

GRADE-SHEET

@include('print.includes.studentinfo')

SUBJECT-WISE ACHIEVEMENT

@php // Find Nepali Subject $nepaliSubject = $student->subjects->first(function($sub) { $subjectName = ViewHelper::getSubjectById($sub->subjects_id); return stripos($subjectName, 'nepali') !== false; }); if ($nepaliSubject) { $nepaliTheoryGp = is_numeric($nepaliSubject->th_grade_point) ? number_format((float)$nepaliSubject->th_grade_point, 2) : '0.00'; $nepaliPracticalGp = is_numeric($nepaliSubject->pr_grade_point) ? number_format((float)$nepaliSubject->pr_grade_point, 2) : '0.00'; $nepaliFinalGp = is_numeric($nepaliSubject->grade_point) ? number_format((float)$nepaliSubject->grade_point, 2) : '0.00'; $nepaliFinalGrade = $nepaliSubject->final_grade ? $nepaliSubject->final_grade : '-'; } else { $nepaliTheoryGp = '0.00'; $nepaliPracticalGp = '0.00'; $nepaliFinalGp = '0.00'; $nepaliFinalGrade = '-'; } // --- OVERALL STUDENT FINAL GRADE & GPA --- $overallGpa = (isset($student->gpa_average) && is_numeric($student->gpa_average)) ? (float)$student->gpa_average : 0; if ($overallGpa >= 3.6) { $overallGrade = 'A+'; } elseif ($overallGpa >= 3.2) { $overallGrade = 'A'; } elseif ($overallGpa >= 2.8) { $overallGrade = 'B+'; } elseif ($overallGpa >= 2.4) { $overallGrade = 'B'; } elseif ($overallGpa >= 2.0) { $overallGrade = 'C+'; } elseif ($overallGpa >= 1.6) { $overallGrade = 'C'; } elseif ($overallGpa >= 1.2) { $overallGrade = 'D'; } else { $overallGrade = 'NG'; } $overallGpaFormatted = number_format($overallGpa, 2); @endphp
@php // Safe extraction and summation of numeric grade points $validGradePoints = $student->subjects->pluck('grade_point')->filter(function($gp) { return is_numeric($gp); }); $totalSubjects = $student->subjects->count(); $sumGradePoints = number_format((float)$validGradePoints->sum(), 2); @endphp @if($student->subjects && $student->subjects->count() > 0) @php($i=1) @foreach($student->subjects as $subject) @endforeach @endif
SN SUBJECT CAS Grade CAS GP Summative Grade Summative GP Final GP Final Grade
{{ $i++ }} {{ ViewHelper::getSubjectById($subject->subjects_id) }} {{ $subject->obtain_score_practical ? $subject->obtain_score_practical : '-' }} {{ $subject->pr_grade_point ? $subject->pr_grade_point : '-' }} {{ $subject->obtain_score_theory ? $subject->obtain_score_theory : '-' }} {{ $subject->th_grade_point ? $subject->th_grade_point : '-' }} {{ $subject->grade_point ? $subject->grade_point : '-' }} {{ $subject->final_grade ? $subject->final_grade : '-' }}
Overall Achievement
Total Subjects Total Final Grade Points Grade Point Average (GPA) & Grade
{{ $totalSubjects }} {{ $sumGradePoints }} {{ isset($student->gpa_average) ? $student->gpa_average : '' }} ({{ $overallGrade }})

Subject Wise Grading Scale

Grade Grade Point
A+4.0
A3.6
B+3.2
B2.8
C+2.4
C2.0
D1.6
NG0.0

EVALUATION & CALCULATION METHOD

  1. Calculation Method: 50% CAS + 50% Summative
  2. Final GP: Final GP = (CAS GP + Summative GP) / 2
  3. For Example (Nepali): CAS GP = {{ $nepaliTheoryGp }} & Summative GP = {{ $nepaliPracticalGp }}, then Final GP = ({{ $nepaliTheoryGp }} + {{ $nepaliPracticalGp }}) / 2 = {{ $nepaliFinalGp }} ({{ $nepaliFinalGrade }})
  4. Overall GPA: Overall GPA = sum of Final GP / {{ $totalSubjects }} i.e. {{ $sumGradePoints }} / {{ $totalSubjects }} = {{ $overallGpaFormatted }} ({{ $overallGrade }})
  5. Final Result: {{ $overallGpaFormatted }} ({{ $overallGrade }})
Class Teacher Exam Coordinator Principal Parent/Guardian
Date of Publication : {{ \Carbon\Carbon::parse(now())->format('Y-m-d')}}