@php use App\Models\Youtube; $video = Youtube::findOrFail($id); @endphp @extends('layouts.webfront.page-details') @section('header_title', 'Al-fatihah Center TV') @section('header_url_back', '/') @section('styles') @endsection @section('content')
@if ($video) @php $videoId = $video->id_youtube; $thumbnailUrl = "https://img.youtube.com/vi/{$videoId}/hqdefault.jpg"; @endphp
YouTube Thumbnail
{{ $video->judul }}
@endif
@endsection @section('modal') @endsection @section('scripts') @endsection