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/old/applicationold/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>Dockets Name</th>
              <th>Date</th>
              <th>Amount($)</th>
            </tr>
        </thead>
        <tbody>
        <?php 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_id']; ?></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   endforeach; ?>
        <?php else: ?>
                <tr>
                    <td colspan="7">No data found</td>
                </tr>
        <?php endif; ?>
        </tbody>
    </table>
  </div>
</div>