@extends('front.app') @section('content')
@php if (! function_exists('getYouTubeId')) { function getYouTubeId($url) { preg_match("/(youtu\.be\/|youtube\.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&\"'>]+)/", $url, $matches); return $matches[5] ?? null; } } @endphp
Galerie Video
@foreach($videoGallery as $video)
@if($video->video_type === 'youtube')
@else
Your browser does not support the video tag.
@endif
@if($video->video_type === 'youtube')
@else
Your browser does not support the video tag.
@endif
@endforeach
@endsection @push('scripts') @endpush