@extends('web.default.panel.layouts.panel_layout') @section('content')

{{ trans('update.blog_statistics') }}

{{ $postsCount }} {{ trans('update.articles') }}
{{ $commentsCount }} {{ trans('panel.comments') }}
{{ $pendingPublishCount }} {{ trans('update.pending_publish') }}

{{ trans('update.articles') }}

@if($posts->count() > 0)
@foreach($posts as $post) @endforeach
{{ trans('public.title') }} {{ trans('public.category') }} {{ trans('panel.comments') }} {{ trans('update.visit_count') }} {{ trans('public.status') }} {{ trans('public.date_created') }}
{{ $post->title }} {{ $post->category->title }} {{ $post->comments_count }} {{ $post->visit_count }} @if($post->status == 'publish') {{ trans('public.published') }} @else {{ trans('public.pending') }} @endif {{ dateTimeFormat($post->created_at, 'j M Y H:i') }}
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'quiz.png', 'title' => trans('update.blog_post_no_result'), 'hint' => nl2br(trans('update.blog_post_no_result_hint')), 'btn' => ['url' => '/panel/blog/posts/new','text' => trans('update.create_a_post')] ]) @endif
{{ $posts->appends(request()->input())->links('vendor.pagination.panel') }}
@endsection