<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
  <!-- Left navbar links -->
  <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>
    <li class="nav-item d-none d-sm-inline-block">
      <a href="<?= site_url('home') ?>" class="nav-link">Home</a>
    </li>
    <li class="nav-item d-none d-sm-inline-block">
      <a href="<?= site_url('kontak')?>" class="nav-link">Contact</a>
    </li>
  </ul>
  <!-- Right navbar links -->
  <ul class="navbar-nav ml-auto">
    <li class="nav-item dropdown user-menu">
      <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">
        <img src="<?php
                  if (empty($foto)) {
                    if ($jenis_kelamin == 'L') {
                      echo base_url('assets'); ?>/img/user/laki.png" <?php } else {
                                                                      echo base_url('assets'); ?>/img/user/perempuan.png" <?php }
                                                                                                                    } else {
                                                                                                                      echo base_url('assets') . '/img/user/' . $foto . '"' ?> <?php } ?> class="user-image img-circle elevation-2" alt="User Image">
        <span class="d-none d-md-inline"><?= $nm_user; ?></span>
      </a>
      <ul class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
        <!-- User image -->
        <li class="user-header bg-primary">
          <img src="<?php
                    if (empty($foto)) {
                      if ($jenis_kelamin == 'L') {
                        echo base_url('assets'); ?>/img/user/laki.png" <?php } else {
                                                                        echo base_url('assets'); ?>/img/user/perempuan.png" <?php }
                                                                                                                    } else {
                                                                                                                      echo base_url('assets') . '/img/user/' . $foto . '"' ?> <?php } ?> class="img-circle elevation-2" alt="User Image">

          <p>
            <?= $nm_pegawai; ?>
            <small><?= $jabatan; ?></small>
          </p>
        </li>
        <!-- Menu Body -->

        <div class="row">
          <div class="col-12 text-center">
            <span class="d-none d-md-inline"><?= $nm_level; ?></span>
          </div>
        </div>
        <!-- /.row -->

        <!-- Menu Footer-->
        <li class="user-footer">
          <a href="<?= base_url('setting/user/user/edit_user/'); ?><?= $this->session->userdata('id'); ?>" class="btn btn-default btn-flat">Profile</a>
          <a href="<?= base_url('login/logout'); ?>" class="btn btn-default btn-flat float-right">Sign out</a>
        </li>
      </ul>
    </li>
  </ul>
</nav>
<!-- /.navbar -->