@extends('backend.template.layouts.template-base') @section('title', 'Banner Details') @section('content')
{{-- Header --}} {{-- Banner Info Card --}}
@if ($banner->banner_image) banner @else
@endif
{{-- Sections Table --}}
Sections ({{ $banner->sections->count() }} total)
@if ($banner->sections->isEmpty())
No sections added to this banner.
@else
@foreach ($banner->sections as $section) @endforeach
Order Section Name Category From Date To Date Status
{{ $loop->iteration }}
{{ $section->name }}
{{ $section->category?->name ?? '—' }} {{ $section->pivot->from_date ? \Carbon\Carbon::parse($section->pivot->from_date)->format('d/m/Y') : '—' }} {{ $section->pivot->to_date ? \Carbon\Carbon::parse($section->pivot->to_date)->format('d/m/Y') : '—' }} {{ ucfirst($section->pivot->status) }}
@endif
{{-- Status Modal --}} {{-- Delete Modal --}} @endsection @section('scripts') @endsection