<table border="1" cellpadding="1" cellspacing="0" width="100%">
                	<thead>
                    <tr>
            			<th class="tac">#</th>
                        <th><?php echo $this->lang->line('customer') ?></th>
                        <th><?php echo $this->lang->line('contact') ?></th>
                        <th><?php echo $this->lang->line('phone') ?></th>
                        <th class="tar"><?php echo $this->lang->line('amount') ?></th>
            		</tr>
        			</thead>
       				 <tbody>
			<?php $bil = 0; 
				if($datatbls){
				foreach($datatbls as $datatbl):
				?>
                <?php if($datatbl->customerTotal > 0 ){
					$bil++?>
            	<tr>
                	<td class="tac"><?php echo $bil; ?></td>
                	<td><?php echo $datatbl->customerName; ?></td>
                	<td><?php echo $datatbl->attention; ?></td>
                	<td><?php echo $datatbl->phoneNumber1; ?></td>
                	<td class="tar"><?php echo number_format($datatbl->customerTotal,2); ?></td>
               </tr>
            <?php }?>
            <?php endforeach; }?>
                     </tbody>
	</table>