@section('optional_css') @endsection @section('optional_js') @endsection

{{ __('Post') }}

@if(session('success')) {{ session('success') }} @endif @if(session('delete')) {{ session('delete') }} @endif {{ __('Post') }} @can('post.create') {{ __('Create') }} {{ __('Post') }} @endcan
@forelse($posts as $post) @empty @endforelse
{{ __('Title') }} {{ __('Author') }} {{ __('Category') }} {{ __('Status') }} {{ __('Action') }}
{{ $post->title }} {{ $post->author->name }} {{ $post->category->name }} {{ $post->publish?'Publish':'Draft' }} @can('post.edit') {{ __('Edit') }} @endcan @can('post.destroy')
@csrf @method('delete') {{ __('Delete') }}
@endcan
{{ __('Empty') }}
{{ $posts->links('vendor.pagination.bootstrap-4') }}