@extends('backend.layouts.app') @section('title') {{ __('post_list') }} @endsection @section('content')
{{ __('total_post') }} {{ $blogs->total() ?? '0' }}
{{ __('total_comments') }} {{ $totalComments ?? '0' }}
{{ __('total_authors') }} {{ $totalAuthor ?? '0' }}
{{ __('total_category') }} {{ $categories->count() ?? '0' }}

{{ __('post_list') }}

@if (request('keyword') || Route::current()->parameter('category') || request('author') || request('status') || request('sort_by')) @endif @if (userCan('post.create')) @endif
{{-- Filter --}}
@forelse ($blogs as $post) @empty @endforelse
{{ __('image') }} {{ __('title') }} {{ __('category') }} {{ __('comments') }} {{ __('author') }} {{ __('status') }} {{ __('action') }}
Blog: {{ $post->category->name }} {{ $post->title }} {{ $post->category->name }} {{ $post->comments_count }} {{ $post->author->name }} {{ $post->status }} @if (userCan('post.update')) @endif @if (userCan('post.delete'))
@method('DELETE') @csrf
@endif

{{ __('no_data_found') }}...

@if (request('perpage') != 'all' && $blogs->total() > $blogs->count())
{{ $blogs->onEachSide(1)->links() }}
@endif
@endsection