{{ __('بيانات ولي الأمر') }}

@if(session('success')) @endif

البيانات الشخصية

@if($parent->profile_photo_path) {{ $parent->full_name }} @else
{{ mb_substr($parent->full_name, 0, 1) }}
@endif

{{ $parent->full_name }}

{{ $parent->status === 'active' ? 'نشط' : 'غير نشط' }}

{{ $parent->phone }}

{{ $parent->email ?? '—' }}

@if($parent->user_id) ✓ يوجد حساب نشط @else
✗ لا يوجد حساب @if($parent->email)
@csrf
@else ⚠️ يجب إضافة بريد إلكتروني أولاً @endif
@endif

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

الأبناء المرتبطون

{{ $parent->students->count() }} {{ $parent->students->count() == 1 ? 'ابن' : 'أبناء' }}
@if($parent->students->count() > 0)
@foreach($parent->students as $student) @endforeach
اسم الطالب الصف صلة القرابة نوع ولي الأمر الوصول للبوابة
{{ $student->grade ? $student->grade->name : '—' }} @php $relationships = [ 'father' => 'أب', 'mother' => 'أم', 'grandfather' => 'جد', 'grandmother' => 'جدة', 'uncle' => 'عم/خال', 'aunt' => 'عمة/خالة', 'guardian' => 'وصي', 'brother' => 'أخ', 'sister' => 'أخت', 'other' => 'أخرى' ]; @endphp {{ $relationships[$student->pivot->relationship_type] ?? $student->pivot->relationship_type }} @if($student->pivot->is_primary) ⭐ رئيسي @else ثانوي @endif @if($student->pivot->can_access_portal) ✓ مفعل @else ✗ معطل @endif
@else

لا يوجد أبناء مرتبطون بهذا ولي الأمر

إضافة طلاب
@endif