<footer class="main-footer">
<?php 
      include('connection.php');
      $sql="SELECT * FROM user_admin";
      $res=mysqli_query($conn,$sql);
      while($row=mysqli_fetch_array($res)){

      
    ?>
    <strong >Copyright &copy; <?php echo date("Y"); ?> &nbsp;<span style="color: blue; font-weight:600"><?php echo $row['title']; ?></span>&nbsp; </strong>
    All rights reserved.
    <div class="float-right d-none d-sm-inline-block">
        <span style="font-weight:600;">Support Number&nbsp;:&nbsp; </span> <a style="font-weight:600; color:blue"><?php echo $row['support_number']; ?>&nbsp; </a><span>|</span>
        <span style="font-weight:600;">Support Email&nbsp;:&nbsp;</span><a style="font-weight:600; color:blue"><?php echo $row['support_email']; ?> &nbsp; </a>

    </div>
    <?php } ?>
  </footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery -->

<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<script src="plugins/chart.js/Chart.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparklines/sparkline.js"></script>
<!-- JQVMap -->
<script src="plugins/jqvmap/jquery.vmap.min.js"></script>
<script src="plugins/jqvmap/maps/jquery.vmap.usa.js"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/jquery-knob/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="plugins/moment/moment.min.js"></script>
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="plugins/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard.js"></script>
<!-- fullCalendar 2.2.5 -->
<script src="plugins/moment/moment.min.js"></script>
<script src="plugins/fullcalendar/main.js"></script>
<!-- DataTables  & Plugins -->
<script src="plugins/datatables/jquery.dataTables.min.js"></script>
<script src="plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="plugins/jszip/jszip.min.js"></script>
<script src="plugins/pdfmake/pdfmake.min.js"></script>
<script src="plugins/pdfmake/vfs_fonts.js"></script>
<script src="plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
<!-- select  option  -->

<script>
    $(function() {
    $("#example1").DataTable({
        "responsive": true,
        "lengthChange": false,
        "autoWidth": false,
        "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
    }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');

    $("#example2").DataTable({
        "paging": true,
        "lengthChange": false,
        "searching": true, // Enable searching for the second table
        "ordering": true,
        "info": true,
        "autoWidth": false,
        "responsive": true,
        "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"] // Enable buttons for the second table
    }).buttons().container().appendTo('#example2_wrapper .col-md-6:eq(0)');

    $("#example3").DataTable({
        "paging": true,
        "lengthChange": false,
        "searching": true, // Enable searching for the second table
        "ordering": true,
        "info": true,
        "autoWidth": false,
        "responsive": true,
        "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"] // Enable buttons for the second table
    }).buttons().container().appendTo('#example3_wrapper .col-md-6:eq(0)');
});
</script>

<script>
$(document).ready(function() {
    function getNotifications() {
        $.ajax({
            url: 'fetch_notifications.php',
            method: 'GET',
            dataType: 'json',
            success: function(response) {
                var notifications = response.notifications;
                var count = notifications.length;

                // Update notification count
                $('#notification-count').text(count);

                // Update notification dropdown menu
                // ...

                // Schedule next check
                setTimeout(getNotifications, 5000); // 5 seconds
            }
        });
    }

    // Start checking for notifications
    getNotifications();
});



$(document).ready(function() {
    // Get the current URL path
    var currentPath = window.location.pathname;

    // Update the active navigation item based on the current path
    $('.nav-link').each(function() {
        var href = $(this).attr('href');

        // Check if the current path matches the navigation item's href attribute
        if (currentPath.indexOf(href) !== -1) {
            $(this).addClass('active'); // Add the 'active' class to the matched navigation item
            $(this).parents('.nav-item').addClass('menu-open'); // Open the parent category item
            return false; // Exit the loop if a match is found
        }
    });
});
</script>

</body>

</html>