@extends('layouts.school') @section('title', $student->full_name) @section('header', 'Student Profile') @section('content')
← Back to students
ID Card Report Edit Student
@csrf @method('DELETE')
{{-- Identity header --}}
@if($student->photo_url) {{ $student->full_name }} @else
{{ $student->initials }}
@endif
Change photo
@csrf
@if($student->photo)
@csrf
@endif

{{ $student->full_name }}

{{ $student->status_label }}

{{ $student->admission_no }} @if($student->class) · {{ $student->class->name }} @endif @if($student->campus) · {{ $student->campus->name }} @endif

Attendance
{{ $attendance['rate'] }}%
Outstanding
₦{{ number_format($feeSummary['outstanding'], 0) }}
Latest avg
{{ $sheets->firstWhere('status', 'published')?->average ? $sheets->firstWhere('status', 'published')->average . '%' : '—' }}
Siblings here
{{ $student->parent?->children?->count() ?? 0 }}
{{-- LEFT / MAIN --}}
{{-- Personal information --}}

Personal Information

First Name
{{ $student->first_name }}
Middle Name
{{ $student->middle_name ?? '—' }}
Last Name
{{ $student->last_name }}
Gender
{{ ucfirst($student->gender ?? '—') }}
Date of Birth
{{ $student->date_of_birth?->format('d M Y') ?? '—' }}@if($student->age) ({{ $student->age }} yrs)@endif
Blood Group
{{ $student->blood_group ?? '—' }}
Nationality
{{ $student->nationality ?? '—' }}
State of Origin
{{ $student->state_of_origin ?? '—' }}
LGA
{{ $student->lga ?? '—' }}
Phone
{{ $student->phone ?? '—' }}
Email
{{ $student->email ?? '—' }}
National ID No.
{{ $student->national_id_no ?? '—' }}
Home Address
{{ collect([$student->address, $student->city, $student->state])->filter()->implode(', ') ?: '—' }}
@if($student->previous_school)
Previous School
{{ $student->previous_school }}
@endif @if($student->medical_conditions || $student->allergies || $student->height || $student->weight)
Height
{{ $student->height ? $student->height . ' m' : '—' }}
Weight
{{ $student->weight ? $student->weight . ' kg' : '—' }}
Medical Conditions
{{ $student->medical_conditions ?? '—' }}
Allergies
{{ $student->allergies ?? '—' }}
@endif
{{-- Academic information & history --}}

Academic Information

Admission Number
{{ $student->admission_no }}
Roll Number
{{ $student->roll_no ?? '—' }}
Current Class
{{ $student->class?->name ?? 'Unassigned' }}
Admission Date
{{ $student->admission_date?->format('d M Y') ?? $student->admitted_at?->format('d M Y') ?? '—' }}
Status
{{ $student->status_label }}
Registered
{{ $student->created_at?->format('d M Y') }}

Class & Promotion History

@forelse($student->enrollments as $enrollment) @empty @endforelse
Academic Year Class Status
{{ $enrollment->academicYear?->name ?? '—' }} {{ $enrollment->classroom?->name ?? '—' }} {{ ucfirst($enrollment->status) }}
No enrollment history yet.
@if($sheets->isNotEmpty())

Examination Results

@endif @if($conduct->isNotEmpty())

Conduct & Skills — {{ $conduct->first()->term?->name }}

@foreach($conduct as $score) {{ $score->trait?->name ?? 'Trait' }} {{ $score->rating ?? '' }} @endforeach
@endif
{{-- Attendance + Fees side by side --}}

Attendance Records

{{ $attendance['rate'] }}% {{ array_sum($attendance['counts']) }} days marked

{{ $attendance['counts']['present'] }}

Present

{{ $attendance['counts']['absent'] }}

Absent

{{ $attendance['counts']['late'] }}

Late

{{ $attendance['counts']['excused'] }}

Excused

Full attendance report →

Fee & Payment Summary

Total billed
₦{{ number_format($feeSummary['billed'], 2) }}
Total paid
₦{{ number_format($feeSummary['paid'], 2) }}
Outstanding
₦{{ number_format($feeSummary['outstanding'], 2) }}
@if($feeSummary['invoices']->isNotEmpty())

Recent payments

    @foreach($feeSummary['payments']->take(4) as $payment)
  • {{ $payment->payment_date?->format('d M Y') ?? '—' }} · {{ \Illuminate\Support\Str::limit($payment->reference ?? $payment->method ?? 'Payment', 22) }}₦{{ number_format($payment->amount, 2) }}
  • @endforeach @if($feeSummary['payments']->isEmpty())
  • No payments recorded.
  • @endif
@endif Invoices →
{{-- RIGHT SIDEBAR --}}
{{-- Parent/guardian --}}

Parent / Guardian

@if($student->parent)
{{ $student->parent->initials }}

{{ $student->parent->full_name }}

{{ ucfirst($student->parent->relationship ?? '') }}@if($student->parent->phone) · {{ $student->parent->phone }}@endif

View Parent Details → @if($student->parent->children->isNotEmpty())

Siblings at this school

@endif @else

No parent assigned. Assign one now

@endif
{{-- Student portal account --}}

Student Portal Account

@if($portalUser)
Email
{{ $portalUser->email }}
Status
{{ $portalUser->is_active ? 'Active' : 'Disabled' }}
@csrf
@csrf
@else

Create a login so {{ $student->first_name }} can access the student portal.

@csrf
@endif
{{-- Status management --}}

Status Management

@csrf
@csrf
{{-- Documents --}}

Documents

@if($student->documents->isNotEmpty())
    @foreach($student->documents as $doc)
  • {{ $doc->title }} {{ $doc->size_for_humans }}
    @csrf @method('DELETE')
  • @endforeach
@else

No documents uploaded (birth certificate, transcripts, etc.).

@endif
@csrf
@if($student->notes)

Notes

{{ $student->notes }}

@endif
@endsection