@php $thumb = video_thumb($video->type, $video->thumbnail); $cover = $video->url ? 'a' : 'span'; @endphp {{-- a capa abre o vídeo, que libera o rodapé para editar e remover --}} <{{ $cover }} class="vcard__thumb" @if($video->url) href="{{ $video->url }}" target="_blank" rel="noopener" title="{{ __('site.page_videos_open') }}" @endif> @if($thumb) @else @endif @if($video->url) @endif {{ $cover }}> {{ $video->title }} @if($video->category_name) {{ $video->category_name }} @else {{ __('site.page_video_cat_none') }} @endif {{ \Carbon\Carbon::parse($video->created_at)->format('d/m/Y') }} {{ __('site.action_edit') }} {{ __('site.btn_remove') }}