<?php
     include_once ("config/db.php");  include_once("config/check.php");

     $COMPANY = $conn->query(" select name from branches where id='$companyID'   ")->fetch();
?>


<nav class="navbar  navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu ">
        <ul class="nav navbar-nav navbar-static-top">
          
         <!-- Notifications: style can be found in dropdown.less -->
          <li class="dropdown notifications-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              
                </span> <?php echo $COMPANY['name']; ?>
            </a>
          </li>
          <li class="dropdown notifications-menu">
            <a href="dashboard" >
              <i class="fa fa-power-off fa-lg" style="color:red;"></i> Home
               </span>
            </a>
         
          </li>
          <li class="dropdown notifications-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-bell-o fa-lg"></i> Alerts
               </span>
            </a>
            <ul class="dropdown-menu">
              <li class="header">You have   notifications</li>
              <li>
                <!-- inner menu: contains the actual data -->
                <ul class="menu">
                          
                </ul>
              </li>
              <li class="footer"><a href="#">View all</a></li>
            </ul>
          </li>
          <!-- End user notifications -->


          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <!-- The user image in the navbar-->
              <!-- <img src='images/".$user_image."' class="user-image" alt="User Image"> -->

              <img src="images/members/<?php echo $avatar; ?>" class="user-image"  >
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs">
                
                 <?php  echo  'WELCOME BACK '.''.  $ActiveUser['fname'] .''.$ActiveUser['lname'] ; ?>    
              
              </span>
            </a>
            <ul class="dropdown-menu">
              
              <li class="user-footer ">
                  <!-- <a href="profile.php" class="btn btn-default btn-flat"> <i class="fa fa-user fa-lg"></i> Profile</a> -->
                  <a href=" signout.php" class="btn btn-default btn-flat"> <i class="fa fa-sign-out fa-lg"></i> Sign out</a>
              </li>
             
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
         
        </ul>
      </div>
    </nav>