feat: Implement order management with datatable display and updated forms

This commit is contained in:
pbao9
2026-02-14 18:00:15 +07:00
parent d683afc901
commit 5252f9142c
21 changed files with 490 additions and 541 deletions
@@ -76,13 +76,20 @@
<!-- Global Select2 initialization -->
<script>
window.initSelect2 = function() {
$(".select2.single__select").select2({
allowClear: true,
width: "100%",
height: "100%",
$(".select2").each(function () {
if (!$(this).hasClass('select2-hidden-accessible')) {
$(this).select2({
allowClear: false,
width: "100%",
});
}
});
};
$(document).ready(function () {
window.initSelect2();
});
// Global ModalManager initialization
document.addEventListener('DOMContentLoaded', function() {
if (typeof ModalManager !== 'undefined') {
@@ -99,7 +106,7 @@
<x-modal-confirm-delete />
@stack('custom-scripts')
<script type="text/javascript">
<script type="text/javascript">
var apiMedia = '{{ route('api.GetAllImage') }}';
var apiUpload = '{{ route('media.upload') }}';
</script>