{{-- Offers: Slides --}} @php $slides = $items->get('slide', collect()); @endphp
{{ __('Slides') }} {{ __('Angebots-Slides werden in der angegebenen Reihenfolge angezeigt') }}
{{ __('Slide hinzufügen') }}
@if($slides->isEmpty())

{{ __('Noch keine Slides vorhanden.') }}

@else
@foreach($slides as $index => $item)
@if($index > 0) @endif @if($index < count($slides) - 1) @endif
content['image_url'])) style="background-image: url('{{ $item->content['image_url'] }}')" @endif>
{{ $item->content['title'] ?? 'Slide' }}
{{ $item->content['price'] ?? ($item->content['badge_text'] ?? '') }}
{{ $item->is_active ? __('Aktiv') : __('Inaktiv') }} {{ match($item->content['type'] ?? '') { 'intro' => 'Intro', 'product-hero' => 'Produkt-Hero', 'product-details' => 'Produkt-Details', 'product-impulse' => 'Produkt-Impuls', default => $item->content['type'] ?? '–', } }} {{ $item->content['title'] ?? '–' }}
@if(!empty($item->content['price'])) {{ $item->content['price'] }} @endif {{ number_format(($item->content['duration'] ?? 8000) / 1000, 1) }}s @if(!empty($item->content['badge_text'])) {{ $item->content['badge_text'] }} @endif
@endforeach
@endif