@extends('frontend.layouts.app') @section('content')
@php if (!function_exists('sef_extract_youtube_id')) { function sef_extract_youtube_id($url) { if (!$url) { return null; } $patterns = [ '/youtu\.be\/([a-zA-Z0-9_-]{11})/', '/youtube\.com\/watch\?v=([a-zA-Z0-9_-]{11})/', '/youtube\.com\/embed\/([a-zA-Z0-9_-]{11})/', '/youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/', ]; foreach ($patterns as $pattern) { if (preg_match($pattern, $url, $matches)) { return $matches[1]; } } parse_str(parse_url($url, PHP_URL_QUERY) ?? '', $query); return $query['v'] ?? null; } } @endphp @if(isset($largeSliders) && $largeSliders->count())
@endif @isset($homeSections) @foreach($homeSections as $section) @include('frontend.partials.home-section-block', ['section' => $section]) @endforeach @endisset
@endsection @push('style') @endpush