@extends(backpack_view('blank')) @php $entityName = strtolower(class_basename($crud->getModel())); $tableId = $entityName . 'Table'; @endphp @section('header')

Rechercher {!! $crud->getHeading() ?? $crud->entity_name !!}

@if ($crud->buttons()->where('stack', 'top_search')->count()) @endif
@endsection @section('content')
{{-- Backpack List Filters --}} @if ($crud->filtersEnabled()) @include('crud::inc.filters_navbar') @endif
{{-- Default box --}}
{{-- THE ACTUAL CONTENT --}}
{!! $crud->getSubheading() ?? '' !!}
tri par nom ↓
@if ($crud->buttons()->where('stack', 'bottom')->count()) @include('crud::inc.button_stack', ['stack' => 'bottom']) @endif
@include('admin.crud.inc.datatable')
@endsection @section('after_styles') {{-- CRUD LIST CONTENT - crud_list_styles stack --}} @stack('crud_list_styles') @endsection @section('after_scripts') @php $entityName = strtolower(class_basename($crud->getModel())); $tableId = $entityName . 'Table'; $table = new \App\Models\DatatableSetting($tableId, [], '/' . $crud->route, url($crud->route)); $table->setHeading('My Heading'); $table->setDefaultPageLength(10); $table->setGetPageLengthMenu([10, 25, 50, 100]); $table->setShowEntryCount(true); $table->setIsPersistent(false); $table->setFixedHeader(true); $table->setHasBulkAction(true); if ($entityName === 'film') { $table->setInitialSort([]); } $datatables = [$table]; @endphp @include('admin.crud.inc.datatables_logic') {{-- CRUD LIST CONTENT - crud_list_scripts stack --}} @stack('crud_list_scripts') @endsection