@extends('backoffice.dashboard') @section('content') @if(Auth::check())

إدارة أقسام الصفحة الرئيسية

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