<!-- Navbar -->
 <?php
 $query=mysqli_query($con,"select * FROM companydata");
   while($row=mysqli_fetch_array($query))
   {
   $schname=$row["School"];
   }
   ?>
  <nav class="main-header navbar navbar-expand navbar-white navbar-light" style="background-color:#003366;color:#FFF">
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link text-white" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="index.php?page=dashboard" class="nav-link text-white"> <i class="nav-icon fas fa-tachometer-alt text-white"></i> Dashboard</a>
      </li>
    
      <li class="nav-item d-none d-sm-inline-block">
        <a href="Exams.php?page=Home" class="nav-link text-white"> <i class="fa fa-solid fa-user-graduate"></i>Exams Management</a>
      </li>
    </ul>

    <ul class="navbar-nav ml-auto">
      <li><h4><?php echo $schname; ?></h4></li>
      
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt text-white"></i>
        </a>
      </li>

        <li class="nav-item dropdown">
          <a class="nav-link nav-profile d-flex align-items-center pe-0 text-white"  data-toggle="dropdown" href="#">
                <img data-echo="" style="max-height:20px" src="../images/user.png" alt="" id="photo" class="img-responsive" >
            <span class="d-none d-md-block dropdown-toggle ps-2">  &nbsp <?php echo $_SESSION['name']; ?> </span>
          </a>
      
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <div class="dropdown-divider"></div>
          <a href="index.php?page=Profile" class="dropdown-item ">
            <i class="fa fa-user"></i>  My Profile
          </a>
          <div class="dropdown-divider"></div>
          <a href="logout.php" class="dropdown-item">
            <i class="fas fa-arrow-left mr-2"></i> Log Out
          </a>
          <div class="dropdown-divider"></div>
        </div>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->