<section class="sidebar">
	<!-- Sidebar user panel -->
	<div class="user-panel">
		<div class="pull-left image">
			<?php if(Sentinel::getUser()->foto != null): ?>
				<img src="<?php echo url('dist/img/users/'.Sentinel::getUser()->foto); ?>" class="img-circle" alt="User Image">
			<?php else: ?>
				<img src="<?php echo url('dist/img/avatar5.png'); ?>" class="img-circle" alt="User Image">
			<?php endif; ?>
		</div>
		<div class="pull-left info">
			<p><?php echo e(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="<?php echo e(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">
			    <?php if(Sentinel::getUser()->level_user == 1): ?>
					<li><a href="<?php echo route('admin'); ?>"><i class="fa fa-angle-double-right"></i> Admin</a></li>
				<?php endif; ?>
			    <?php if(Sentinel::getUser()->level_user == 1 || Sentinel::getUser()->level_user == 6): ?>
					<li><a href="<?php echo route('bidan'); ?>"><i class="fa fa-angle-double-right"></i> Tenaga Medis</a></li>
				<?php endif; ?>
				<li><a href="<?php echo route('pusatKesehatan'); ?>"><i class="fa fa-angle-double-right"></i> Puskesmas</a></li>
				<li><a href="<?php echo route('usrKua'); ?>"><i class="fa fa-angle-double-right"></i> KUA</a></li>
			</ul>
		</li>

		<?php if(Sentinel::getUser()->level_user == 5 || Sentinel::getUser()->level_user == 7): ?>
			<li <?php if($mn_active == "keluarga"){ echo "class='active'";} ?>>
				<a href="<?php echo e(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>
		<?php 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="<?php echo route('dtPernikahan'); ?>"><i class="fa fa-angle-double-right"></i> Data Pernikahan</a>
					</li>
					<li>
						<a href="<?php echo route('dtKesPas'); ?>"><i class="fa fa-angle-double-right"></i> Data Kesehatan</a>
					</li>
				</ul>
			</li>
		<?php endif; ?>
		<?php 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="<?php echo e(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="<?php echo e(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="<?php echo e(route('1000hpk')); ?>">
					<i class="fa fa-book"></i><span>1000 HPK</span></i>
				</a>
			</li>
		<?php endif; ?>
		<?php if(Sentinel::getUser()->level_user == 6): ?>
			<li <?php if($mn_active == "dataIbu"){ echo "class='active'";} ?>>
				<a href="<?php echo e(route('dataIbu')); ?>">
					<i class="fa fa-heartbeat"></i><span>Data Ibu Hamil</span></i>
				</a>
			</li>
		<?php endif; ?>
	</ul>
</section>