@extends('layouts.app') @section('title', 'Student Profile') @section('content') @php $user = auth()->user(); $canEdit = $user?->hasPermission('students.edit') ?? false; $canDelete = $user?->hasPermission('students.delete') ?? false; $canFee = $user?->hasPermission('finance.view') ?? false; @endphp

Student profile

Full learner record, academic history, fees and attendance.
Back to list @if($canFee) Fee statement @endif @if($canEdit) @endif
@if($student->photo_url) @else {{ initials($student->full_name) }} @endif

{{ $student->full_name }}

{{ ucfirst($student->status) }} {{ $student->category }}
{{ $student->admission_no }} · {{ $student->class_label }} · {{ $student->gender }} · {{ $student->age ? $student->age.' years' : 'Age not captured' }}
UPI: {{ $student->upi ?: '—' }} Pathway: {{ $student->pathway ?: '—' }} House: {{ $student->house ?: '—' }} Admitted: {{ $student->admission_date?->format('j M Y') ?? '—' }}
@if($canEdit)
@csrf
@endif @if($canDelete) @endif Certificate
Admission number
{{ $student->admission_no }}
UPI / NEMIS
{{ $student->upi ?: '—' }}
Assessment no.
{{ $student->assessment_no ?: '—' }}
Date of birth
{{ $student->dob?->format('j F Y') ?? '—' }}
Gender
{{ $student->gender }}
Category
{{ $student->category }}
Class / stream
{{ $student->class_label }}
House
{{ $student->house ?: '—' }}
Citizenship
{{ $student->citizenship ?: '—' }}
Home county
{{ $student->home_county ?: '—' }}
Religion
{{ $student->religion ?: '—' }}
KCPE marks
{{ $student->kcpe_marks ?: '—' }}
KJSEA points
{{ $student->kjsea_points ?: '—' }}
Previous school
{{ $student->previous_school ?: '—' }}
Special needs
{{ $student->special_needs ?: 'None recorded' }}
Address
{{ $student->address ?: '—' }}
Father
{{ $student->father_name ?: '—' }}
Father phone
{{ $student->father_phone ?: '—' }}
Father email
{{ $student->father_email ?: '—' }}
Father ID
{{ $student->father_id ?: '—' }}
Mother
{{ $student->mother_name ?: '—' }}
Mother phone
{{ $student->mother_phone ?: '—' }}
Mother email
{{ $student->mother_email ?: '—' }}
Mother ID
{{ $student->mother_id ?: '—' }}
Guardian name
{{ $student->guardian_name ?: '—' }}
Guardian phone
{{ $student->guardian_phone ?: '—' }}
@forelse($marks as $m) @empty @endforelse
SubjectExamScoreGradeStatus
{{ $m->subject }}{{ $m->exam }}{{ number_format($m->score, 1) }}{{ $m->grade ?: '—' }}{{ ucfirst($m->status) }}

Recent payments

@forelse($payments as $p) @empty @endforelse
ReceiptDateModeAmount
{{ $p->receipt_no }}{{ \Carbon\Carbon::parse($p->paid_on)->format('j M Y') }}{{ $p->mode }}{{ money($p->amount) }}Receipt
{!! \App\Support\Chart::donut(['Present' => $attendance['present'] ?? 0, 'Absent' => $attendance['absent'] ?? 0, 'Late' => $attendance['late'] ?? 0], 150) !!}
Present
{{ num($attendance['present'] ?? 0) }} days
Absent
{{ num($attendance['absent'] ?? 0) }} days
Late
{{ num($attendance['late'] ?? 0) }} days
Attendance rate
{{ pct($attendance['present'] ?? 0, array_sum($attendance)) }}
@forelse($pocket as $p) @empty @endforelse
DateTypeNoteAmountBalance
{{ \Carbon\Carbon::parse($p->created_at)->format('j M Y H:i') }}{{ ucfirst($p->type) }}{{ $p->note ?: '—' }}{{ money($p->amount) }}{{ money($p->balance_after) }}
@if($canEdit)
@csrf @method('PUT') @include('students._form', ['student' => $student])
@endif @if($canDelete)
@csrf @method('DELETE')
@endif @endsection