@guest {{--
--}}
@endguest @auth {{--
--}}
@endauth

{{ $form->title }}

{{-- @if ($form->description)
{!! Purifier::clean($form->description) !!}
@endif --}} @if ($form->image && $form->active_image)
{{ $form->title }}
@endif {{-- @if ($form->video && $form->active_video)
@endif --}} @if ($form->video && $form->active_video) @php $videoUrl = $form->video; $videoId = null; $videoHash = null; $isVimeo = false; $isInstagram = false; $isTikTok = false; $isShorts = false; $aspectRatio = '16/9'; $maxWidth = '800px'; // --- YouTube + Shorts --- if (preg_match('#youtu\.be/([a-zA-Z0-9_-]+)#', $videoUrl, $m)) { $videoId = $m[1]; } elseif (preg_match('#youtube\.com/watch\?v=([a-zA-Z0-9_-]+)#', $videoUrl, $m)) { $videoId = $m[1]; } elseif (preg_match('#youtube\.com/shorts/([a-zA-Z0-9_-]{11})#', $videoUrl, $m)) { $videoId = $m[1]; $isShorts = true; } if ($isShorts) { $aspectRatio = '9/16'; $maxWidth = '450px'; } // --- Vimeo --- if (str_contains($videoUrl, 'vimeo.com')) { $isVimeo = true; if (preg_match('#vimeo\.com/(?:video/)?(\d+)#', $videoUrl, $m)) { $videoId = $m[1]; } if (preg_match('#vimeo\.com/\d+/([a-zA-Z0-9]+)#', $videoUrl, $m)) { $videoHash = $m[1]; } parse_str(parse_url($videoUrl, PHP_URL_QUERY) ?? '', $q); if (!empty($q['h'])) { $videoHash = $q['h']; } $aspectRatio = '16/9'; } // --- Instagram --- if (str_contains($videoUrl, 'instagram.com')) { if (preg_match('#instagram\.com/(reel|p|tv)/([^/?]+)#', $videoUrl, $m)) { $isInstagram = true; $instagramType = $m[1]; $videoId = $m[2]; $aspectRatio = '9/16'; $maxWidth = '450px'; } } // --- TikTok --- if (str_contains($videoUrl, 'tiktok.com') && preg_match('#/video/(\d+)#', $videoUrl, $m)) { $videoId = $m[1]; $isTikTok = true; $aspectRatio = '9/16'; $maxWidth = '450px'; } @endphp
{{-- Vimeo --}} @if ($isVimeo && $videoId) {{-- Instagram --}} @elseif ($isInstagram && $videoId) {{-- TikTok --}} @elseif ($isTikTok && $videoId) {{-- YouTube + Shorts --}} @elseif ($videoId) @endif
@endif
@if ($form->description)
{!! Purifier::clean($form->description) !!}
@endif {{-- form here --}}
@error('email')

{{ $message }}

@enderror {{-- Custom error message --}} @if (session('email'))

{{ session('email') }}

@endif
@error('phone')

{{ $message }}

@enderror
@error('firstname')

{{ $message }}

@enderror
@error('lastname')

{{ $message }}

@enderror
@error('referrer')

{{ $message }}

@enderror
{{--

Please write your feedback. ()

@error('feedback')

{{ $message }}

@enderror
--}}
{{-- @if ($event->button_link) @endif --}}