</div> <!-- End wrapper -->

<footer class="footer">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-6">
                <span>&copy; <?= date('Y') ?> <?= htmlspecialchars(getSetting('shop_name', 'DigiMobiz')) ?>. All rights reserved.</span>
            </div>
            <div class="col-md-6 text-end">
                <span class="text-muted">Powered by DigitalNext Gen Management System</span>
            </div>
        </div>
    </div>
</footer>

<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.bootstrap5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.print.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="<?= BASE_URL ?>assets/js/main.js"></script>

<script>
$(document).ready(function() {
    $('.datatable').each(function() {
        if (!$(this).attr('id')) {
            $(this).attr('id', 'datatable_' + Math.random().toString(36).substr(2, 9));
        }
        if ($.fn.DataTable.isDataTable(this)) {
            $(this).DataTable().destroy();
        }
        $(this).DataTable({
            responsive: true,
            pageLength: 25,
            ordering: true,
            searching: true,
            language: {
                search: "Search:",
                lengthMenu: "Show _MENU_ entries",
                emptyTable: "No records found",
                zeroRecords: "No matching records found"
            }
        });
    });

    $('.select2').select2({
        theme: 'bootstrap-5',
        width: '100%'
    });

    // Auto-hide alerts
    setTimeout(function() {
        $('.alert-dismissible').fadeOut('slow');
    }, 5000);
});
</script>
</body>
</html>
