Parents Directory
@if(!empty($parents_data) && $parents_data->count() > 0)

Parents Directory

{{ $parents_data->total() }} parents found

@foreach($parents_data as $parentData) @php $parent = $this->getParentDetails($parentData->parent_id); $children = $this->getChildrenForParent($parentData->parent_id); @endphp @if($parent)
{{ $parent->name }}
{{ $parent->user_type === 'parent' ? 'Parent' : 'Guardian' }}
{{ $parentData->total_children }} child{{ $parentData->total_children > 1 ? 'ren' : '' }}
@if($parent->email)
Email
{{ $parent->email }}
@endif @if($parent->phone)
Phone
{{ $parent->phone }}
@endif @if($parent->phone2)
Phone 2
{{ $parent->phone2 }}
@endif
@if($parent->guardian_occupation || $parent->guardian_address)
@if($parent->guardian_occupation)
Occupation: {{ $parent->guardian_occupation }}
@endif @if($parent->guardian_address)
Address: {{ $parent->guardian_address }}
@endif
@endif
Children
@foreach($children as $child)
{{ $child->student_name }} ({{ $child->adm_no }}) - {{ $child->class_name }}
@endforeach
@endif @endforeach
{{ $parents_data->links() }}
@else

No Parents Found

@if($selected_class || $search) No parents match your current filter criteria. Try adjusting your search parameters. @else No parent information is available in the system. @endif

@if($selected_class || $search)
@endif
@endif @if($showCreateParentModal) @endif @if($showAssignStudentModal) @endif
@push('styles') @endpush