<?php
	
	$app_name  = "IKO";

	
?>
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="./" class="nav-link">Home</a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="#" class="nav-link">Contact</a>
      </li>
	 
		
	 
	
    </ul>



    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
		<li class="nav-item  d-sm-inline-block">
			<button href="./account.php" class="btn btn-sm btn-success"><?php echo "Active:"; ?></a>
		<!-- account type span -->
	  </li>
	  
	  
      <!-- Messages Dropdown Menu -->
      
	  
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
		  <?php $total_no_messages = 0; if ($total_no_messages > 0){ ?>
          <span class="badge badge-warning navbar-badge"><?php echo $total_no_messages; ?></span>
		  <?php } ?>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <span class="dropdown-item dropdown-header"><?php echo $total_no_messages; ?> Notifications</span>
          <div class="dropdown-divider"></div>
          <a href="./" class="dropdown-item">
            <i class="fas fa-envelope mr-2"></i> <?php echo $total_no_messages; ?> new messages
            <span class="float-right text-muted text-sm">3 mins</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-clock  mr-2"></i> 0 new tasks
            <span class="float-right text-muted text-sm">20 mins</span>
          </a>
		   <a href="#" class="dropdown-item">
            <i class="fas fa-copy mr-2"></i> 0 new notes
            <span class="float-right text-muted text-sm">5 days</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="./" class="dropdown-item dropdown-footer">See All Notifications</a>
        </div>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-success elevation-4">
    <!-- Brand Logo -->
    <a href="#" class="brand-link">
      <img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light"><?php echo $app_name ?></span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="./img/user.png" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block"><?php echo $_SESSION["sess_full_name"]; ?></a>
        </div>
      </div>

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->

		 <li class="nav-item has-treeview menu-open">
            <a href="./" class="nav-link active">
              <i class="nav-icon fas fa-warehouse"></i>
              <p>
                Airtime 
                <i class="right fas fa-angle-left text-success"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="./" class="nav-link <?php if ($active_menu == "dashboard") echo "active";  ?>">
                  <i class="fas fa-chart-pie nav-icon text-success"></i>
                  <p>Dashboard </p>
                </a>
              </li>
        
        <?php 
          $no_admin = 4;
          ?>

        <li class="nav-item">
                <a href="./recon.php?id=<?php echo ""; ?>"  class="nav-link <?php if ($active_menu == "tasks") echo "active";  ?>">
                  <i class="fas fa-chart-bar nav-icon text-success"></i>
                  <p>Recon</p>
                  
                </a>
              </li>

        <li class="nav-item">
                <a href="./sales.php?id=<?php echo ""; ?>"  class="nav-link <?php if ($active_menu == "tasks") echo "active";  ?>">
                  <i class="fas fa-chart-bar nav-icon text-success"></i>
                  <p>Sales</p>
                  <span class="right badge badge-warning"><?php echo $no_admin ?></span>
                </a>
              </li>

        <li class="nav-item">
                <a href="./callbacks.php?id=<?php echo ""; ?>"  class="nav-link <?php if ($active_menu == "tasks") echo "active";  ?>">
                  <i class="fas fa-chart-bar nav-icon text-success"></i>
                  <p>Callbacks</p>
                  <span class="right badge badge-danger"><?php echo $no_admin ?></span>
                </a>
              </li>

        <li class="nav-item">
                <a href="./callbacks.php?id=<?php echo ""; ?>"  class="nav-link <?php if ($active_menu == "tasks") echo "active";  ?>">
                  <i class="fas fa-chart-bar nav-icon text-success"></i>
                  <p>FCT Mpesa</p>
                  <span class="right badge badge-danger"><?php echo $no_admin ?></span>
                </a>
              </li>
              
			  <li class="nav-item">
                <a href="./mpesa_trans.php"  class="nav-link <?php if ($active_menu == "statement") echo "active";  ?>">
                  <i class="fas fa-chart-bar nav-icon text-success"></i>
                  <p>M-pesa Trans</p>
                </a>
              </li>
			  
          <?php 
          $no_admin = 4;
          ?>

			   
		
              </li>
		
			  <li class="nav-item">
                <a href="./profile.php"  class="nav-link <?php if ($active_menu == "profile") echo "active";  ?>">
                  <i class="far fa-user nav-icon text-success"></i>
                  <p>My Profile</p>
                </a>
              </li>

			  
            </ul>
          </li>

		 
		
		 
		 
          <li class="nav-item">
            <a href="./login/" class="nav-link">
              <i class="nav-icon fas fa-power-off text-danger"></i>
              <p>
                Log Out
              </p>
            </a>
          </li>
          
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

