
<div>
	<table border="1" cellpadding="1" cellspacing="0" width="100%">
		<thead>
		<tr>
			<th class="tac">#</th>
					<th><?php echo $this->lang->line('customerName');?></th>
            		<th><?php echo $this->lang->line('formNo');?></th>
                    <th><?php echo $this->lang->line('salescreditnote_Date');?></th>
                    <th class="tac"><?php echo $this->lang->line('totalcreditnote');?></th>          
		</tr>
		</thead>
		<tbody>
	<?php $bil = 0;
				if($datatbls){
				foreach($datatbls as $datatbl):
				$bil++?>
            	<tr>
                	<td><?php echo $bil; ?></td>
                	<td><?php echo $datatbl->customerName ?></td>
                	<td><?php echo $datatbl->formNo.'['.$this->FormSetup_model->getFormSerialNo_zeroLeading($datatbl->ID).']'; ?></td>
                    <td class="tac"><?php echo date(element('dtFormat', $this->session->userdata('logged_in')), strtotime($datatbl->salescreditnote_Date)); ?></td>
                    <td class="tac"><?php echo $datatbl->totalcreditnote ?></td>
                    
                </tr>
            <?php endforeach; }?>
		</tbody>
	</table>                                         
</div>