    </div><!-- end content-area -->
</div><!-- end main-content -->

<script src="<?= APP_URL ?>/assets/js/bootstrap.bundle.min.js"></script>
<script src="<?= APP_URL ?>/assets/js/jquery.min.js"></script>
<script src="<?= APP_URL ?>/assets/js/select2.min.js"></script>
<script src="<?= APP_URL ?>/assets/js/chart.umd.min.js"></script>
<script>
function toggleSidebar() {
    document.getElementById('sidebar').classList.toggle('show');
    document.getElementById('sidebarOverlay').classList.toggle('show');
}

// Init select2
$(document).ready(function() {
    $('.select2').select2({ theme: 'bootstrap-5', width: '100%' });
});

// Confirm delete
function confirmDelete(msg) {
    return confirm(msg || 'Êtes-vous sûr de vouloir supprimer cet élément ?');
}
</script>
<?php if (isset($extraScripts)) echo $extraScripts; ?>
</body>
</html>
