{{-- resources/views/admin/section/layouts/section.blade.php --}} @extends('admin.layouts.master') @section('title', 'Section Management') @push('styles') @endpush @section('content')

Section Management

@if(session('success')) @endif @if(session('error')) @endif

All Sections

@forelse($sections as $index => $section) @empty @endforelse
# Image Display Name File Name Configuration Status Action
{{ $index + 1 }} @if($section->image) Section @else @endif {{ $section->display_name }} @if($section->short_details)
{{ Str::limit($section->short_details, 50) }} @endif
{{ $section->file_name }} @php $settings = json_decode($section->settings, true) ?? []; @endphp @if(!empty($settings['category'])) {{ $settings['total_category'] ?? '∞' }} Categories @endif @if(!empty($settings['widgets'])) {{ $settings['total_widgets'] ?? '∞' }} Widgets @endif @if(!empty($settings['ads'])) {{ $settings['total_ads'] ?? '∞' }} Ads @endif @if(!empty($settings['is_lead_news'])) Lead @endif @if(!empty($settings['is_main_news'])) Main @endif @if(!empty($settings['is_ads_section'])) Ads Section @endif @if($section->status) Active @else Inactive @endif
@csrf @method('DELETE')
No Sections Found

Start by adding your first section

@endsection