{{-- components/banner-slider.blade.php Rasio 9:4 (1080×480 px), lebar penuh, tanpa panah, auto-scroll 4 s, swipe, titik indikator. --}}
@if(isset($banners) && $banners->count() > 0)
@foreach($banners as $banner)
@if($banner->link) {{ $banner->title ?: '' }}first) fetchpriority="high" @else loading="lazy" @endif> @else {{ $banner->title ?: '' }}first) fetchpriority="high" @else loading="lazy" @endif> @endif
@endforeach
@if($banners->count() > 1)
@foreach($banners as $banner) @endforeach
@endif
@else {{-- Fallback jika belum ada banner --}}
@auth
Halo, {{ auth()->user()->name ?? 'Pengguna' }}
@else
Halo
@endauth
{{ \App\Models\Setting::getValue('site_name', config('app.name')) }}
@auth Isi saldo @else Top up game @endauth
@endif