<header id="topnav">
	<div class="topbar-main">
		<div class="container-fluid">
			<!-- Logo container-->
			<div class="logo">
				<a href="{{ url('/') }}" class="logo">
					<img src="{{ asset('logo.png') }}" alt="" height="26" class="logo-small">
					<img src="{{ asset('logo.png') }}" alt="" height="40" class="logo-large">
					<b>{{ config('global.Title') }} | {{ config('global.namaapps') }}</b>
				</a>
			</div>
			<div class="menu-extras topbar-custom">
				<ul class="list-unstyled topbar-right-menu float-right mb-0">
					<li class="menu-item">
						<a class="navbar-toggle nav-link">
							<div class="lines">
								<span></span>
								<span></span>
								<span></span>
							</div>
						</a>
					</li>
					@if(Session::get('id') !== null)
						@if (isset($antrkrmsitu))
						<li class="dropdown notification-list">
							<a class="nav-link dropdown-toggle arrow-none waves-effect" data-toggle="dropdown" href="#" role="button"
								aria-haspopup="false" aria-expanded="false">
								<i class="fi-bell noti-icon"></i>
								<span class="badge badge-danger badge-pill noti-icon-badge">{{$antrkrmsitu}}</span>
							</a>
							<div class="dropdown-menu dropdown-menu-right dropdown-lg">
								<a href="checkout" class="dropdown-item text-center text-primary notify-item notify-all">
									Sync To INSITU <i class="fi-arrow-right"></i>
								</a>
							</div>
						</li>
						@endif
						<li class="dropdown notification-list">
							<a class="nav-link dropdown-toggle waves-effect nav-user" data-toggle="dropdown" href="#" role="button"
							   aria-haspopup="false" aria-expanded="false">
							   <img src="{{ Session::get('photo') }}" alt="user" class="rounded-circle"><span class="ml-1 pro-user-name">{{ Session::get('nama') }}<i class="mdi mdi-chevron-down"></i> </span>
							</a>
							<div class="dropdown-menu dropdown-menu-right profile-dropdown ">
								<!-- item-->
								<a href="/logout" class="dropdown-item notify-item">
									<i class="fi-power"></i> <span>Logout</span>
								</a>
							</div>
						</li>
					@else
						<li class="dropdown notification-list">
							<a class="nav-link dropdown-toggle waves-effect nav-user" href="/login" role="button"
							   aria-haspopup="false" aria-expanded="false">
							   <img src="admin.png" alt="user" class="rounded-circle"> <span class="ml-1 pro-user-name">Login</span>
							</a>
						</li>
					@endif

				</ul>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
	<div class="navbar-custom">
		<div class="container-fluid">
			<div id="navigation">
				<ul class="navigation-menu">
					@if(Session::get('previlage') == 'developer')
						<li><a href="/reportppds"><i class="fa fa-h-square"></i>SPV Verification</a></li>
						<li><a href="/pendaftaran"><i class="fa fa-h-square"></i>Registration</a></li>
						<li><a href="/mikro"><i class="fa fa-user-md"></i>Expertise</a></li>
						<li><a href="/pasien"><i class="fa fa-wheelchair"></i>Patient</a></li>
						<li><a href="/report"><i class="fa fa-hospital-o"></i>Report</a></li>
						<li class="has-submenu">
							<a href="#"><i class="fa fa-user-md"></i>Logbook</a>
							<ul class="submenu">
								<li><a href="/logbookmenu">Logbook Menu</a></li>
								<li><a href="/logbookstatistik">Report and Statistik</a></li>
							</ul>
						</li>
						<li class="has-submenu">
							<a href="#"><i class="fa fa-stethoscope"></i>Queue List</a>
							<ul class="submenu">
								<li><a href="/list">Current List</a></li>
								<li><a href="/antrian">Queue</a></li>
								<li><a href="/pengambilan">Result Management</a></li>
							</ul>
						</li>
						<li class="has-submenu">
							<a href="#"><i class="fa fa-medkit"></i>Settings</a>
							<ul class="submenu">
								<li><a href="/poli">Room and Request List</a></li>
								<li><a href="/dokter">Doctor</a></li>
								<li><a href="/user">User Management</a></li>
								<li><a href="/template">Expertise Template</a></li>
								<li><a href="/sirab">Database Antibiotik</a></li>
								<li><a href="/gudang">Gudang</a></li>
								<li><a href="/backup">Backup</a></li>
							</ul>
						</li>
					@elseif(Session::get('previlage') == 'supervisor')
						<li><a href="/reportppds"><i class="fa fa-h-square"></i>SPV Verification</a></li>
						<li><a href="/pendaftaran"><i class="fa fa-h-square"></i>Registration</a></li>
						<li><a href="/mikro"><i class="fa fa-user-md"></i>Expertise</a></li>
						<li><a href="/pasien"><i class="fa fa-wheelchair"></i>Patient</a></li>
						<li><a href="/report"><i class="fa fa-hospital-o"></i>Report</a></li>
						<li class="has-submenu">
							<a href="#"><i class="fa fa-user-md"></i>Logbook</a>
							<ul class="submenu">
								<li><a href="/logbookmenu">Logbook Menu</a></li>
								<li><a href="/logbookstatistik">Report and Statistik</a></li>
							</ul>
						</li>
						<!--
						
						<li class="has-submenu">
							<a href="#"><i class="fa fa-stethoscope"></i>Queue List</a>
							<ul class="submenu">
								<li><a href="/list">Current List</a></li>
								<li><a href="/antrian">Queue</a></li>
								<li><a href="/pengambilan">Result Management</a></li>
							</ul>
						</li>
						-->
						<li class="has-submenu">
							<a href="#"><i class="fa fa-medkit"></i>Settings</a>
							<ul class="submenu">
								<li><a href="/poli">Room and Request List</a></li>
								<li><a href="/dokter">Doctor</a></li>
								<li><a href="/user">User Management</a></li>
								<li><a href="/template">Expertise Template</a></li>
								<li><a href="/sirab">Database Antibiotik</a></li>
								<li><a href="/gudang">Gudang</a></li>
							</ul>
						</li>
					@elseif(Session::get('previlage') == 'ppds')
						<li><a href="/mikro"><i class="fa fa-user-md"></i>Expertise</a></li>
						<li><a href="/pendaftaran"><i class="fa fa-h-square"></i>Registration</a></li>
						<li><a href="/poli"><i class="fa fa-hospital-o"></i>Room and Request List</a></li>
						<li><a href="/pasien"><i class="fa fa-wheelchair"></i>Patient</a></li>
						<li><a href="/report"><i class="fa fa-hospital-o"></i>Report</a></li>
						<!--
						<li class="has-submenu">
							<a href="#"><i class="icon-book-open"></i>Report</a>
							<ul class="submenu">
								<li><a href="/report">Report</a></li>
								<li><a href="/pengambilan">Result Management</a></li>
								<li><a href="/viewlogbookppds/{{Session::get('id')}}">Logbook</a></li>
							</ul>
						</li>
						<li class="has-submenu">
							<a href="#"><i class="fa fa-stethoscope"></i>Queue List</a>
							<ul class="submenu">
								<li><a href="/list">Current List</a></li>
								<li><a href="/pengambilan">Result Management</a></li>
							</ul>
						</li>
						-->
						<li class="has-submenu">
							<a href="#"><i class="fa fa-medkit"></i>Settings</a>
							<ul class="submenu">
								<li><a href="/template">Database</a></li>
								<li><a href="/user">User Management</a></li>
							</ul>
						</li>
					@elseif(Session::get('previlage') == 'analis')
						<li><a href="/mikro"><i class="fa fa-user-md"></i>Expertise</a></li>
						<li><a href="/pendaftaran"><i class="fa fa-h-square"></i>Registration</a></li>
						<li><a href="/poli"><i class="fa fa-hospital-o"></i>Room and Request List</a></li>
						<li><a href="/pasien"><i class="fa fa-wheelchair"></i>Patient</a></li>
						<li><a href="/report"><i class="icon-book-open"></i>Report</a></li>
						<li><a href="/template"><i class="fa fa-medkit"></i>Database</a></li>
					@elseif(Session::get('previlage') == 'admin')
						<li><a href="/pendaftaran"><i class="fa fa-h-square"></i>Pendaftaran</a></li>
						<li><a href="/poli"><i class="fa fa-hospital-o"></i>Database</a></li>
						<li><a href="/user"><i class="icon-user"></i>User Management</a></li>
						<li><a href="/pasien"><i class="fa fa-wheelchair"></i>Pasien</a></li>
						<li><a href="/report"><i class="icon-book-open"></i>Laporan</a></li>
						<li><a href="/gudang"><i class="fa fa-home"></i>Gudang</a></li>
					@else
						<li><a href="/login"><i class="icon-user"></i>Login</a></li>
					@endif
				</ul>
			</div>
		</div>
	</div>
</header>
