<?php
	$set = $this->db->query("SELECT * FROM pengaturan WHERE id='2' ")->row();
?>
<nav class="navbar navbar-expand navbar-light background-3 topbar mb-4 static-top shadow">
    <!-- Sidebar Toggle (Topbar) -->
    <button id="sidebarToggleTop" class="btn btn-link rounded-circle mr-3">
        <i class="fa fa-bars"></i>
	</button>
    <!-- Topbar Navbar -->
    <ul class="navbar-nav navbar-right">
        <!-- Nav Item - Messages -->
        <li class="nav-item dropdown no-arrow">
            <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown"
			aria-haspopup="true" aria-expanded="false">
                <h1 class="h3 mb-0" style="color:white;"><b><?=$set->title;?>
				</b></h1><span class="mr-2 d-none d-lg-inline small">
				<h1 class="h3 mb-0" style="font-size:19px;">&nbsp;|
					<i class="alert-danger" style="padding:5px;border-radius:5px;"><?=$set->deskripsi_singkat;?></i>
				</h1>
                </span>
			</a>
		</li>
	</ul>
    <ul class="navbar-nav ml-auto">
        <!-- Nav Item - Messages -->
        <div class="topbar-divider d-none d-sm-block"></div>
        <!-- Nav Item - Alerts -->
		
        <!-- Nav Item - User Information -->
        <li class="nav-item dropdown no-arrow">
            <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown"
			aria-haspopup="true" aria-expanded="false">
                <span class="mr-2 d-none d-lg-inline small " style="color:grey;"><?php echo $user->namasatker; ?></span>
                <?php if (!empty($user->foto)) { ?>
					<img src="<?php echo base_url('gambar/' . $user->foto); ?>" class="img-profile rounded-circle">
					<?php } else { ?>
					<img src="<?php echo base_url('sb/img/ptsp.png'); ?>" class="img-profile rounded-circle">
				<?php } ?>
			</a>
            <!-- Dropdown - User Information -->
            <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in" aria-labelledby="userDropdown">
                <a class="dropdown-item" href="<?php echo base_url('dashboard/profil'); ?>">
                    <i class="fas fa fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
                    Profil
				</a>
				<a class="dropdown-item" href="<?php echo base_url('dashboard/foto'); ?>">
                    <i class="fas fa fa-image fa-sm fa-fw mr-2 text-gray-400"></i>
                    Ubah Foto
				</a>
				<a class="dropdown-item" href="<?php echo base_url('dashboard/password'); ?>">
                    <i class="fas fa fa-key fa-sm fa-fw mr-2 text-gray-400"></i>
                    Password
				</a>
                <a class="dropdown-item" href="<?php echo base_url('dashboard/pengaturan'); ?>">
                    <i class="fas fa-users fa-sm fa-fw mr-2 text-gray-400"></i>
                    Pengaturan
				</a>
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
                    <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
                    Logout/Keluar
				</a>
			</div>
		</li>
	</ul>
</nav>