@if(file_exists(public_path('img/logo.png'))) @else

RP LEARNING

@endif
The Future of Digital Learning

OFFICIAL ACADEMIC REPORT

Academic Year: {{ $reportCard->academicYear->name ?? 'N/A' }}
Term: {{ $reportCard->academicTerm->name ?? 'N/A' }}
Date Issued: {{ now()->format('F d, Y') }}

Student Name
{{ $reportCard->student->name ?? 'Unknown' }}
Student ID
{{ $reportCard->student->student_id_number ?? 'N/A' }}
Class Enrolled
{{ $reportCard->schoolClass->name ?? 'N/A' }}
Class Teacher
{{ $reportCard->schoolClass->teacher->name ?? 'N/A' }}
Total Enrollment
{{ $reportCard->total_students ?? '—' }} Students
Report Status
{{ strtoupper($reportCard->status ?? 'Draft') }}
Term GPA
{{ number_format($reportCard->gpa ?? 0, 2) }}
Class Rank
{{ $reportCard->class_rank ? '#' . $reportCard->class_rank : '—' }}
Average Score
{{ number_format($reportCard->average_score ?? 0, 1) }}%
Attendance
{{ number_format($reportCard->overall_attendance_percentage ?? 0, 0) }}%
@forelse($reportCard->grades as $grade) @empty @endforelse
Subject Exams ({{ $reportCard->grades->first()->exam_weight ?? 70 }}%) C.A. ({{ $reportCard->grades->first()->assignment_weight ?? 30 }}%) Final Score Grade GPA Pts Teacher's Remark
{{ $grade->subject->name ?? 'Unknown' }} {{ number_format($grade->exam_score ?? 0, 1) }} {{ number_format($grade->assignment_score ?? 0, 1) }} {{ number_format($grade->final_score ?? 0, 1) }}% @php $letter = $grade->grade_letter ?? '—'; $class = match(true) { in_array($letter, ['A+', 'A']) => 'grade-a', in_array($letter, ['B+', 'B']) => 'grade-b', in_array($letter, ['C+', 'C']) => 'grade-c', $letter === 'F' => 'grade-f', default => '', }; @endphp {{ $letter }} {{ number_format($grade->gpa_points ?? 0, 1) }} {{ $grade->teacher_comment ?? '—' }}
No grades recorded for this term.
Class Teacher's Final Remarks
{{ $reportCard->class_teacher_remarks ?: 'No official remarks provided for this academic term.' }}
GRADING SCALE
A+ (90-100)ExcellentC+ (65-69)Good
A (80-89)Very GoodC (60-64)Average
B+ (75-79)GoodD (50-59)Pass
B (70-74)GoodF (0-49)Fail
@if(file_exists(public_path('img/signature.png'))) Signature @endif
Head of School