add datatbles for invoices, add pdf icon, refactor icons components, add autocomplete on search, adapt searching to meilisearch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user