function showToast(title, message, type = 'info') { const toastEl = document.getElementById('notificationToast'); const toastTitle = document.getElementById('toast-title'); const toastBody = document.getElementById('toast-body'); toastTitle.innerText = title; toastBody.innerText = message; const toast = new bootstrap.Toast(toastEl); toastEl.classList.remove('success', 'error', 'info'); if(type) { toastEl.classList.add(type); } toast.show(); }