<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
  <ul class="nav navbar-nav">
    <!-- User Account -->
    <li class="dropdown user user-menu">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown">
        <img src="dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
        <span class="hidden-xs"><?= $level ?></span>
      </a>
      <ul class="dropdown-menu">
        <!-- User image -->
        <li class="user-header">
          <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
          <p>
            <?= ucfirst($level) ?> - <?= $nama ?? 'User' ?>
            <small>Login sejak <?= date('d-m-Y H:i') ?></small>
          </p>
        </li>
        <!-- Menu Footer-->
        <li class="user-footer">
          <div class="pull-left">
            <a href="index.php?view=profile" class="btn btn-default btn-flat">Profile</a>
          </div>
          <div class="pull-right">
            <a href="logout.php" class="btn btn-default btn-flat">Logout</a>
          </div>
        </li>
      </ul>
    </li>
  </ul>
</div>
