<!-- Argon Scripts -->
<!-- Core -->
<script src="../asset/dashboard/vendor/jquery/dist/jquery.min.js"></script>
<script src="../asset/dashboard/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="../asset/dashboard/vendor/js-cookie/js.cookie.js"></script>
<script src="../asset/dashboard/vendor/jquery.scrollbar/jquery.scrollbar.min.js"></script>
<script src="../asset/dashboard/vendor/jquery-scroll-lock/dist/jquery-scrollLock.min.js"></script>
<!-- Optional JS -->
<script src="../asset/dashboard/vendor/chart.js/dist/Chart.min.js"></script>
<script src="../asset/dashboard/vendor/chart.js/dist/Chart.extension.js"></script>
<script src="../asset/dashboard/vendor/jvectormap-next/jquery-jvectormap.min.js"></script>
<script src="../asset/dashboard/js/vendor/jvectormap/jquery-jvectormap-world-mill.js"></script>
<script src="../asset/dashboard/vendor/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="../asset/dashboard/vendor/datatables.net-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="../asset/dashboard/vendor/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
<script src="../asset/dashboard/vendor/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"></script>
<script src="../asset/dashboard/vendor/datatables.net-buttons/js/buttons.html5.min.js"></script>
<script src="../asset/dashboard/vendor/datatables.net-buttons/js/buttons.flash.min.js"></script>
<script src="../asset/dashboard/vendor/datatables.net-buttons/js/buttons.print.min.js"></script>
<script src="../asset/dashboard/vendor/datatables.net-select/js/dataTables.select.min.js"></script>
<script src="../asset/dashboard/vendor/clipboard/dist/clipboard.min.js"></script>
<script src="../asset/dashboard/vendor/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="../asset/dashboard/vendor/nouislider/distribute/nouislider.min.js"></script>
<script src="../asset/dashboard/vendor/quill/dist/quill.min.js"></script>
<script src="../asset/dashboard/vendor/dropzone/dist/min/dropzone.min.js"></script>
<script src="../asset/dashboard/vendor/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js"></script>
<!-- Argon JS -->
<script src="../asset/dashboard/js/argon9f1e.js?v=1.1.0"></script>
<!-- Demo JS - remove this in your project -->
<script src="../asset/dashboard/js/demo.min.js"></script>
<script src="../asset/js/sweetalert.js"></script>

<script>
    $(document).ready(function() {
        $('.logout').click(function() {
            Swal.fire({
                icon: 'warning',
                title: 'Are you sure you want to logout?',
                showDenyButton: true,
                showCancelButton: false,
                confirmButtonText: 'Logout',
                denyButtonText: `Cancel`,
            }).then((result) => {
                /* Read more about isConfirmed, isDenied below */
                if (result.isConfirmed) {
                    $.ajax({
                        url: "../includes/logout.php",
                        success: function(data, request, setting) {
                            // reload the windows
                            windows.location.reload(true);
                        }
                    });
                }
            })
        });


    });
</script>