@section('title', __('site.page_videos_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('site.menu_item_3')], ['label' => __('site.menu_item_3_sub_2')], ]; $sources = ['0' => 'Embed', '1' => 'YouTube', '2' => 'Vimeo']; $sourceIcons = ['0' => 'fa-code', '1' => 'fa-brands fa-youtube', '2' => 'fa-brands fa-vimeo-v']; @endphp @include('includes/header-novo')
@include('includes.breadcrumb')

{{ __('site.page_videos_h1') }}

{{ __('site.page_videos_sub') }}

{{ __('site.page_videos_add_title') }}
@include('includes.flash')
@if($s) @endif
{{ __('site.page_video_cat_manage') }}
@if($s || $cat)
{{ __('site.search_results') }} {{ $s ?: ($cat === -1 ? __('site.page_video_cat_none') : optional($allCats->firstWhere('id', $cat))->name) }}
@endif @if($apiError)

{{ $apiError }}

@elseif($allVideos->count() == 0)

{{ __('site.page_videos_search_noreg') }}

@else
@foreach($allVideos as $video)
@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
{{ $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') }}
@endforeach
{{ $allVideos->links('vendor.pagination.painel') }} @endif
@section('scripts') @endsection @include('includes/footer-novo')