@php // Convert string to array of ints $columnsToShow = collect(explode(',', $show_columns ?? '')) ->map(fn($c) => (int) trim($c)) ->filter(); @endphp

{{ $title }}

{{-- Always show first name --}} @if (!empty($gender)) @endif @if ($columnsToShow->contains(1)) @endif @if ($columnsToShow->contains(2)) @endif @if ($columnsToShow->contains(3)) @endif @if ($columnsToShow->contains(5)) @endif @if ($columnsToShow->contains(4)) @endif @if (empty($viewOnly) || $viewOnly === false) @endif @php if ($relationKey == 'sibling') { $records = $familyregisteration ->relationRecord() ->where('family_relation', $relationKey) ->orderBy('sequence', 'asc') ->get(); } else { $records = $familyregisteration ->relationRecord() ->where('family_relation', $relationKey) ->orderBy('id', 'asc') ->get(); } @endphp @if ($records->isNotEmpty()) @foreach ($records as $record) @if (!empty($gender)) @endif @if ($columnsToShow->contains(1)) @endif @if ($columnsToShow->contains(2)) @endif @if ($columnsToShow->contains(3)) @endif @if ($columnsToShow->contains(5)) @if (!empty($fifthvalue)) @endif @endif @if ($columnsToShow->contains(4)) @endif @if (empty($viewOnly) || $viewOnly === false) @endif @endforeach @else @endif
الجنسالإسم الأولإسم الأبإسم الجدإسم الجد ٢إسم العائلةتاريخ الميلاد تاريخ الوفاة
{{ $record->gender == '0' ? 'ذكر' : 'انثى' }} {{ $record->name }}{{ $record->father_name }}{{ $record->grand_father_name }}{{ $record->next_g_grand_father_one }}{{ $record->g_grand_father_name }}{{ $record->dob }} {{ $record->dod }}
لا يوجد بيانات
@if (empty($viewOnly) || $viewOnly === false) @endif