@extends('layouts.main_dashboard.app') @section('title', __('dashboard.All Parents')) @section('page_heading', __('dashboard.All Parents')) @section('page_subtitle', app()->getLocale() === 'ar' ? 'إدارة حسابات أولياء الأمور والوصول إلى بياناتهم من واجهة موحدة.' : 'Manage parent accounts and access their records from a unified interface.') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; $totalParents = method_exists($parents, 'total') ? $parents->total() : $parents->count(); $visibleParents = $parents->count(); $parentsWithPhone = $parents->filter(fn ($parent) => filled($parent->phone))->count(); @endphp @section('content')
{{ $isArabic ? 'عرض منظم لحسابات أولياء الأمور مع البحث السريع والوصول المباشر إلى ملفاتهم.' : 'A structured parents directory with quick search and direct access to their profiles.' }}
{{ $isArabic ? 'دليل أولياء الأمور' : 'Parents directory' }}
{{ $isArabic ? 'ابحث عن الحسابات وراجع وسائل التواصل والبيانات الأساسية.' : 'Search accounts and review contact details and essential information.' }}
{{ $isArabic ? 'إجمالي أولياء الأمور' : 'Total parents' }}
{{ $totalParents }}
{{ $isArabic ? 'داخل الصفحة' : 'Visible now' }}
{{ $visibleParents }}
{{ __('dashboard.With Phone') }}
{{ $parentsWithPhone }}
{{ __('dashboard.Current Page') }}
{{ method_exists($parents, 'currentPage') ? $parents->currentPage() : 1 }}
{{ $isArabic ? 'لا توجد حسابات أولياء أمور مطابقة للنطاق الحالي.' : 'No parent accounts match the current scope.' }}
| {{ __('dashboard.Parent') }} | {{ __('dashboard.Contact') }} | {{ __('dashboard.Gender') }} | {{ __('dashboard.ID') }} | {{ __('dashboard.Actions') }} | |
|---|---|---|---|---|---|
|
@if($parent->avatar)
{{ $parent->name }} {{ $parent->address ?: __('dashboard.Not Available') }} |
{{ $parent->email }} {{ $parent->phone ?: __('dashboard.Not Available') }} |
{{ $parent->gender ?: __('dashboard.Not Available') }} | #{{ $parent->id }} |