@php use App\Models\Profile; $profil = Profile::first(); $nomor = $profil?->telepon ?? '08123456789'; @endphp
@foreach ($slides as $i => $thumb)
@endforeach
@forelse ($slides as $index => $slide)
@if ($slide->video_path && str_ends_with($slide->video_path, '.mp4'))
@endif @if ($slide->video_path && str_contains($slide->video_path, 'youtube.com'))
@endif
{{ $slide->judul }}
{{ Str::limit($slide->deskripsi, 150) }}
Hubungi Kami
⛶ Layar Gambar
@if ($slide->video_path)
🔗 Preview Video
@endif
@empty
Tidak ada slide aktif
@endforelse