تفاصيل طلب تعديل الملف الشخصي
@php
$relationLabels = [
'children' => 'الذرية',
'wife' => 'الزوجة',
'husband' => 'الزوج',
'mother' => 'الأم',
];
// Group details by relation
$groupedDetails = $requestDetails->details->groupBy('relation');
@endphp
@php
$actions = [
'create' => 'إنشاء',
'update' => 'تحديث',
'delete' => 'حذف',
// add more if needed
];
@endphp
@foreach ($groupedDetails as $relation => $details)
{{ $relationLabels[$relation] ?? $relation }}
@if ($relation == 'children')
| الصورة |
الجنس
|
@endif
الهوية |
@if ($relation == 'mother')
زوجة الأب |
@endif
الاسم الأول |
إسم الأب |
{{-- اسم الجد | --}}
إسم العائلة |
نوع الطلب |
@if ($relation == 'children')
تاريخ الميلاد |
تاريخ الوفاة |
@endif
@foreach ($details as $index => $detail)
@if ($relation == 'children')
@if ($detail->profile_image)
@endif
|
{{ $detail->gender == 0 ? 'ذكر' : 'انثى' }} |
@endif
{{ $detail->getNodeId->nodeID ?? '-' }} |
@if ($relation == 'mother')
{{ $detail->from_father_wives == 0 ? 'لا ' : 'نعم ' }} |
@endif
{{ $detail->name }} |
{{ $detail->father_name }} |
{{ $detail->g_father_name }} |
{{ $actions[$detail->action] ?? ucfirst($detail->action) }} |
@if ($relation == 'children')
{{ $detail->dob }} |
{{ $detail->dod }} |
@endif
@endforeach
@endforeach
{{-- Action Buttons --}}