 <? global $vis_language; ?>
 <section class="container m-t-md">
   <div class="row">
      <div class="col-md-12">
         <section class="panel shadow-none">
<div class="m-r-n m-l-n">
  <table class="table table-hover m-b-none" data-ride="datatables">
	<thead class="table_head">
		<th class="txt_nowrap"><? echo $vis_language['TXTFIRSTNAME']; ?></th>
		<th class="txt_nowrap"><? echo $vis_language['TXTLASTNAME']; ?></th>
		<th class="txt_nowrap"><? echo $vis_language['TXTUSERNAME']; ?></th>
		<th class="txt_nowrap"><? echo $vis_language['TXTEMAIL']; ?></th>
		<th class="txt_nowrap"><? echo $vis_language['TXTCOMPANYNAME']; ?></th>
		<th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>
		<th class="txt_nowrap"><? echo $vis_language['TXTCONTACTNUMBER']; ?></th>
        <th></th>
	</thead>
	<tbody>	
		<? if($subaccount_details!=-1) for($i=0;$i<count($subaccount_details);$i++) { ?>
		<tr>
			<td><a href="index.php?/client/contact-details/<?= $subaccount_details[$i]['first_name']." ".$subaccount_details[$i]['last_name']."/".$subaccount_details[$i]['client_id']; ?>" class="btn btn-sm"><?= $subaccount_details[$i]['first_name']; ?></a></td>
			<td><a href="index.php?/client/contact-details/<?= $subaccount_details[$i]['first_name']." ".$subaccount_details[$i]['last_name']."/".$subaccount_details[$i]['client_id']; ?>" class="btn btn-sm"><?= $subaccount_details[$i]['last_name']; ?></a></td>
			<td><?= $subaccount_details[$i]['user_name']; ?></td>
			<td><?= $subaccount_details[$i]['email']; ?></td>
			<td><?= $subaccount_details[$i]['office_name']; ?></td>
			<td><?=($subaccount_details[$i]['is_approved']==1)?'<span class="label vh-green-bg ">'.$vis_language['TXTENABLED'].'</span>':'<span class="label label-default">'.$vis_language['TXTDISABLED'].'</span>'; ?></td>
			<td><?= $subaccount_details[$i]['contact_number']; ?></td>
            <td align="center"><a class="text-muted" href="?/client/delete-client/delete/<? echo $subaccount_details[$i]['client_id']; ?>" onclick = "result = confirm('<?php echo  str_replace('<br />', '\n',$vis_language['MSGCLTDELETE']); ?>');if(result== false) return false;" title="<? echo $vis_language['TXTDELETE']; ?>"><i class="vh vh-delete-round"></i></a>
       </td>
		</tr><? } ?>
	</tbody>
  </table>
</div>
  </section>
      </div>
   </div>
</section>
<script> $(document).ready(function() { $(".selectpicker").selectpicker(); });</script>
