@section('title', __('site.page_pods_cat_title')) @section('head') @endsection @include('includes/header') @include('includes/topSite')

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

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

@if (Session::has('success')) @endif
@if(empty($allCategories) || $allCategories->count() == 0)

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

@else
@foreach($allCategories as $category)
{{ __('site.page_pods_cat_name_label') }}
{{ $category->name }}
{{ __('site.page_pods_cat_linked') }} {{ $category->linked_podcasts ?? 0 }}
{{ __('site.page_pods_cat_created') }}
{{ $category->created_at ? date('d/m/Y H:i', strtotime($category->created_at)) : '--' }}
{{ __('site.page_pods_cat_last_ep') }}
{{ $category->last_update_ep ? date('d/m/Y H:i', strtotime($category->last_update_ep)) : '--' }}
{{-- AJUSTE AQUI: Redireciona para a listagem filtrando pelo ID desta categoria --}} {{ __('site.page_pods_cat_view_pods') }}
@endforeach
@endif
@include('includes/footer')