<? 
if($operation['vis_last_domain'] != ''){ ?>
<li class="active">
	<a href="#" class="auto bg-white text-black">
	<span class="pull-right text-muted">
		<i class="vh vh-angle-down text"></i>
		<i class="vh vh-angle-up text-active"></i>
	</span>
	<span><? echo $domain[0]['departments'][0]['department_name']; ?></span>
	</a>
	<ul class="nav bg-white">
	<?  for($k=0; $k<count($domain[0]['departments'][0]['status']); $k++) { ?>
		<li onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $domain[0]['domain']['domain_name'].' : '.$domain[0]['departments'][0]['department_name'].' : '.$domain[0]['departments'][0]['status'][$k]['status_name']; ?>',{'vis_module':'ticket','vis_operation':'filter_queue_ticket', 'vis_department_id':<? echo $domain[0]['departments'][0]['department_id']; ?>, 'vis_status_id':<? echo $domain[0]['departments'][0]['status'][$k]['status_id']; ?>});">
			<a href="#" class="auto dept_nav">
				<span class="badge bg-gradient pull-right font-normal text-xs"><? echo $domain[0]['departments'][0]['status'][$k]['ticket_count']; ?></span>
				<span class="m-l-md text-sm"><? echo $domain[0]['departments'][0]['status'][$k]['status_name'];?></span>
			</a>
		</li>
	<? }//for k ?>
	</ul>
</li>
<div class="line dk hidden-nav-xs"></div>
<? } ?>