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/applicationold/views/admin/driver_settlement/ajax_driver_shift_details.php
<?php if(!empty($drv_shift_data)): ?>
<div class="row clearfix">
  <div class="col-sm-8 roster_left_main">
  <div id="drive_data_div" class="table_row repeat">  
    <div class="list_filter_sett">
      <ul>
        <li id="DC"><strong>DC </strong> <?php if(!empty($drv_shift_data) && !empty($drv_shift_data[0]['dc'])): echo $drv_shift_data[0]['dc'];endif; ?></li>
        <li id="dr_dc_expiry"><strong>DC Exp. </strong><?php if(!empty($drv_shift_data) && !empty($drv_shift_data[0]['dr_dc_expiry'])): echo $drv_shift_data[0]['dr_dc_expiry']; endif;?></li>
        <li id="dr_dl_expiry"><strong>DL Exp. </strong><?php if(!empty($drv_shift_data) && !empty($drv_shift_data[0]['dr_licence_expiry'])): echo $drv_shift_data[0]['dr_licence_expiry']; endif;?></li>
        <li id="dr_rental_li"><strong>Rental </strong><?php if(!empty($drv_shift_data) && !empty($drv_shift_data[0]['dr_rental'])): echo $drv_shift_data[0]['dr_rental']; endif;?></li>
        <input type="hidden" id="rental_hidden" name="rental_hidden" value="<?php if(!empty($drv_shift_data) && !empty($drv_shift_data[0]['dr_rental'])): echo $drv_shift_data[0]['dr_rental']; endif;?>">
      </ul>
    </div>
  </div>
  <div class="table_row repeat">
      <!--<h4 class="cash_summary">Driver Settlement</h4>-->
    <div class="table-responsive custom_table_area">
      <table class="table table-striped table-bordered daily_stl_table">
          <thead>
              <tr>
                 <th></th>
                  <th>Shift No.</th>
                  <!-- <th>Car NO.</th> -->
                  <th>Shift Date</th>
                  <th>Payout/Payin Amount</th>
                  <th>Settlement Amount</th>
                  <th>Due</th>
              </tr>
          </thead>
          <tbody>
          <?php if(!empty($drv_shift_data)): ?>
          <?php     foreach($drv_shift_data as $list): ?>
          <?php       if(!empty($list['payin_payout_amt'])): ?>  
                        <tr>
                            <td>
                              <div class="input-group">
                                <div class="custom-control custom-radio display-inline-block mr-2">
                                  <input type="radio" id="<?php echo $list['shift_id']; ?>" name="customRadioInline1" class="custom-control-input driver_shift" data-dr_settlement_id="<?=$list['dr_settlement_id']?>">
                                  <label class="custom-control-label" for="<?php echo $list['shift_id']; ?>">&nbsp</label>
                                </div>                              
                              </div>
                            </td>
                            <td><?php echo $list['shift_no']; ?></td>
                            <!-- <td><?php echo $list['car_no']; ?></td> -->
                            <td><?php echo $list['shift_date']; ?></td>
                            <td style="text-align: right;"><?php echo $list['payin_payout_amt'];?></td>
                            <td><?php echo $list['settlement_amt']; ?></td>
                            <td><?php echo $list['final_due_amt']; ?></td>
                        </tr>
          <?php       endif; ?>
          <?php     endforeach; ?>
          <?php else: ?>
              <tr><td colspan="6">No Data Available</td></tr>
        <?php endif; ?>
          </tbody>
      </table>
    </div>
  </div>
  </div>
  <div class="col-md-4">
    <div class="daily_stl_top_box">
      <!--<h4 class="cash_summary">rght side space</h4>-->
      <div class="row clearfix">
      

        
    
      </div>
      
      <div class="row clearfix">
        <div class="col-sm-12 roster_tbl_main Roster_rel">
         <h4 class="Roster_title">Roster</h4>
          <div class="table_row repeat">
            
            <div class="table-responsive custom_table_area">
              <table class="table table-striped table-bordered daily_stl_table" id="roster_table2">
                <thead>
                    <tr>
                        <th>Day</th>
                        <th>Driver Drove</th>
                        <th>Shift Rostered</th>
                    </tr>
                </thead>
                <tbody>
                  <?php if(!empty($shift_roster)): ?>
                  <?php   foreach($shift_roster as $vals): ?>
                              <tr>
                                <td><?php echo $vals['day']; ?></td>
                                <?php if($vals['shift_start_time'] =='NO'): 
                                        $class_color  = 'background:#ffb6c1';
                                      elseif($vals['shift_start_time'] =='OK'):
                                        $class_color  = 'background-color:#99E57A';
                                      else:
                                        $class_color  = '';
                                      endif;
                                ?>
                                <td style ="<?php echo $class_color; ?>"><strong><?=$vals['shift_start_time']?></strong></td>
                                <td><?php echo $vals['shift_name']; ?></td>
                              </tr>
                  <?php   endforeach; ?>
                  <?php endif; ?>                  
                </tbody>
              </table>
            </div>
          </div>
        </div>       
      </div>
    </div>
  </div>
</div>
<?php else: ?>
<div><h4> No data found</h4></div>
<?php endif;?>