@extends('layouts.school') @section('title', 'Parents') @section('header', 'Parents & Guardians') @section('content')
@if(request()->filled('search') || request()->filled('relationship')) Clear @endif
+ Add Parent
@forelse($parents as $parent) @empty @endforelse
Name Relationship Phone Email Children Actions
{{ $parent->initials }}
{{ $parent->full_name }}
{{ ucfirst($parent->relationship) }} {{ $parent->phone ?? '—' }} {{ $parent->email ?? '—' }} {{ $parent->children_count }} {{ Str::plural('child', $parent->children_count) }}
View | Edit @if($parent->children_count === 0) |
@csrf @method('DELETE')
@endif
No parents found. Click + Add Parent to register one.
{{ $parents->links() }}
@endsection