<?php
include '../root/config.php';

if ($_SESSION['aid'] == "") {
    ?>
    <script type="text/javascript">
        document.location.href = 'index.php';
    </script>
    <?php
}
?>
<!DOCTYPE html>
<html class="loading">
    <head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">      
        <meta name="author" content="Accurate Infoway">
        <title><?= SITE_TITLE ?></title>
        <link href="https://fonts.googleapis.com/css?family=Rubik:300,400,500,700,900|Montserrat:300,400,500,600,700,800,900" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/fonts/feather/style.min.css">
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/fonts/simple-line-icons/style.css">
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/fonts/font-awesome/css/font-awesome.min.css">
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/vendors/css/perfect-scrollbar.min.css">
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/vendors/css/prism.min.css">
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/vendors/css/chartist.min.css">
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/css/app.css">    
        <!-- Datepicker -->
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/vendors/css/pickadate/pickadate.css">
        <!-- Datatable -->
        <link rel="stylesheet" type="text/css" href="<?= ADMIN_URL; ?>assets/vendors/css/tables/datatable/datatables.min.css">
		<link rel="shortcut icon" href="../images/favicon.png" type="image/x-icon">
    </head>
    <body data-col="2-columns" class=" 2-columns ">    
        <div class="wrapper">
            <!-- main menu-->
            <!--.main-menu(class="#{menuColor} #{menuOpenType}", class=(menuShadow == true ? 'menu-shadow' : ''))-->
            <div data-active-color="white" data-background-color="man-of-steel" data-image="app-assets/img/sidebar-bg/01.jpg" class="app-sidebar">
                <!-- main menu header-->
                <!-- Sidebar Header starts-->
                <div class="sidebar-header">
                    <div class="logo clearfix"><a href="<?= ADMIN_URL; ?>dashboard.php" class="logo-text float-left">
                            <span class="text align-middle">FN</span></a><a id="sidebarToggle" href="javascript:;" class="nav-toggle d-none d-sm-none d-md-none d-lg-block"><i data-toggle="expanded" class="ft-toggle-right toggle-icon"></i></a><a id="sidebarClose" href="javascript:;" class="nav-close d-block d-md-block d-lg-none d-xl-none"><i class="ft-x"></i></a></div>
                </div>
                <!-- Sidebar Header Ends-->
                <!-- / main menu header-->
                <!-- main menu content-->
                <div class="sidebar-content">
                    <div class="nav-container">
                        <?php include 'sidebar.php'; ?>
                    </div>
                </div>
                <!-- main menu content-->
                <div class="sidebar-background"></div>
                <!-- main menu footer-->
                <!-- include includes/menu-footer-->
                <!-- main menu footer-->
            </div>
            <!-- / main menu-->


            <!-- Navbar (Header) Starts-->
            <nav class="navbar navbar-expand-lg navbar-light bg-faded">
                <div class="container-fluid">
                    <div class="navbar-header">
                        <button type="button" data-toggle="collapse" class="navbar-toggle d-lg-none float-left"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
                        
                    </div>
                    <div class="navbar-container">
                        <div id="navbarSupportedContent" class="collapse navbar-collapse">
                            <ul class="navbar-nav">
                                <li class="nav-item mr-2"><a id="navbar-fullscreen" href="javascript:;" class="nav-link apptogglefullscreen"><i class="ft-maximize font-medium-3 blue-grey darken-4"></i>
                                        <p class="d-none">fullscreen</p></a></li>
									
			
<li class="nav-item mr-2"><a href="inquiry.php" class="nav-link position-relative"><i class="ft-bell font-medium-3 blue-grey darken-4"></i><span class="notification badge badge-pill badge-danger"><?php
$qry_i = "SELECT count(*) as total_count FROM tbl_inquiry WHERE status = 'unchecked'";
$app_row_i = $ai_db->aiGetQuery($qry_i);
echo $app_row_i[0]['total_count'];						
?></span></a></li>
                                
                                <li class="dropdown nav-item"><a id="dropdownBasic3" href="#" data-toggle="dropdown" class="nav-link position-relative dropdown-toggle"><i class="ft-user font-medium-3 blue-grey darken-4"></i>
                                        <p class="d-none">User Settings</p></a>
                                    <div ngbdropdownmenu="" aria-labelledby="dropdownBasic3" class="dropdown-menu dropdown-menu-right">                                       
                                        <a href="<?php echo ADMIN_URL; ?>profile.php" class="dropdown-item py-1">
                                            <i class="ft-edit mr-2"></i>
                                            <span>Edit Profile</span>
                                        </a>                                       
                                        <div class="dropdown-divider"></div>
                                        <a href="<?php echo ADMIN_URL; ?>logout.php" class="dropdown-item">
                                            <i class="ft-power mr-2"></i>
                                            <span>Logout</span>
                                        </a>
                                    </div>
                                </li>

                            </ul>
                        </div>
                    </div>
                </div>
            </nav>
            <!-- Navbar (Header) Ends-->
