@extends('layouts.app') @section('title', $student->full_name) @php $rows = [ 'Admission Number' => $student->admission_no, 'UPI' => $student->upi, 'Admission Code' => $student->admission_code, 'Assessment No' => $student->assessment_no, 'Pathway' => $student->pathway, 'Full Name' => $student->full_name, 'Gender' => $student->gender, 'Date of Birth' => $student->date_of_birth?->format('d M Y'), 'Date of Admission' => $student->date_of_admission?->format('d M Y'), 'Birth Certificate Entry' => $student->birth_certificate_entry, 'Citizenship' => $student->citizenship, 'Home County' => $student->home_county, 'Special Needs' => $student->special_needs, 'Religion' => $student->religion, 'Class' => $student->class_name.' '.$student->stream, 'Category' => $student->category, 'KCPE / Entry Marks' => $student->kcpe_marks ? (string) $student->kcpe_marks : '', 'KJSEA Points' => $student->kjsea_points ? (string) $student->kjsea_points : '', 'Previous School' => $student->previous_school, 'House' => $student->house, 'Address' => $student->address, ]; $parentRows = [ 'Father' => $student->parent_name, 'Father Phone' => $student->parent_phone, 'Father National ID' => $student->parent_national_id, 'Father Email' => $student->parent_email, 'Mother' => $student->mother_name, 'Mother Phone' => $student->mother_phone, 'Mother National ID' => $student->mother_national_id, 'Mother Email' => $student->mother_email, 'Guardian' => $student->guardian_name, 'Guardian Relationship' => $student->guardian_relationship, 'Guardian National ID' => $student->guardian_national_id, 'Guardian Phone' => $student->guardian_phone, 'Guardian Email' => $student->guardian_email, ]; $transportRows = [ 'Route' => $student->transport_route, 'Drop-off' => $student->transport_drop_off, 'Mode' => $student->transport_mode, ]; @endphp @section('content')
{{ strtoupper(substr($student->first_name, 0, 1) . substr($student->surname, 0, 1)) }}

{{ $student->full_name }}

Adm No {{ $student->admission_no }} · {{ $student->class_name }} {{ $student->stream }} · {{ $student->category }}

Back Edit
@csrf

Student Details

@foreach ($rows as $label => $value)
{{ $label }}
{{ $value ?: '—' }}
@endforeach

Transport

@foreach ($transportRows as $label => $value)
{{ $label }}
{{ $value ?: '—' }}
@endforeach

Parent / Guardian

@foreach ($parentRows as $label => $value)
{{ $label }}
{{ $value ?: '—' }}
@endforeach
@endsection