@section('title', __('site.page_video_cat_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('site.menu_item_3')], ['label' => __('site.menu_item_3_sub_2'), 'url' => route('site.videos.r')], ['label' => __('site.page_video_cat_h1')], ]; @endphp @include('includes/header-novo')
@include('includes.breadcrumb')

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

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

@include('includes.flash')
@if($s)
{{ __('site.search_results') }} {{ $s }}
@endif @if($apiError)

{{ $apiError }}

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

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

@else
@foreach($allCats as $cat) @php $total = $usage[$cat->id] ?? 0; @endphp
{{ $cat->name }} /{{ $cat->slug }} {{ $total ? trans_choice('site.page_video_cat_usage', $total, ['n' => $total]) : __('site.page_video_cat_usage_none') }} {{ \Carbon\Carbon::parse($cat->created_at)->format('d/m/Y') }}
@method('DELETE')
@endforeach
{{ $allCats->links('vendor.pagination.painel') }} @endif
@include('includes.category-modal')
@section('scripts') @endsection @include('includes/footer-novo')