{{ __('video-gallery.in_motion') }}
{{ __('video-gallery.video_gallery_description') }}
'; } // Instagram if (Str::contains($url, 'instagram.com')) { return ' '; } return '
Unsupported video format
'; } } @endphp @foreach ($videoGalleries as $video) @php $url = $video->value; $aspectClass = 'aspect-video'; // default 16:9 if (Str::contains($url, 'instagram.com')) { $aspectClass = 'aspect-[4/5]'; // Instagram portrait } elseif (Str::contains($url, 'tiktok.com')) { $aspectClass = 'aspect-[9/16]'; // TikTok vertical } elseif (Str::contains($url, 'facebook.com')) { $aspectClass = 'aspect-[9/16]'; // Facebook 16:9 } elseif (Str::contains($url, ['youtube.com', 'youtu.be'])) { $aspectClass = 'aspect-[9/16]'; // YouTube 16:9 } @endphp