ldc-groupe/resources/views/components/front/sections/video.blade.php
2025-08-21 13:00:05 +02:00

16 lines
654 B
PHP

@if (isset($video))
<div class="brand__video">
<div class="brand__video-btn play-button"></div>
@php
$videoUrl = strpos($video, 'https') === 0 ? $video : ($type === 'youtube' ? 'https://www.youtube.com/embed/' : 'https://player.vimeo.com/video/') . $video;
@endphp
<div class="video-inlaid h-100" type="{{ $type }}" href="{{ $videoUrl }}">
<a class="cn-cookie-link" id="youtube-warning" href="" rel="nofollow">
<strong class="text-underline text-bold text-normal text-danger">
{{ __('cookie-notice.custom.' . $type . '.warning') }}
</strong>
</a>
</div>
</div>
@endif