  <h3><i class="fa fa-inbox"></i> <?php echo $this->translate('Bid Listing');?></h3>
  <div>
<div class="nav-tabs-custom">
    <ul class="nav nav-tabs pull-right">
        <!--<li class="pull-left header"><i class="fa fa-inbox"></i> <?php echo $this->translate('Bid Listing');?></li>-->
        <li class="pull-right header"><a href="<?php echo $this->url('bid', array('action'=>'add-new-basic'));?>" style="background: #0066cc; color: #fff; font-size: 13px; padding: 5px 10px;">Add New</a></li>
    </ul>
    <div class="tab-content">
        <div>
            <div class="listingTableContainer">
                <div class="table-responsive">
                    <table id="bid-list-tbl" class="table table-bordered with-pager table-striped" style="color:#333;">
                        <thead>
                            <tr>
                                <th>S.No</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%">Package</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;
                $maxiterations = 50;
        foreach($bidListing as $listing){
            if ($i < $maxiterations) {
            ?>
        <tr>
            <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="<?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="16" style="text-align: center;">No Records Found</td></tr>
        <?php }?>


    </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <span style="float: right;"><a href="<?php echo $this->url('bid', array('action'=>'index'));?>" style="background: #0066cc; color: #fff; font-size: 13px; padding: 5px 10px;">More</a></span>
</div>
  </div>