ldc-volena/resources/views/fo/modules/video-frame.blade.php
Alexis Gousseau 5f30d81ff2 clean part 2
2024-03-22 10:05:35 +01:00

8 lines
653 B
PHP

@php $uniqueID = uniqid(); @endphp
<a class="position-relative video-frame" data-newtab="{{ $linkNewTab }}"
href="@if (!$linkNewTab) https://www.youtube.com/embed/{{ $videoId }} @else https://www.youtube.com/watch?v={{ $videoId }} @endif"
@if (!$linkNewTab) data-type="{{ $type }}" data-frame="{{ route('fo.frame', ['frame' => $type]) }}" @else target="_blank" @endif>
<img class="video-thumbnail ratio ratio-16x9 rounded-4" src="{{ $picture }}" title="{{ $title }}" alt="{{ $alt }}">
<i
class="video-play-button fa-solid fa-circle-play position-absolute top-50 start-50 translate-middle fa-2xl text-tertiary bg-white"></i>
</a>