@extends('admin.layouts.app') @section('title') {{ __('page_list') }} @endsection @section('content')
{{ __('total_page') }} {{ $totalPages ?? '0' }}
{{--
{{ __('total_comments') }} {{ $totalComments ?? '0' }}
--}}
{{ __('total_authors') }} {{ $totalAuthor ?? '0' }}
{{ __('total_category') }} {{ $categories->count() ?? '0' }}

{{ __('page_list') }}

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

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

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