// Auto-cancel orders script yang dipanggil via AJAX
setInterval(function() {
    fetch('../proses/auto_cancel_orders.php')
        .then(response => response.text())
        .then(data => {
            console.log('Auto-cancel check completed:', data);
        })
        .catch(error => {
            console.error('Error running auto-cancel:', error);
        });
}, 60000); // Run every minute (60000 ms)
