<? global $vis_language;?>
<section class="panel bg-white m-b-none">	
	<div class="panel-heading b-light bg-light dropdown-header"> <strong><?= $vis_language['TXTFILTERS'];?></strong></div>	
		<div class="list-group list-group  search_result_list">
			<a onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTNEWTICKETS']; ?>',{'vis_module':'ticket','vis_operation':'filter_ticket', 'vis_filter_id':2});" href="#/ticket/filter_ticket/<? echo $vis_language['TXTNEWTICKETS']; ?>/2" class="list-group-item">
				<span id="vis_new_ticket_lp_cnt" class="badge vh-warning-bg pull-right font-normal text-xs"><?= $counts['new'];?></span>
				<span><?= $vis_language['TXTNEWTICKETS'];?></span>
			</a>
			<a onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTOVERDUETICKET']; ?>',{'vis_module':'ticket','vis_operation':'filter_ticket', 'vis_filter_id':3});" href="#/ticket/filter_ticket/<? echo $vis_language['TXTOVERDUETICKET']; ?>/3" class="list-group-item padding-sm">
				<span id="vis_overdue_ticket_lp_cnt" class="badge vh-danger-bg pull-right font-normal text-xs"><?= $counts['overdue'];?></span>
				<span><?= $vis_language['TXTOVERDUETICKET'];?></span>
			</a>
			<a onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTASSIGNEDTICKETS']; ?>',{'vis_module':'ticket','vis_operation':'filter_ticket', 'vis_filter_id':4});" href="#/ticket/filter_ticket/<? echo $vis_language['TXTASSIGNEDTICKETS']; ?>/4" class="list-group-item global_menu_item">
				<span id="vis_assign_ticket_lp_cnt" class="badge bg-gray pull-right font-normal text-xs"><?= $counts['assigned'];?></span>
				<span><? echo $vis_language['TXTASSIGNEDTICKETS'];?></span>
			</a>
			 <?if($filters!=-1) for($i=0;$i<count($filters);$i++) {?>
				 <a onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $filters[$i]['filter_name']; ?>',{'vis_module':'ticket','vis_operation':'filter_ticket', 'vis_filter_id':<?echo $filters[$i]['filter_id']?>});" href="#/ticket/filter_ticket/<? echo $filters[$i]['filter_name']; ?>/<? echo $filters[$i]['filter_id']; ?>" class="list-group-item global_menu_item">
				<span><? echo $filters[$i]['filter_name'];?></span>
			</a><? } ?>
   
 
		</div>
  
   <div style="text-align:right; padding-right:15px;"><a href="#/ticket/ticket_search/Search" class="link"><i style="font-size:10px;" class="vh vh-plus"></i> <?= $vis_language['TXTCREATEFILTER'];?></a></div>
</section>
