<?php include_once 'config/_globle.php'; ?>
<!-- Main Footer -->
<footer class="main-footer">
    <!-- <strong>Developed By<a href="http://cluspedia.com"> Cluspedia</a>.</strong> -->
    <div class="float-right d-none d-sm-inline-block">
        <b>Version</b> 1.0
    </div>
</footer>
</div>

<!-- jQuery -->
<!-- <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/jquery-3.6.4.min.js"></script>

<!-- jQuery UI JS -->
<!-- <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/jquery-ui.min.js"></script>

<!-- Bootstrap JS Bundle -->
<!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/bootstrap.bundle.min.js"></script>

<!-- AdminLTE JS -->
<!-- <script src="https://cdn.jsdelivr.net/npm/admin-lte@3.2.0/dist/js/adminlte.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/adminlte1.min.js"></script>

<!-- Croppie JS -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.4/croppie.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/croppie.min.js"></script>

<!-- <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> -->
<script src="<?=$app_url;?>dist/js/chart.js"></script>

<!-- <script src="https://code.highcharts.com/highcharts.js"></script> -->
<script src="<?=$app_url;?>dist/js/highcharts.js"></script>

<!-- <script src="https://code.highcharts.com/modules/exporting.js"></script> -->
<script src="<?=$app_url;?>dist/js/exporting.js"></script>

<!-- <script src="https://code.highcharts.com/modules/export-data.js"></script> -->
<script src="<?=$app_url;?>dist/js/export-data.js"></script>

<!-- <script src="https://code.highcharts.com/modules/accessibility.js"></script> -->
<script src="<?=$app_url;?>dist/js/accessibility.js"></script>

<!-- <script src="https://cdn.jsdelivr.net/npm/bootbox@5.5.2/dist/bootbox.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/bootbox.min.js"></script>

<script src="<?=$app_url;?>plugins/timepicker/bootstrap-timepicker.min.js"></script>

<!-- camera -->
<script src="<?=$app_url;?>dist/js/app.js"></script>

<!-- datatable -->
<script src="<?=$app_url;?>custom_dist/js/datatables.min.js" ></script>
<script src="<?=$app_url;?>dist/js/xlsx.core.min.js"></script>
<script src="<?=$app_url;?>dist/js/FileSaver.min.js"></script>
<script src="<?=$app_url;?>dist/js/tableExport.js"></script>

<!-- <script src="https://cdn.datatables.net/buttons/2.4.1/js/dataTables.buttons.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/dataTables.buttons.min.js"></script>

<!-- <script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/buttons.html5.min.js"></script>

<!-- <script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.print.min.js"></script> -->
<script src="<?=$app_url;?>dist/jsbuttons.print.min.js"></script>

<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/jszip.min.js"></script>

<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/pdfmake.min.js"></script>

<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script> -->
<script src="<?=$app_url;?>dist/js/vfs_fonts.js"></script>

<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/xlsx.full.min.js"></script>

<!-- <script src="https://cdn.jsdelivr.net/npm/tableexport.jquery.plugin/tableExport.min.js"></script> -->
<script src="<?=$app_url;?>dist/js/tableExport.min.js"></script>

<!-- Buttons Extension JS -->
<!-- <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.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.print.min.js"></script> -->

<!-- JSZip and PDFMake for Excel and PDF export -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script> -->

//cdn.datatables.net/2.2.1/js/dataTables.min.js


<script>
$(function() {
    if (window.location.pathname.indexOf(".php") != -1) {
        // Remove active class from all links
        $('.nav-sidebar li a').each(function() {
            $(this).removeClass('active');
        });

        // Handle treeview links
        $('.nav-link-treeview').each(function() {
            if ($(this).attr("href").indexOf(window.location.pathname) != -1 && window.location.pathname.indexOf(".php") != -1) {
                $(this).find("i").removeClass('fas fa-circle').addClass('fas fa-dot-circle');
                if ($(this).parent().parent().parent().hasClass("has-treeview")) {
                    $(this).parent().parent().css("display", "block");
                    $(this).parent().parent().parent().find("a:first").addClass("active");
                }
            }
        });

        // Highlight non-treeview links
        $('.nav-sidebar li a').each(function() {
            if ($(this).attr("href").indexOf(window.location.pathname) != -1 && window.location.pathname.indexOf(".php") != -1) {
                $(this).addClass('active');
            }
        });
    }
});

	function exportExcel(myTable){
		var table = $(myTable);
		$(table).tableExport({
			type: 'xlsx',
			fileName: "sg" + new Date().toISOString().replace(/[\-\:\.]/g, ""),
			excel: {fileFormat: 'xlsx'}
		});
	}	


</script>
</body>

</html>
