@section('title', __('site.page_post_cat_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('site.menu_item_3')], ['label' => __('site.menu_item_3_sub_1'), 'url' => route('site.posts.r')], ['label' => __('site.page_post_cat_h1')], ]; @endphp @include('includes/header-novo')
@include('includes.breadcrumb') @include('includes.flash')

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

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

@if($s)
{{ __('site.search_results') }} {{ $s }}
@endif @if($allCats->count() == 0)

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

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