{{-- --}} {{ $result->first()->reg_no }} {{ $result->first()->term }} {{ $result->first()->session }} Result @vite(['resources/css/app.css', 'resources/js/app.js']) @include('sweetalert::alert') @php $surname = DB::table("students")->where("id", $student->id)->first()->surname; $firstname = DB::table("students")->where("id", $student->id)->first()->firstname; $reg_no = DB::table("students")->where("id", $student->id)->first()->reg_no; //date in mm/dd/yyyy format; or it can be in other formats as well $birthDate = DB::table('students') ->where('reg_no', $student->reg_no)->first()->DoB; //explode the date to get month, day and year if ($birthDate != null){ $birthDate = explode("-", $birthDate); //get age from date or birthdate $age = (date("md", date("U", mktime(0, 0, 0, $birthDate[2], $birthDate[1], $birthDate[0]))) > date("md") ? ((date("Y") - $birthDate[0]) - 1) : (date("Y") - $birthDate[0])); } else { $age = " "; } @endphp

TOP CLASS COMPREHENSIVE COLLEGE

Along Orimerunmu Road, Opp Methodist Church Camp Ground, Ogun State.

Dream it, Believe it, Achieve it

{{$result->first()->session}}, {{$result->first()->term}} Term Report Sheet

Name: {{$surname}} {{$firstname}} Reg_no: {{$reg_no}}
Class: {{ $result->first()->class }} Age: {{ $age }} Term: {{ $result->first()->term }} Session: {{ $result->first()->session }}
> @foreach ($result as $item) @if ($item->ts == null) @else @endif @endforeach
Subjects Midterm (40)Exam (60) Total (100) Grade
{{ $item->subject }} {{ $item->mt }} {{ $item->ex }} {{ $item->ts }} @if (($item->ts >= 80) && ($item->ts <= 100)) A @endif @if (($item->ts >= 70) && ($item->ts <= 79)) B @endif @if (($item->ts >= 60) && ($item->ts <= 69)) C @endif @if (($item->ts >= 50) && ($item->ts <= 59)) D @endif @if (($item->ts >= 40) && ($item->ts <= 49)) E @endif @if (($item->ts >= 0) && ($item->ts <= 39)) F @endif
Total Mark {{ $total }}
Achievable Mark {{ $total_achievable }}
Percentage {{ $percentage }}%
Class Rank {{ $rank }}
Remarks @if (($percentage >= 80) && ($percentage <= 100)) A @endif @if (($percentage >= 70) && ($percentage < 80)) B @endif @if (($percentage >= 60) && ($percentage < 70)) C @endif @if (($percentage >= 50) && ($percentage < 60)) D @endif @if (($percentage >= 40) && ($percentage < 50)) E @endif @if (($percentage >= 0) && ($percentage < 40)) F @endif
Teacher's Comments
Principal's Comments
Grading System
A 80 - 100
Excellent
B 70 - 79
Very Good
C 60 - 69
Good
D 50 - 59
Fair
E 40 - 49
Pass
F 0 - 39
Work Harder