ldc-groupe/resources/views/components/front/sections/video.blade.php

17 lines
748 B
PHP
Raw Permalink Normal View History

2025-08-21 12:52:20 +02:00
@if (isset($video))
2025-08-22 16:06:06 +02:00
<div class="{{ isset($class) ? $class : 'brand__video'}}">
<div class="{{ isset($secondaryClass) ? $secondaryClass : 'brand__video-btn'}} play-button"></div>
2025-08-21 12:52:20 +02:00
@php
$videoUrl = ($video['type_video'] === 'youtube' ? 'https://www.youtube.com/embed/' : 'https://player.vimeo.com/video/') . $video['video'];
2025-08-21 12:52:20 +02:00
@endphp
2025-08-22 16:06:06 +02:00
<div class="video-inlaid h-100" type="{{ $video['type_video'] }}" href="{{ $videoUrl }}">
2025-08-21 12:52:20 +02:00
<a class="cn-cookie-link" id="youtube-warning" href="" rel="nofollow">
<strong class="text-underline text-bold text-normal text-danger">
2025-08-22 16:06:06 +02:00
{{ __('cookie-notice.custom.' . $video['type_video'] . '.warning') }}
2025-08-21 12:52:20 +02:00
</strong>
</a>
</div>
</div>
@endif