{{-- Full-width hero slider: one slide per active slider, search widget on top. The slider is absolutely sized by .hero-slider so the search widget can sit over the bottom of it whatever the slide's own height. --}} @php $swiperOpts = [ 'slidesPerView' => 1, 'loop' => $heroSlides->count() > 1, 'speed' => 800, 'effect' => 'fade', 'fadeEffect' => ['crossFade' => true], 'pagination' => ['el' => '.hero-swiper-pagination', 'clickable' => true], ]; if ($autoplay > 0 && $heroSlides->count() > 1) { $swiperOpts['autoplay'] = ['delay' => $autoplay * 1000, 'disableOnInteraction' => false]; } @endphp
@foreach($heroSlides as $slide)
@if($loop->first) @php $badge = $section->eyebrow($slide->badge ?: null); @endphp @else @php $badge = $slide->badge ?: null; @endphp @endif @if($badge) {{ $badge }} @endif

{{ $slide->title }}

@if($slide->subtitle)

{{ $slide->subtitle }}

@endif @if($slide->cta_text) {{ $slide->cta_text }} @endif
@endforeach
@if($heroSlides->count() > 1)
@endif
@if($showSearch)
@include('frontend.sections._search-widget')
@endif