<nav class="navbar navbar-expand bg-light static-top">

    <a class="navbar-brand mr-1" href="index.php"><img src="img/logo.png" style="width: 50%;"></a>

    <button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
      <i class="fas fa-bars" style="color: #000000; font-size: 25px;"></i>
    </button>

    <!-- Navbar Right -->
    <form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0">
      <div class="input-group">
        <div class="input-group-append">
          
        </div>
      </div>
    </form>

    <!-- Navbar -->
    <ul class="navbar-nav ml-auto ml-md-0">
      <!-- Action -->

     <!--  <li class="nav-item dropdown no-arrow mx-1">
        <a class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <i class="fas fa-bell fa-fw"></i>
          <span class="badge badge-danger">9+</span>
        </a>
        <div class="dropdown-menu dropdown-menu-right" aria-labelledby="alertsDropdown">
          <a class="dropdown-item" href="#">Action</a>
          <a class="dropdown-item" href="#">Another action</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#">Something else here</a>
        </div>
      </li> -->

       <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        
        <ul class="nav navbar-nav navbar-right">
          <a href="#" onclick="showTooltip()"><i class="fas fa-user fa-fw" style="color: #000000; font-size: 25px;"></i></a>
          <div class="custom_tooltip text-center" id="tooltip" style="visibility: hidden;">
          <ul class="settings_head">
            <li>Bem Vindo, <?php echo($_SESSION['adm_name']);?></li>
            <hr>
            <li><a href="changepass.php"><span class="fa fa-repeat"></span>&nbsp;&nbsp;Mudar Senha</a></li>
            <li><a data-toggle="modal" data-target="#logoutModal"><span class="fa fa-sign-out"></span>&nbsp;&nbsp;Sign Out</a></li>
          </ul>
        </div>
        </ul>
      </div><!-- /.navbar-collapse -->

      <!-- Logout Modal-->
  <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLabel">Pronto para sair?</h5>
          <button class="close" type="button" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
          </button>
        </div>
        <div class="modal-body">Selecione "Sair" abaixo para terminar a sessao.</div>
        <div class="modal-footer">
          <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancelar</button>
          <a class="btn btn-primary" href="logout.php?logout">Sair</a>
        </div>
      </div>
    </div>
  </div>

          <script>
          function showTooltip() {
              var x = document.getElementById("tooltip");
              if (x.style.visibility == "hidden"){
                x.style.visibility = "visible"
              }else{
                x.style.visibility = "hidden"
              }
          }
        </script>
    </ul>

  </nav>