@extends('layouts.app') @section('title', $parent->name . ' - Parent Profile') @section('page-title', 'Parent Profile') @section('content')
Back to Parents Edit
{{-- Profile Card --}}
{{ strtoupper(substr($parent->name, 0, 1)) }}

{{ $parent->name }}

{{ $parent->email }}@if($parent->phone) · {{ $parent->phone }}@endif

@if($parent->is_active) Active @else Inactive @endif

Occupation

{{ $parent->parentProfile?->occupation ?? '—' }}

Emergency Contact

{{ $parent->parentProfile?->emergency_contact ?? '—' }}

Address

{{ $parent->parentProfile?->address ?? '—' }}

{{-- Linked Children --}}

Linked Children

@if($parent->children->count())
@foreach($parent->children as $child)
{{ strtoupper(substr($child->name, 0, 1)) }}
{{ $child->name }}

{{ $child->studentProfile?->schoolClass?->full_name ?? 'No class' }} @if($child->pivot->relationship) · {{ $child->pivot->relationship }} @endif

@if($child->is_active) Active @else Inactive @endif
@endforeach
@else

No children linked to this parent.

@endif
{{-- Fee Summary --}} @if($feeSummary && $feeSummary->total_invoices > 0)

Fee Summary

Total Invoices

{{ $feeSummary->total_invoices }}

Total Amount

₹{{ number_format($feeSummary->total_amount ?? 0) }}

Paid

₹{{ number_format($feeSummary->paid_amount ?? 0) }}

Pending

₹{{ number_format($feeSummary->pending_amount ?? 0) }}

@endif
@endsection