// assets/js/main.js document.addEventListener('DOMContentLoaded', function () { // Initialize Bootstrap toasts if they exist var toastElList = [].slice.call(document.querySelectorAll('.toast')); var toastList = toastElList.map(function (toastEl) { var toast = new bootstrap.Toast(toastEl, { delay: 5000 }); toast.show(); return toast; }); });