@extends('layouts.app') @section('title', 'Parent Management') @section('page-title', 'Parent Management') @section('content')

Manage parent accounts and link them with their children.

Add New Parent
{{-- Filters --}}
Clear
{{-- Table --}}
@forelse($parents as $parent) @empty @endforelse
Parent Occupation Children Emergency Contact Status Actions
{{ $parent->name }}

{{ $parent->email }}

@if($parent->phone)

{{ $parent->phone }}

@endif
{{ $parent->parentProfile?->occupation ?? '—' }} @if($parent->children->count())
@foreach($parent->children as $child) {{ $child->name }} @endforeach
@else No children linked @endif
{{ $parent->parentProfile?->emergency_contact ?? '—' }} @if($parent->is_active) Active @else Inactive @endif
@csrf @method('PATCH')

No parents found.

@if($parents->hasPages())
{{ $parents->links() }}
@endif
@endsection