= $this->section('css') ?>
= $this->endSection() ?>
= $this->section('additionalExternalJs') ?>
= $this->endSection() ?>
= $this->section('additionalInlineJs') ?>
const Toast = Swal.mixin({
toast: true,
position: 'top-right',
iconColor: 'white',
customClass: {
popup: 'colored-toast'
},
showConfirmButton: false,
timer: 6000,
timerProgressBar: true,
didOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
});
Toast.fire({
icon: 'success',
title: '= session('sweet-success.') ?>'
});
Toast.fire({
icon: 'warning',
title: '= session('sweet-warning.') ?>'
});
Toast.fire({
icon: 'error',
title: '= session('sweet-error.') ?>'
});
= $this->endSection() ?>