<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall">All</th>
            <th>ID</th>
            <th width="10%">Source City</th>
            <th width="10%">Destination City</th>
            <th width="5%">Distance km</th>
            <th width="5%">Vehicle Type</th>
            <th width="5%">Toll</th>
            <th width="5%">Parking</th>
            <th width="8%">Minimum Charge</th>
            <th width="8%">Minimum Distance</th>
            <th>Per Km Charge</th>
            <th>From Date</th>
            <th>Start Time</th>
            <th>To Date</th>
            <th>End Time</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>

        <?php

        if($bidListing){
                $i=1;
        foreach($bidListing as $listing){ ?>
        <tr>
            <td class="center"><label class="pos-rel">
                        <input type="checkbox" rel="<?php echo $listing['route_id']; ?>" class="ace list-checkbox check" />
                            <span class="lbl"></span> </label>
                    </td>
            <td><?php echo $i;?></td>

            <td><?php echo $listing['source_city_name'];?></td>
            <td><?php echo $listing['destination_city_name'];?></td>
            <td><?php echo $listing['distance_km'];?></td>
            <td><?php echo $listing['vehicle_type'];?></td>
            <td><?php echo $listing['toll'];?></td>
            <td><?php echo $listing['parking'];?></td>
            <td><?php echo $listing['minimum_charge'];?></td>
            <td><?php echo $listing['minimum_distance'];?></td>
            <td><?php echo $listing['per_km_charge'];?></td>
            <td><?php echo date('d-m-Y', strtotime($listing['from_date']));?></td>
            <td><?php echo $listing['start_time'];?></td>
            <td><?php echo date('d-m-Y', strtotime($listing['to_date']));?></td>
            <td><?php echo $listing['end_time'];?></td>
            <td><div id="changestatus1" class="<?php if($listing['status']==1){echo 'aprovestatus';} else{echo "unaprovestatus"; }?> iconsize" name="ChangeStatus"> </div></td>
            <td>
    <div class="hidden-sm hidden-xs action-buttons43">
        <a class="red " title="Edit" href="<?php echo $this->url('bid', array('action'=>'edit-basic'),
                ['query'=>['id'=>$listing['route_id'],'city_id'=>$listing['city_distance_id']]]);?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>
             <a class="red" href="<?php echo $this->url('bid', array('action' => 'delete-bid'), array('query' => array('data' => $listing['route_id']))); ?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a>
   </div></td></tr>
        <?php $i++;} }else{?>
                <tr><td colspan="17" style="text-align: center;">No Records Found</td></tr>
        <?php }?>


    </tbody>

</table>
