🌟 Highlight
{{-- Tombol kiri/kanan --}}
←
→
{{-- Kontainer scroll horizontal --}}
@foreach ([$highlights, $highlights] as $group) @foreach ($group as $highlight) @php $mediaPath = asset('storage/' . ($highlight->gambar ?: 'default.jpg')); $ext = strtolower(pathinfo($mediaPath, PATHINFO_EXTENSION)); $isVideo = in_array($ext, ['mp4', 'webm', 'mov', 'avi']); @endphp
{{-- Media Preview (Image or Video) --}} @if ($isVideo)
@else
@endif
{{-- Ikon --}} @if ($highlight->ikon)
@endif {{-- Teks --}}
{{ $highlight->judul }}
{{ Str::limit($highlight->deskripsi, 100) }}
@endforeach @endforeach
{{-- Style dan Script --}}