File: /var/www/html/taxicamera/old/application/views/admin/report/bond/ajax_bond_report.php
<div class="row">
<div class="table-responsive custom_table_area export_table_area">
<table class="table table-striped table-bordered export_btn_dt c_table_style bond_report_table">
<thead>
<tr>
<th>Sl No.</th>
<th>Diver DC</th>
<th>Diver Name</th>
<th>Startup Deposit </th>
<th>Car No</th>
<th>Installment Date</th>
<th >Bond Amount($)</th>
</tr>
</thead>
<tbody>
<?php if(!empty($bond_report_data)): ?>
<?php foreach($bond_report_data as $key => $list):
if($list['middle_name']!=''){
$middle_name = $list['middle_name'].' ';
}
else{
$middle_name ='';
}
?>
<tr>
<td><?=$key + 1?></td>
<td><?php echo $list['dc_no']; ?></td>
<td><?php echo $list['first_name'].' '.$middle_name.$list['first_name']; ?></td>
<td><?php echo $list['initial_amt_paid']; ?></td>
<td><?php echo $list['car_no']; ?></td>
<td><?php echo date('d/m/Y',strtotime($list['created_on'])); ?></td>
<td style="text-align: right;"><?php echo $list['bond_installment']; ?></td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr>
<td colspan="7" style="text-align: center";><h5>No data found</h5></td>
</tr>
<?php endif; ?>
</tbody>
<tfoot>
<tr style="background: #1db5bd;color: #fff;">
<td colspan="6" style="text-align: right;"><b>Total($)</b></td>
<td style="text-align: right;"><b><?php echo $total_amt; ?></b></td>
</tr>
</tfoot>
</table>
</div>
</div>