function printMsg(msg) { Swal.fire({ title: "تمت العملية بنجاح", html: msg, icon: 'success', confirmButtonText: 'OK', }) }; function printError(msg) { Swal.fire({ title: "خطأ", html: msg, icon: 'error', confirmButtonText: 'OK', }) }; function printWarning(msg) { Swal.fire({ title: "تحذير", html: msg, icon: 'warning', confirmButtonText: 'OK', }) };