@extends('admin.layouts.master') @section('title', 'Student Statement of Result') @section('css') @endsection @section('content')

Student Statement of Result Desk

Search any student matriculation number to generate their complete Academic Statement across all registered semesters.

@if($matric && $student && count($semesterBlocks) > 0) Print @endif
@if($matric === '')

No Student Selected

Please enter a student's Registration Number (Matriculation Number) in the search bar above to view their consolidated academic statement.

@elseif(!$student)

Student Not Found

No student record found matching registration number {{ $matric }}.

Search Again
@elseif(count($semesterBlocks) === 0)

No Result Records Found

Student {{ $student->name }} ({{ $student->matric }}) was found in the portal system.

However, no examination scores have been published for this matriculation number yet.

@else
Official Academic Document • Verified Student Record Print Statement of Result
@if(($unpublishedCount ?? 0) > 0)
Unpublished Results Warning: This student has {{ $unpublishedCount }} unpublished result item(s) (hidden from student portal) and {{ $publishedCount }} published item(s).
@else
All Results Published: All {{ $publishedCount }} result records for this student are active and published on the student portal.
@endif
ABU Emblem

DEPARTMENT OF {{ strtoupper($student->department_name ?? 'DISTANCE LEARNING CENTRE') }}
Ahmadu Bello University, Zaria
Distance Learning Centre
STUDENT'S CONSOLIDATED STATEMENT OF RESULT

Student Photo
Reg. No.: {{ $student->matric }}
Student Name: {{ $student->name }}
Degree Option: {{ $student->degree_name }}
@php if($student->level == 700) $lvl = 'PDG'; elseif($student->level == 800) $lvl = 'Year I'; elseif($student->level == 850) $lvl = 'Year II'; elseif($student->level == 875) $lvl = 'Year III'; else $lvl = $student->level; @endphp Level: {{ $lvl }}

@foreach($semesterBlocks as $block) @php $semNum = $block['semester']; if ($semNum == 1) $semName = 'January'; elseif ($semNum == 2) $semName = 'May'; elseif ($semNum == 3) $semName = 'September'; else $semName = 'Semester ' . $semNum; $record = $block['record']; $grades = $block['grades']; @endphp
Academic Session: {{ $block['session'] }}/{{ $block['session'] + 1 }} • {{ $semName }} Semester Academic Records
@foreach($grades as $grade) @endforeach
# Course Code Course Title Unit Score Grade Point Status
{{ $loop->index + 1 }} {{ $grade->course_code }} {{ $grade->title }} {{ $grade->unit ?? 2 }} {{ $grade->score }} {{ $grade->grade }} {{ $grade->point * ($grade->unit ?? 2) }} @if(isset($grade->is_show) && $grade->is_show == 1) Published @else @endif
@if($record) @php $gpa = 0; if ($record->current_tcur > 0) $gpa = $record->current_tcp / $record->current_tcur; @endphp @php $pgpa = 0; if ($record->previous_tcur > 0) $pgpa = $record->previous_tcp / $record->previous_tcur; @endphp @php $cgpa = 0; $denom = $record->current_tcur + $record->previous_tcur; if ($denom > 0) $cgpa = ($record->current_tcp + $record->previous_tcp) / $denom; @endphp
  TCUR TCUE TCP GPA Remark / Status
Current {{ $record->current_tcur }} {{ $record->current_tcue }} {{ $record->current_tcp }}{{ round($gpa, 2) }} {{ $record->carry_over !== 'Pass.' ? $record->carry_over : '' }} {{ $record->remark }}
Previous {{ $record->previous_tcur }} {{ $record->previous_tcue }} {{ $record->previous_tcp }}{{ round($pgpa, 2) }}
Cumulative {{ $record->current_tcur + $record->previous_tcur }} {{ $record->current_tcue + $record->previous_tcue }} {{ $record->current_tcp + $record->previous_tcp }} {{ round($cgpa, 2) }}
@endif
@endforeach
Official Academic Result Audit Document • Generated by ABU Distance Learning Centre Portal • Date: {{ date('F d, Y') }}
@endif
@endsection @section('js') @endsection