diff --git a/resources/js/app.js b/resources/js/app.js index f48407f..75753c5 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -8,6 +8,10 @@ import $ from "jquery"; window.jQuery = $; window.$ = $; +import Swal from "sweetalert2"; +window.Swal = Swal; +window.swal = Swal; + import TomSelect from "tom-select"; document.querySelectorAll(".tomselect").forEach((el) => { @@ -15,12 +19,14 @@ document.querySelectorAll(".tomselect").forEach((el) => { plugins: ["dropdown_input"], create: false, createOnBlur: true, + closeButton: true, }; new TomSelect(el, settings); }); import toast from "toastr"; +window.toast = toast; import "toastr/build/toastr.css"; document.querySelectorAll(".toastr").forEach((el) => { diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 26840e5..07aa424 100644 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -102,6 +102,7 @@ @if(is_array($menu->sub)) @endif