= $this->include('themes/_commonPartialsBs/datatables') ?>
= $this->include("themes/_commonPartialsBs/select2bs5") ?>
= $this->include("themes/_commonPartialsBs/sweetalert") ?>
= $this->include('themes/_commonPartialsBs/_confirm2delete') ?>
=$this->extend('themes/vuexy/main/defaultlayout') ?>
= $this->section("content") ?>
= $this->endSection() ?>
= $this->section("additionalInlineJs") ?>
$('#cliente_id').select2({
allowClear: false,
ajax: {
url: '= route_to("menuItemsOfClientes") ?>',
type: 'post',
dataType: 'json',
data: function(params) {
return {
id: 'id',
text: 'nombre',
searchTerm: params.term,
= csrf_token() ?? "token" ?> : = csrf_token() ?>v
};
},
delay: 60,
processResults: function(response) {
yeniden(response.= csrf_token() ?>);
return {
results: response.menu
};
},
cache: true
}
});
$('#serie_id').select2({
allowClear: false,
minimumResultsForSearch: -1,
ajax: {
url: '= route_to("menuItemsOfSeriesFacturas") ?>',
type: 'post',
dataType: 'json',
data: function(params) {
return {
id: 'id',
text: 'nombre',
searchTerm: params.term,
= csrf_token() ?? "token" ?> : = csrf_token() ?>v
};
},
delay: 60,
processResults: function(response) {
yeniden(response.= csrf_token() ?>);
return {
results: response.menu
};
},
cache: true
}
});
= $this->endSection() ?>