@section('title', __('site.page_comments_title')) @section('head') @endsection @php $breadcrumb = [ ['label' => __('site.menu_item_5')], ['label' => __('site.menu_item_5_sub_5')], ]; $abas = [ ['type' => null, 'label' => __('site.page_comments_item_1'), 'count' => $countAll], ['type' => 'pending', 'label' => __('site.page_comments_item_2'), 'count' => $countPend], ['type' => 'approved', 'label' => __('site.page_comments_item_3'), 'count' => $countAppr], ]; $atual = $type === 'all' ? null : $type; @endphp @include('includes/header-novo')
@include('includes.breadcrumb') @include('includes.flash')

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

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

@foreach($abas as $aba) {{ $aba['label'] }} {{ $aba['count'] }} @endforeach
@if($apiError)

{{ $apiError }}

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

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

@else
@foreach($allComments as $comment) @php $resposta = $replies[$comment->id] ?? null; $post = $comment->source === 'post' ? ($posts[$comment->source_id] ?? null) : null; @endphp
{{ mb_strtoupper(mb_substr($comment->name, 0, 1)) }}

{{ $comment->name }} {{ __($comment->status == '1' ? 'site.page_comments_tag_approved' : 'site.page_comments_tag_pending') }}

@if($post) {{ $post->title }} @else {{ $comment->source }} @endif {{ DateShort($comment->created_at) }} IP {{ $comment->ip }}

{{ $comment->message }}

@endforeach
{{ $allComments->links('vendor.pagination.painel') }}
@endif
@section('scripts') @endsection @include('includes/footer-novo')