@extends('layouts.school') @section('title', $parent->full_name) @section('header', 'Parent Details') @section('content')
← Back to Parents
Edit Parent @if(($parent->children_count ?? 0) === 0 && !$children->count())
@csrf @method('DELETE')
@endif
{{ $parent->initials }}

{{ $parent->full_name }}

{{ ucfirst($parent->relationship) }}
Phone
{{ $parent->phone ?? '—' }}
Alternate Phone
{{ $parent->alternate_phone ?? '—' }}
Email
{{ $parent->email ?? '—' }}
Occupation
{{ $parent->occupation ?? '—' }}
Address
@if($parent->address || $parent->city || $parent->state) {{ $parent->address }}{{ $parent->city ? ', ' . $parent->city : '' }}{{ $parent->state ? ', ' . $parent->state : '' }} @else — @endif
@if($parent->notes)
Other Information
{{ $parent->notes }}
@endif
Registered
{{ $parent->created_at?->format('d M Y') ?? '—' }}

Children / Linked Students ({{ $children->count() }})

+ Register Student
@forelse($children as $child) @empty @endforelse
Student Admission No. Class Status
{{ $child->initials }}
{{ $child->full_name }}
{{ $child->admission_no ?? '—' }} {{ $child->class?->name ?? 'Unassigned' }} {{ $child->is_active ? 'Active' : 'Inactive' }} View Student
No students linked to this parent yet.
@endsection