= $this->section('css') ?>
= $this->endSection() ?>
= $this->section('additionalExternalJs') ?>
= $this->endSection() ?>
= $this->section('additionalInlineJs') ?>
var Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 6000,
timerProgressBar: true,
onOpen: (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() ?>