@php // Convert string to array of ints $columnsToShow = collect(explode(',', $show_columns ?? '')) ->map(fn($c) => (int) trim($c)) ->filter(); @endphp
| الجنس | @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 |
|---|---|---|---|---|---|---|---|---|
| {{ $record->gender == '0' ? 'ذكر' : 'انثى' }} | @endif @if ($columnsToShow->contains(1)){{ $record->name }} | @endif @if ($columnsToShow->contains(2)){{ $record->father_name }} | @endif @if ($columnsToShow->contains(3)){{ $record->grand_father_name }} | @endif @if ($columnsToShow->contains(5)) @if (!empty($fifthvalue)){{ $record->next_g_grand_father_one }} | @endif @endif @if ($columnsToShow->contains(4)){{ $record->g_grand_father_name }} | @endif{{ $record->dob }} | {{ $record->dod }} | @if (empty($viewOnly) || $viewOnly === false)@endif |
| لا يوجد بيانات | ||||||||