<nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
  <div class="text-center navbar-brand-wrapper d-flex align-items-center justify-content-center">
    <a class="navbar-brand brand-logo mr-5" href="dashboard"><img src="../assets/images/logo.png" class="mr-2" alt="logo" /><b style="font-size:0.7em;"><?= $main_name; ?></b></a>
    <a class="navbar-brand brand-logo-mini" href="dashboard"><img src="../assets/images/logo.png" alt="logo" /></a>
  </div>
  <div class="navbar-menu-wrapper d-flex align-items-center justify-content-end">
    <button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
      <span class="icon-menu"></span>
    </button>
    <ul class="navbar-nav navbar-nav-right">
      <li class="nav-item nav-profile dropdown">
        <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" id="profileDropdown">
          <?php
          if ($dbpassport == 'no_passport') {
            echo '<i class="ti-user" style="background-color: #4B49AC; padding: 10px; border-radius: 100%; color: #fff;"></i>';
          } else {
            echo '<img src = "' . passportPath . $dbpassport . '">';
          }
          ?>
        </a>
        <div class="dropdown-menu dropdown-menu-right navbar-dropdown" aria-labelledby="profileDropdown">
          <a href="profile" class="dropdown-item">
            <i class="ti-user text-primary"></i>
            Profile
          </a>
          <a href="logout" class="dropdown-item">
            <i class="ti-power-off text-primary"></i>
            Logout
          </a>
        </div>
      </li>
    </ul>
    <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
      <span class="icon-menu"></span>
    </button>
  </div>
</nav>
