<?php
// =============================================
// 2. FOOTER CONSOLE - application/views/admin/console_footer.php
// =============================================
?>
    </div>
</div>

<!-- Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>

<!-- Scripts Console -->
<script>
// Auto-dismiss des alertes après 5 secondes
setTimeout(function() {
    const alerts = document.querySelectorAll('.alert');
    alerts.forEach(alert => {
        if (alert.classList.contains('show')) {
            const bsAlert = new bootstrap.Alert(alert);
            bsAlert.close();
        }
    });
}, 5000);

// Mobile menu toggle
function toggleSidebar() {
    document.querySelector('.console-sidebar').classList.toggle('show');
}
</script>

</body>
</html>