File: /var/www/html/taxicamera/application/views/admin/driver_settlement/ajax_driver_shift_details.php
<script src="<?=base_url('public/admin_assets/js/capture_settlement.js')?>"></script>
<script src="<?=base_url('public/admin_assets/js/capture_expense_settlement.js')?>"></script>
<script src="<?=base_url('public/admin_assets/js/capture_life_time_docs_settlement.js')?>"></script>
<script src="<?=base_url('public/admin_assets/js/shift_docs_settlement.js')?>"></script>
<style>
.roster_left_main .contentarea #photo, .roster_left_main .contentarea #photo1, .roster_left_main .contentarea #photo2, .roster_left_main .contentarea #photo3 {
height: 237px;
}
.roster_left_main .contentarea1 #photo, .roster_left_main .contentarea1 #photo1, .roster_left_main .contentarea1 #photo2, .roster_left_main .contentarea1 #photo3 {
height: 237px;
}
.contentarea3, .contentarea2{
margin-top: 20px;
}
.contentarea3 #photo, .contentarea3 #photo1, .contentarea3 #photo2, .contentarea3 #photo3, .contentarea2 #photo, .contentarea2 #photo1, .contentarea2 #photo2, .contentarea2 #photo3 {
height: 117px;
}
.recipt_img{
width: 100%;
}
.recipt_img a{
width: 100%;
display: block;
}
.recipt_img a img{
width: 100%;
height: auto;
}
.ds_td_img a{
display: inline-block;
margin-bottom: 5px;
}
</style>
<?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>
</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>Rental Amount</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-6">
<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']?>" data-bulk_settlement_flag="<?=$list['bulk_settlement_flag']?>" <?=(!empty($shift_id) && ($list['shift_id'] == $shift_id))?'checked':''?>>
<label class="custom-control-label" for="<?php echo $list['shift_id']; ?>"> </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><?=($list['dr_rental'] > 0)?$list['dr_rental']:'N/A' ?></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 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;?>