<style>
.textwrap{
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;}
    </style>
    <div class="col-sm-12 no-padding fa-border font-size14px">
    <div class="price-list-heading">
        <div class="col-sm-4"><input type="text" id="oneway_from" class="form-control" placeholder="From City" style="color:#fff !important;" /><input type="hidden" id="oneway_from_id"/></div>
        <div class="col-sm-4"><input type="text" id="oneway_to" class="form-control" placeholder="To City" style="color:#fff !important;" /><input type="hidden" id="oneway_to_id"/></div>
        <div class="col-sm-4"><input type="button" class="btn btn-primary btn-lg search_oneway" value="Search" /></div>
    </div>
    <div class="col-lg-12 no-padding" style="overflow-y: auto;height: 244px;">
        <div id="content-1" class="content-scroler mCustomScrollbar">

<!--            <div class="price-list-row1">
                <div class="col-sm-4 col-sm-2padding5">From</div>
                <div class="col-sm-3 col-sm-2padding5">To</div>
                <div class="col-sm-3 col-sm-2padding5">Price</div>
                <div class="col-sm-2 col-sm-2padding5">Action</div>
            </div>-->

            <div class="one-way-search-data">
                <?php
                //echo '<pre>';print_r($fareList);//die();
    if(!empty($fareList) && $fareList>0){

    foreach($fareList as $val){
        $url = $this->url('outstation', ['controller' => 'index', 'action' => 'one-way'],['query'=>['city'=>$val['source_city_name'],'city_id'=>$val['source_city_id'],'drop_city'=>$val['destination_city_name'],'drop_city_id'=>$val['destination_city_id'],'start_date'=>date('d-m-Y',strtotime($val['date_from'])),'start_time'=>$val['start_time']]]);

        ?>
<div class="price-list-row2">
    <div class="col-sm-4 col-sm-2padding5 textwrap"><?php echo $val['source_city_name']; ?></div>
    <div class="col-sm-3 col-sm-2padding5 textwrap"><?php echo $val['destination_city_name']; ?></div>
    <div class="col-sm-3 col-sm-2padding5 textwrap"><i class="fa fa-inr"></i> <?php echo $val['minimun_charge']; ?></div>
    <div class="col-sm-2 col-sm-2padding5 textwrap" 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 } ?>




        </div>
    </div>
</div>
