count() > 1) x-init="setInterval(() => active = (active + 1) % {{ $banners->count() }}, 4500)" @endif>
@foreach($banners as $i => $banner)
{{ $banner->title }}
@endforeach
@if($banners->count() > 1)
@foreach($banners as $i => $banner)
@endforeach
@endif