<div class="wrapper bg-white b-t" id="vis_filter_list" style="display:none;">
	<form id="vis_twilio_search_form" name="vis_twilio_search_form" method="post">
	<label class="control-label"><b><?= $vis_language['TXTFILTERLIST']; ?></b></label>
	<div class="row">
	  <div class="m-t m-b">
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTDOMAIN'];?></label>
			<div class="col-sm-2">
			    <select class='form-control selectpicker' name="vis_domain_filter" id="vis_domain_filter" <? if(count($department) > 10) echo 'data-live-search="true"' ?>>
				  <? for($i=0;$i<count($department);$i++){
						 if($vis_domain == $department[$i]['domain_id'])$chk = 'selected="selected"';
						 else $chk = '';
						
						if($vis_all_domain!=1){
							for($l=0;$l<count($twilio_domian_details);$l++){
								if($twilio_domian_details[$l]['domain_id'] == $department[$i]['domain_id']){ 
									echo '<option '.$chk.' value="'.$department[$i]['domain_id'].'">'.$department[$i]['domain_name'].'</option>'; 
								}
							}
						}else echo '<option '.$chk.' value="'.$department[$i]['domain_id'].'">'.$department[$i]['domain_name'].'</option>';
					 }?>
			  </select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTFROM'];?></label>
			<div class="col-sm-2">
             <span class="input-group-addon no-padder no-borders">
				<input id="vis_call_from" name="vis_call_from" class="form-control input-sm" type="text" >
            </span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTTO'];?></label>
			<div class="col-sm-2">
             <span class="input-group-addon no-padder no-borders">
				<input id="vis_call_to" name="vis_call_to" class="form-control input-sm" type="text" >
            </span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-1 control-label m-t-xs"><?= $vis_language['TXTSTARTDATE'];?></label>
			<div class="col-sm-2">
             <span class="input-group-addon no-padder no-borders from_date">
				<input id="start_date" name="start_date" class="form-control input-sm" type="text" >
            </span>
			</div>
		</div>
	</div>
	</div>
	<div class="row">
		<div class="m-t m-b">
			<div class="form-group">
				<div class="col-sm-12">
				  <button type="button" id="btn_apply_filter" class="btn btn-primary pull-right" onclick="vis_apply_filter();"><?= $vis_language['TXTAPPLYFILTER'];?></button>
				  <button type="button" class="btn btn-default pull-right m-r-sm" onclick="$('#vis_twilio_search_form').trigger('reset');$('.selectpicker').selectpicker('refresh');"><?= $vis_language['TXTCLEAR'];?></button>
				</div>
			</div>
		</div>
	</div>
	</form>
</div>
