<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <header class="main-header">
    <!-- Logo -->
    <a href="/" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>M</b>N</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><?php echo web_constant::$comp_name ?></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Messages: style can be found in dropdown.less-->
          
          
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="dist/img/user2-160x160.png" class="user-image" alt="User Image">
              <span class="hidden-xs"><?php echo $_SESSION['ticl_login_admin'] ?></span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <img src="dist/img/user2-160x160.png" class="img-circle" alt="User Image">

                <p>
                  <?php echo $_SESSION['ticl_login_admin'] ?>
                  
                </p>
              </li>
              <!-- Menu Body -->
              
              <!-- Menu Footer-->
              <li class="user-footer">
                
                <div class="pull-right">
                  <a href="logout" class="btn btn-default btn-flat">Sign out</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
          
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="dist/img/user2-160x160.png" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p><?php echo $_SESSION['ticl_login_admin'] ?></p>
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>
      <!-- search form -->
      
      <!-- /.search form -->
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header">MAIN NAVIGATION</li>
		
        <!--<li class="treeview">
          <a href="#">
            <i class="fa fa-dashboard"></i> <span>Dashboard</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
            <li><a href="index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
          </ul>
        </li>-->
		<li><a href="home"><i class="fa fa-home"></i> <span>Dashboard</span></a></li>
		<?php if($_SESSION['ticl_user_type']=="admin" || in_array('Master', $userPermissions)){ ?>
		<li class="treeview">
          <a href="#">
            <i class="fa fa-bars"></i> <span>Master</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
		  <li><a href="transporter.php"><i class="fa fa-list"></i>Transporter</a></li>
		  <li><a href="Product.php"><i class="fa fa-list"></i>Products</a></li>
		  <li><a href="Color.php"><i class="fa fa-list"></i>Colors</a></li>
		  <li><a href="CylinderMfg.php"><i class="fa fa-list"></i>Cylinder Mfg</a></li>
		  <li><a href="KitMfg.php"><i class="fa fa-list"></i>Kit Mfg</a></li>

          </ul>
        </li>
		<?php } if($_SESSION['ticl_user_type']=="admin" || in_array('Add-Truck', $userPermissions)){ ?>
		<li><a href="AddTruck.php"><i class="fa fa-truck"></i> <span>Add Truck Record</span></a></li>
		<?php } if($_SESSION['ticl_user_type']=="admin" || in_array('PDI', $userPermissions)){ ?>
		<li><a href="InGodown.php"><i class="fa fa-archive"></i> <span>PDI</span></a></li>
		<?php } if($_SESSION['ticl_user_type']=="admin" || in_array('Completed', $userPermissions)){ ?>
		<li><a href="Completed.php"><i class="fa fa-upload"></i> <span>Completed</span></a></li>
		<?php } if($_SESSION['ticl_user_type']=="admin" || in_array('Approved', $userPermissions)){ ?>
		<li><a href="approved.php?type=approved"><i class="fa fa-thumbs-up"></i> <span>Approved</span></a></li>
		<?php } if($_SESSION['ticl_user_type']=="admin" || in_array('Selected', $userPermissions)){ ?>
		<li><a href="approved.php?type=selected"><i class="fa fa-check-square"></i> <span>Selected</span></a></li>
		<?php } if($_SESSION['ticl_user_type']=="admin" || in_array('Truck-Details', $userPermissions)){ ?>
		<li><a href="TruckDetail.php"><i class="fa fa-list"></i> <span>Truck Details</span></a></li>
		<?php } if($_SESSION['ticl_user_type']=="admin" || in_array('User', $userPermissions)){ ?>
		<li><a href="users.php"><i class="fa fa-users"></i> <span>Users</span></a></li>
		<?php } ?>
		
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>