FleetCart/app/Scaffold/Module/stubs/views/index.stub

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-06-11 12:14:03 +00:00
@extends('admin::layout')
@component('admin::components.page.header')
@slot('title', trans('$LOWERCASE_MODULE_NAME$::$PLURAL_SNAKE_CASE_ENTITY_NAME$.$PLURAL_SNAKE_CASE_ENTITY_NAME$'))
<li class="active">{{ trans('$LOWERCASE_MODULE_NAME$::$PLURAL_SNAKE_CASE_ENTITY_NAME$.$PLURAL_SNAKE_CASE_ENTITY_NAME$') }}</li>
@endcomponent
@component('admin::components.page.index_table')
@slot('buttons', ['create'])
@slot('resource', '$PLURAL_SNAKE_CASE_ENTITY_NAME$')
@slot('name', trans('$LOWERCASE_MODULE_NAME$::$PLURAL_SNAKE_CASE_ENTITY_NAME$.$SNAKE_CASE_ENTITY_NAME$'))
@component('admin::components.table')
@slot('thead')
<tr>
@include('admin::partials.table.select_all')
</tr>
@endslot
@endcomponent
@endcomponent
@push('scripts')
2023-12-03 14:07:47 +00:00
<script type="module">
2023-06-11 12:14:03 +00:00
new DataTable('#$PLURAL_SNAKE_CASE_ENTITY_NAME$-table .table', {
columns: [
{ data: 'checkbox', orderable: false, searchable: false, width: '3%' },
//
],
});
</script>
@endpush