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/accident/ajax_accident_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 file-export c_table_style accident_report_table">
      <thead>
          <tr>
            <th>SL No.</th>
            <th>Driver DC</th>
            <th>Driver Name</th>
            <th>Car No</th>
            <th>Accident Date</th>
            <th>Total Amount</th>
            <th>Status</th>
            <th>Action</th>
          </tr>
      </thead>
      <tbody>
        <?php if(!empty($accd_report_data)): ?>
        <?php   foreach($accd_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['car_no']; ?></td>
                    <td><?php echo date('d/m/Y',strtotime($list['accident_date'])); ?></td>
                    <td><?php echo $list['total_amt']; ?></td>
                    <td>
                      <?php if(empty($list['accident_installment'])): ?>
                          <a href="" class="active_txt_btn">Active</a>
                      <?php else: ?>
                          <a href="" class="setteld_txt_btn">Settled</a>
                      <?php endif; ?>
                    </td>                    
                    <td class="action_td text-center"><a href="<?php echo base_url().'admin/AccidentReport/ReportDetails/'.$list['accident_id']; ?>" class="btn_action edit_icon"><i class="fa fa-eye" aria-hidden="true"></i></a></td>
                  </tr>
        <?php   endforeach; ?>                  
        <?php endif; ?>
      </tbody>
    </table>
  </div>
</div>