@extends('blog::adminLte.layouts.master') @section('pageTitle') {{ __('blog::view.category_list') }} @endsection @section('content') @php $classColTable = auth()->user()->can('create-categories') ? 'col-lg-8' : 'col-12'; @endphp
@can('create-categories')
{{--
--}}

{{ __('view.create_new') }}

@include('blog::adminLte.pages.categories.form', ['typeForm' => 'create'])
@endcan
{{-- search table --}} @include('adminLte.components.modules.datatable.search', ['table_id' => $table_id])
{{-- data table length --}} @include('adminLte.components.modules.datatable.datatable_length', ['table_id' => $table_id]) {{-- btn reload table --}} @include('adminLte.components.modules.datatable.reload', ['table_id' => $table_id]) {{-- Start Custom Filters --}} {{-- End Custom Filters --}} @can('export-table-categories') @include('adminLte.components.modules.datatable.export', ['table_id' => $table_id, 'btn_exports' => $btn_exports]) @endcan
@include('adminLte.components.modules.datatable.columns.checkbox-actions', [ 'table_id' => $table_id, 'permission' => 'delete-categories', 'url' => fr_route('categories.multi-destroy'), 'callback' => 'reload-table', 'model_name' => __('blog::view.selected_categories') ])
{{ $dataTable->table() }}
@endsection {{-- Inject styles --}} @section('styles') @endsection {{-- Inject Scripts --}} @section('scripts') {{ $dataTable->scripts() }} @endsection