<?php
//echo '<pre>';print_r($fareList);die();

?>
<?php
    if(!empty($fareList) && $fareList>0){
        $val  =   current($fareList);
        $url = $this->url('outstation', ['controller' => 'index', 'action' => 'one-way'],['query'=>['city'=>$data['from_city'],'city_id'=>$data['from_city_id'],'drop_city'=>$data['to_city'],'drop_city_id'=>$data['to_city_id'],'start_date'=>date('d-m-Y',strtotime($val['start_date'])),'start_time'=>$val['start_time']]]);

        ?>
<div class="price-list-row2">
    <div class="col-sm-4 col-sm-2padding5"><?php echo $data['from_city']; ?></div>
    <div class="col-sm-3 col-sm-2padding5"><?php echo $data['to_city']; ?></div>
    <div class="col-sm-3 col-sm-2padding5"><i class="fa fa-inr"></i> <?php echo $val['total_price']; ?></div>
    <div class="col-sm-2 col-sm-2padding5" style="padding-left: 0px !important;"><a href="<?php echo $url;?>" class="btn btn-danger">Book</a></div>
</div>
    <?php  } else { ?>
<div class="price-list-row2"><div class="col-sm-12 col-sm-2padding5" style="text-align: center;">No Fare List Found</div></div>
    <?php } ?>

