changes
This commit is contained in:
@ -46,7 +46,7 @@ class WebsiteController extends Controller
|
||||
{
|
||||
$channelId = env('CHANNEL_ID');
|
||||
$videos = fetchVideosByChannel($channelId);
|
||||
|
||||
|
||||
return view('landing.index', [
|
||||
'videos' => $videos,
|
||||
'banners' => Banners::get(),
|
||||
|
@ -898,20 +898,37 @@
|
||||
Trusted by Many — Testimonials
|
||||
</h2>
|
||||
<div class="row g-3">
|
||||
@foreach ($videos as $video)
|
||||
@php
|
||||
$videoId = $video['id']['videoId'];
|
||||
$embedUrl = "https://www.youtube.com/embed/{$videoId}";
|
||||
@endphp
|
||||
<div class="col-xl-3 col-lg-4 col-md-6 col-12">
|
||||
<div class="visa-post">
|
||||
<iframe width="100%" height="350" src="{{ $embedUrl }}" title="YouTube video"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
|
||||
@if ($videos)
|
||||
@foreach ($videos as $video)
|
||||
@php
|
||||
$videoId = $video['id']['videoId'];
|
||||
$embedUrl = "https://www.youtube.com/embed/{$videoId}";
|
||||
@endphp
|
||||
<div class="col-xl-3 col-lg-4 col-md-6 col-12">
|
||||
<div class="visa-post">
|
||||
<iframe width="100%" height="350" src="{{ $embedUrl }}" title="YouTube video"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endforeach
|
||||
@else
|
||||
@php
|
||||
$other_videos = [
|
||||
'<iframe width="560" height="315" src="https://www.youtube.com/embed/b51bEcaWsj8?si=c0fP_tuGge1EidxM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>',
|
||||
'<iframe width="560" height="315" src="https://www.youtube.com/embed/AaJuKvdom7c?si=4J696jmGI-_lhnAR" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>,',
|
||||
'<iframe width="560" height="315" src="https://www.youtube.com/embed/b51bEcaWsj8?si=c0fP_tuGge1EidxM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>,',
|
||||
];
|
||||
@endphp
|
||||
@foreach ($other_videos as $video)
|
||||
<div class="col-xl-3 col-lg-4 col-md-6 col-12">
|
||||
<div class="visa-post">
|
||||
{!! $video !!}
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user