HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/taxicamera/application/views/admin/report/docket/ajax_docket_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 docket_report_table">
        <thead>
            <tr>
              <th>SL No.</th>                                
              <th>DC</th>
              <th>Driver Name</th>
              <th>Shift Id</th>
              <th>Car No.</th>
              <th>Dockets Name</th>
              <th>Date</th>
              <th>Amount($)</th>
            </tr>
        </thead>
        <tbody>
        <?php $total_docket_amt=0; if(!empty($docket_report_data)): ?>
        <?php   foreach($docket_report_data as $key => $list): 
                  if($list['middle_name']!=''){
                    $middle_name  = $list['middle_name'].' ';
                  }
                  else{
                    $middle_name  ='';
                  }
        ?>
                <tr>
                    <td><?php echo $key+1; ?></td>
                    <td><?php echo $list['dc_no']; ?></td>
                    <td><?php echo $list['first_name'].' '.$middle_name.$list['last_name']; ?></td>
                    <td><?php echo $list['shift_no']; ?></td>
                    <td><?php echo $list['registration_no']; ?></td>
                    <td><?php echo $list['docket_name']; ?></td>
                    <td><?php echo date('d/m/Y',strtotime($list['created_on'])); ?></td>
                    <td><?php echo number_format($list['docket_settlement_amt'],2); ?></td>
                </tr>
        <?php  $total_docket_amt+=$list['docket_settlement_amt']; endforeach; ?>
        <?php endif; ?>
        </tbody>
        <tfoot>  
          <tr style="background: #1db5bd;color: #fff;">
              <td colspan="7"><strong>TOTAL</strong></td>
              <td><strong><?=number_format($total_docket_amt,2)?></strong></td>
          </tr>
        </tfoot>
    </table>
  </div>
</div>