@section('title', __('site.page_post_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('site.menu_item_3')], ['label' => __('site.menu_item_3_sub_1')], ]; $statusMap = [ '1' => ['icon' => 'fa-earth-americas', 'tone' => 'pub', 'label' => __('site.page_post_new_side_grid1_option_1')], '2' => ['icon' => 'fa-lock', 'tone' => 'priv', 'label' => __('site.page_post_new_side_grid1_option_2')], '3' => ['icon' => 'fa-clock', 'tone' => 'sched', 'label' => __('site.page_post_status_scheduled')], ]; @endphp @include('includes/header-novo')
@include('includes.breadcrumb') @include('includes.flash')

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

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

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

@else
{{ __('site.page_post_table_head_1') }} {{ __('site.page_post_new_side_grid1_label_1') }} {{ __('site.page_post_table_head_2') }}
@foreach($allPosts as $post) @php $status = $statusMap[$post->status] ?? ['icon' => 'fa-file-lines', 'tone' => 'draft', 'label' => __('site.page_post_new_side_grid1_option_3')]; $date = $post->status == '3' ? $post->schedule_timestamp : $post->created_at; @endphp
@if($post->feature_img) @else @endif {{ htmlspecialchars_decode($post->title) }} {{ $status['label'] }} {{ \Carbon\Carbon::parse($date)->format('d/m/Y H:i') }}
@method('DELETE')
@endforeach
{{ $allPosts->links('vendor.pagination.painel') }} @endif
@section('scripts') @endsection @include('includes/footer-novo')