  <?php
  $pageURL = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
  
  $nama_lengkap = explode(" ", $rsiswa_login['nama_lengkap']);

  ?>



  <?php
  if($session_id!=''){
  ?>

  <header id="header" class="header fixed-top" style="background:white;">
    <div class="container-fluid container-xl d-flex align-items-center justify-content-between">

      <a href="home" class="logo d-flex align-items-center">
        <img src="assets/img/logosanggul.png" alt="" width="25">
        <span>HairBeauty.id</span>
      </a>
     
     
   
      
      <nav id="navbar" class="navbar">
        <ul>
          <li><a class="<?php if($pageURL=='pengantar.php'){echo'nav-link scrollto active';}?>" href="katapengantar">Kata Pengantar</a></li>
          <li><a class="<?php if($pageURL=='panduan.php'){echo'nav-link scrollto active';}?>" href="panduan">Panduan</a></li>
          
          <!--
          
          <li><a class="<?php if($pageURL=='pustaka.php'){echo'nav-link scrollto active';}?>" href="pustaka">Daftar Pustaka</a></li>
          <li><a class="<?php if($pageURL=='glosarium.php'){echo'nav-link scrollto active';}?>" href="glosarium">Glosarium</a></li>
          -->
          <li><a class="<?php if($pageURL=='capaian.php'){echo'nav-link scrollto active';}?>" href="capaian">Ruang Lingkup</a></li>
          <li><a class="<?php if($pageURL=='profil.php'){echo'nav-link scrollto active';}?>" href="profil">Nilai</a></li>
          <li><a class="<?php if($pageURL=='umpanbalik.php'){echo'nav-link scrollto active';}?>" href="umpanbalik.php">Umpan Balik</a></li>
          <li><a class="<?php if($pageURL=='tentang.php'){echo'nav-link scrollto active';}?>" href="tentang">Tentang</a></li>
          <li class="dropdown">
            <a href="#" class="getstarted scrollto" style="color:white;">
              <span><?php echo $nama_lengkap[0];?></span> 
              <i class="bi bi-chevron-down"></i>
            </a>
            <ul>
              <li><a href="profil">Profil</a></li>
              <li><a href="gantipassword">Ganti Password</a></li>
              <li><div class="dropdown-divider"></div></li>
              <li><a href="logout">Logout</a></li>
            </ul>
          </li>
        </ul>
        <i class="bi bi-list mobile-nav-toggle"></i>
      </nav><!-- .navbar -->

     

    </div>
  </header><!-- End Header -->

  <?php }else{?>

  <header id="header" class="header fixed-top">
    <div class="container-fluid container-xl d-flex align-items-center justify-content-between">

      <a href="home" class="logo d-flex align-items-center">
        <img src="assets/img/logosanggul.png" alt="" width="25">
        <span>HairBeauty.id</span>
      </a>

      <nav id="navbar" class="navbar">
        <ul>
            <!--
            <li><a class="<?php if($pageURL=='tentang.php'){echo'nav-link scrollto active';}?>" href="tentang">Tentang Aplikasi</a></li>
            -->
          
           <li><a class="getstarted scrollto" href="panduan.php" style="color:white;">Panduan Penggunaan</a></li>
        </ul>
        <i class="bi bi-list mobile-nav-toggle"></i>
      </nav><!-- .navbar -->

    </div>
  </header><!-- End Header -->


  <?php }?>