<section class="sidebar">
	<!-- Sidebar user panel -->
	<div class="user-panel">
		<div class="pull-left image">
			@if(Sentinel::getUser()->foto != null)
				<img src="{!! url('dist/img/users/'.Sentinel::getUser()->foto) !!}" class="img-circle" alt="User Image">
			@else
				<img src="{!! url('dist/img/avatar5.png') !!}" class="img-circle" alt="User Image">
			@endif
		</div>
		<div class="pull-left info">
			<p>{{ Sentinel::getUser()->nama }}</p>
			<a href="#"><i class="fa fa-circle text-success" style="color: #0f0"></i> Online</a>
		</div>
	</div>
	<br>
	<hr style="border-top-color: rgba(255,255,255,0.6);">
	<!-- sidebar menu: : style can be found in sidebar.less -->
	<ul class="sidebar-menu sidebarMenuColor">
		<li <?php if($mn_active == "dashboard"){ echo "class='active'";} ?>>
			<a href="{{ route('home') }}">
				<i class="fa fa-dashboard"></i> <span>Dashboard</span></i>
			</a>
		</li>
		<li <?php if($mn_active == "users"){ echo "class='treeview active'";}else{ echo "class='treeview'";} ?>>
			<a href="#">
				<i class="fa fa-users"></i>
				<span>Users</span>
				<i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu treeviewMenuColor">
			    @if(Sentinel::getUser()->level_user == 1)
					<li><a href="{!! route('admin') !!}"><i class="fa fa-angle-double-right"></i> Admin</a></li>
					<li><a href="{!! route('bidan') !!}"><i class="fa fa-angle-double-right"></i> Tenaga Medis</a></li>
				@endif
				<li><a href="{!! route('pusatKesehatan') !!}"><i class="fa fa-angle-double-right"></i> Puskesmas</a></li>
				<li><a href="{!! route('usrKua') !!}"><i class="fa fa-angle-double-right"></i> KUA</a></li>
			</ul>
		</li>

		@if(Sentinel::getUser()->level_user == 5 || Sentinel::getUser()->level_user == 7)
			<li <?php if($mn_active == "keluarga"){ echo "class='active'";} ?>>
				<a href="{{ route('dtPernikahan') }}">
					<i class="fa fa-male" style="width: auto;left: -3px;position: relative;"></i>
					<i class="fa fa-female" style="margin-left: -5px;width: 14px !important;"></i>
					<span>Pasangan Keluarga Sehat</span>
				</a>
			</li>
		@else
			<li <?php if($mn_active == "keluarga"){ echo "class='treeview active'";}else{ echo "class='treeview'";} ?>>
				<a href="#">
					<i class="fa fa-male" style="width: auto;left: -3px;position: relative;"></i>
					<i class="fa fa-female" style="margin-left: -5px;width: 14px !important;"></i>
					<span>Pasangan Keluarga Sehat</span>
					<i class="fa fa-angle-left pull-right"></i>
				</a>
				<ul class="treeview-menu treeviewMenuColor">
					<li>
						<a href="{!! route('dtPernikahan') !!}"><i class="fa fa-angle-double-right"></i> Data Pernikahan</a>
					</li>
					<li>
						<a href="{!! route('dtKesPas') !!}"><i class="fa fa-angle-double-right"></i> Data Kesehatan</a>
					</li>
				</ul>
			</li>
		@endif
		@if(Sentinel::getUser()->level_user == 1 || Sentinel::getUser()->level_user == 2 || Sentinel::getUser()->level_user == 3 || Sentinel::getUser()->level_user == 4)
			<li <?php if($mn_active == "istri"){ echo "class='active'";} ?>>
    			<a href="{{ route('istri') }}">
    				<i class="fa fa-female"></i> <span>Data Istri</span></i>
    			</a>
    		</li>
    		<li <?php if($mn_active == "dataIbu"){ echo "class='active'";} ?>>
				<a href="{{ route('dataIbu') }}">
					<i class="fa fa-heartbeat"></i><span>Data Ibu Hamil</span></i>
				</a>
			</li>
    		<li <?php if($mn_active == "1000hpk"){ echo "class='active'";} ?>>
				<a href="{{ route('1000hpk') }}">
					<i class="fa fa-book"></i><span>1000 HPK</span></i>
				</a>
			</li>
		@endif
		@if(Sentinel::getUser()->level_user == 6)
			<li <?php if($mn_active == "dataIbu"){ echo "class='active'";} ?>>
				<a href="{{ route('dataIbu') }}">
					<i class="fa fa-heartbeat"></i><span>Data Ibu Hamil</span></i>
				</a>
			</li>
		@endif
	</ul>
</section>