@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if(in_array(request('type', 'all'), ['all', 'static']) && $staticSections->count() > 0)
الأقسام الثابتة
(غير قابلة للحذف)
| # |
الترتيب |
المفتاح |
العنوان |
الحالة |
إجراءات |
@foreach($staticSections as $index => $section)
| {{ $index + 1 }} |
{{ $section->position }}
|
{{ $section->section_key }}
|
{{ $section->title }} |
|
|
@endforeach
@endif
@if(in_array(request('type', 'all'), ['all', 'dynamic']) && $dynamicSections->count() > 0)
الأقسام الديناميكية
(قابلة للتعديل والحذف)
| # |
الترتيب |
العنوان |
المستخدم |
العناصر |
الحالة |
إجراءات |
@forelse($dynamicSections as $i => $section)
| {{ $dynamicSections->firstItem() + $i }} |
{{ $section->position }}
|
{{ $section->titre_ar }} |
{{ $section->user->nom_prenom ?? '-' }} |
{{ $section->contents_count ?? $section->contents->count() }}
|
{{ $section->is_active ? 'نشط' : 'غير نشط' }}
|
|
@empty
| لا توجد أقسام ديناميكية. |
@endforelse
@if($dynamicSections->hasPages())
{{ $dynamicSections->links('pagination::bootstrap-5') }}
@endif
@endif
@if((request('type', 'all') == 'all' && $staticSections->isEmpty() && $dynamicSections->isEmpty()) ||
(request('type') == 'static' && $staticSections->isEmpty()) ||
(request('type') == 'dynamic' && $dynamicSections->isEmpty()))
لا توجد أقسام مطابقة للبحث.
@endif