
<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 Name</th>
            <th width="10%">Destination City Name</th>
            <th width="5%">Distance km</th>      
            <th width="5%">Vehicle Type</th>
            <th width="5%">Package Name</th>
            <th width="5%">Package Mode</th>
            <th width="8%">Minimum Charge</th>
            <th width="8%">Minimum Distance</th>      
            <th>Per Km Charge</th>
            <th >Start Time</th>
            <th >End Time</th>    
             <th>From Date</th>
              <th>To Date</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['package_name'];?></td>
            <td><?php echo $listing['package_mode'];?></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 $listing['start_time'];?></td>
            <td><?php echo $listing['end_time'];?></td>
            <td><?php echo date('d-m-Y', strtotime($listing['from_date']));?></td>
            <td><?php echo date('d-m-Y', strtotime($listing['to_date']));?></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="#" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a>
   </div></td></tr>
        <?php $i++;} }else{?>
                <tr><td colspan="7" style="text-align: center;">No Records Found</td></tr>                       
        <?php }?>
     

    </tbody>
    
</table>
      