@extends('layouts.admin') @section('buttons') @if($url = $config['model']->getListingUrl(['preview' => true])) Preview @endif @can('update', $config['model']) + Add {{-- Arrangement --}} @endcan @can('delete', $config['model']) @endcan @endsection @section('content')
List {{ $config['page_name'] }}
@csrf @foreach ($records as $key => $record) @endforeach
@sortable(['field' => 'title']) @sortable(['field' => 'created']) @sortable(['field' => 'updated']) @sortable(['field' => 'post_status', 'title' => 'status'])
user()->can('delete', $record) ? 'disabled' : '' }}> {{ $record->title }} @include('admin.base.created-at') @include('admin.base.updated-at') @include('admin.base.status-badge')
@include('admin.base.pagination')
@endsection @section('js') @endsection