add datatbles for invoices, add pdf icon, refactor icons components, add autocomplete on search, adapt searching to meilisearch

This commit is contained in:
ludo
2024-02-04 02:51:38 +01:00
parent 067532b6fc
commit 4c6f9b3b61
39 changed files with 503 additions and 211 deletions

View File

@@ -1,29 +1,26 @@
@include('components.datatable', [
'route' => route('Shop.Orders.index'),
'model' => 'orders',
'route' => route('Shop.Orders.index'),
'model' => 'orders',
'with_add' => false,
'with_filters' => true,
'with_exports' => false,
'with_print' => false,
'with_exports' => false,
'with_print' => false,
'show_callback' => 'OrderView(id);',
])
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-aml_risks-filters'])
@include('Shop.Orders.partials.filters', ['model' => 'aml_risks'])
@component('components.layout.modal-filters', ['title' => 'Filters', 'id' => 'modal-orders-filters'])
@include('Shop.Orders.partials.filters', ['model' => 'orders'])
@endcomponent
@push('js')
<script>
<script>
function OrderView(id) {
var url_open = "{{ route('Shop.Orders.view') }}/" + id;
openModal("Voir une commande", '#order-form', url_open, false, false, 'xl', {{ !($with_add ?? false) }});
}
function OrderView(id) {
var url_open = "{{ route('Shop.Orders.view') }}/" + id;
openModal("Voir une commande", '#model-form', url_open, false, false, 'xl', {{ !($with_add ?? false) }});
}
function OrderRefresh()
{
reloadDatatable("orders");
}
</script>
function OrderRefresh() {
reloadDatatable("orders");
}
</script>
@endpush