{{-- ═══════════════════ MODAL FORM ═══════════════════ --}} @if($this->showForm)
{{-- Header --}}

{{ $this->editingId ? 'Edit Advert' : 'Add New Advert' }}

Slot: {{ $this->formPosition === 'advert_1' ? 'Top Banner' : 'Bottom Banner' }}

{{-- Title --}}
@error('formTitle')

{{ $message }}

@enderror
{{-- Link URL --}}
@error('formLinkUrl')

{{ $message }}

@enderror
{{-- Image Upload --}}
{{-- Preview --}} @if($formImageFile) preview @elseif(!empty($formImageUrl)) preview @else
@endif

Max 10MB · JPG, PNG, GIF, WEBP, BMP, SVG, TIFF

@error('formImageFile')

{{ $message }}

@enderror
{{-- Sort Order + Active --}}
{{-- Wire loading --}}
Uploading image…
{{-- Buttons --}}
@endif {{-- ═══════════════ DELETE CONFIRMATION ═══════════════ --}} @if($this->confirmingDeleteId)

Delete Advert?

This action cannot be undone.

@endif {{-- ═══════════════ SLIDE INTERVAL CONFIG ═══════════════ --}}

Slide Rotation Interval

sec
sec
{{-- ═══════════════ TOP SLOT ═══════════════ --}} @php $topAdverts = $this->topAdverts; @endphp

Top Banner Slot ({{ $topAdverts->count() }} image{{ $topAdverts->count() !== 1 ? 's' : '' }})

Images rotate every {{ $topInterval }}s on the frontend.

@if($topAdverts->isEmpty())

No images in this slot yet.

@else
@foreach($topAdverts as $index => $ad)
{{-- Image --}}
{{ $ad->title }} {{-- Status badge --}} {{ $ad->is_active ? 'Active' : 'Paused' }} {{-- Order badge --}} {{ $ad->sort_order }}
{{-- Info --}}

{{ $ad->title }}

@if($ad->link_url)

{{ $ad->link_url }}

@endif
{{-- Actions --}}
@endforeach
@endif
{{-- ═══════════════ BOTTOM SLOT ═══════════════ --}} @php $bottomAdverts = $this->bottomAdverts; @endphp

Bottom Banner Slot ({{ $bottomAdverts->count() }} image{{ $bottomAdverts->count() !== 1 ? 's' : '' }})

Images rotate every {{ $bottomInterval }}s on the frontend.

@if($bottomAdverts->isEmpty())

No images in this slot yet.

@else
@foreach($bottomAdverts as $index => $ad)
{{-- Image --}}
{{ $ad->title }} {{-- Status badge --}} {{ $ad->is_active ? 'Active' : 'Paused' }} {{-- Order badge --}} {{ $ad->sort_order }}
{{-- Info --}}

{{ $ad->title }}

@if($ad->link_url)

{{ $ad->link_url }}

@endif
{{-- Actions --}}
@endforeach
@endif