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

{{ __('Page') }}

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