<nav class="main-header navbar navbar-expand navbar-white navbar-light">

    <!-- Tombol Sidebar -->
    <ul class="navbar-nav">

        <li class="nav-item">

            <a class="nav-link" data-widget="pushmenu" href="#" role="button">

                <i class="fas fa-bars"></i>

            </a>

        </li>

    </ul>

    <!-- Jam -->
    <ul class="navbar-nav ml-3">

        <li class="nav-item">

            <span class="navbar-text" id="jam"></span>

        </li>

    </ul>

    <!-- User -->
    <ul class="navbar-nav ml-auto">

        <li class="nav-item dropdown">

            <a class="nav-link" data-toggle="dropdown" href="#">

                <i class="far fa-user-circle fa-lg"></i>

                <span class="ml-1">

                    <?= $_SESSION['nama']; ?>

                </span>

            </a>

            <div class="dropdown-menu dropdown-menu-right">

                <span class="dropdown-item-text">

                    <strong><?= $_SESSION['nama']; ?></strong><br>

                    <small><?= $_SESSION['level']; ?></small>

                </span>

                <div class="dropdown-divider"></div>

                <a href="../../logout.php" class="dropdown-item text-danger">

                    <i class="fas fa-sign-out-alt mr-2"></i>

                    Logout

                </a>

            </div>

        </li>

    </ul>

</nav>