<?php
$i = 1;
if (count($vehicleList) > 0) {
    foreach ($vehicleList as $val) {
        ?>
        <div id="accordion" class="panel-group">
            <div class="panel panel-default">
                <div>
                    <h4 class="panel-title">
                        <div class="margin-top20px">
                            <div  class="mapcantiner_inner1 no-padding">
                                <div  class="carlist_box no-padding margin0">
                                    <div align="center" class="col-md-2 overviueimgcar border-rignt-carlisst"> <span class="image_box padding_margin0"> <img src="/<?php echo $val['vehicle_image']; ?>"></span> <br>
                                        <p class="font-size12px"> <?php echo $val['vehicle_type']; ?> </p></div>

                                        <div class="col-sm-10">

                                    <div align="left" class="col-md-3 padding_margin0">
                                        <div class="amenities">
                                            <ul>
                                                <li><i class="icon_pertion"></i><br>
                                                    <br>
                                                    <?php echo $val['seating_capacity']; ?></li>
                                                <li><i class="icon_lagguge"></i><br>
                                                    <br>
                                                    <?php echo $val['luggage']; ?></li>
                                                <li><i class="icon_ac"></i><br>
                                                    <br>
                                                    <?php echo $val['vehicle_ignition_type']; ?></li>
                                            </ul>
                                        </div>
                                    </div>

                                    <div align="left" class="col-md-31 overviueimg2car1"> <span class="vehicle_name">
                                            <?php
                                            if ($data['airport_transfer'] == 1) {
                                                echo $data['pickup_area'];
                                            } else {
                                                echo $data['airport'];
                                            }
                                            ?>

                                        </span><br>
                                        <span class="vehicle_name"><?php echo $data['pickup_date']; ?>/ <?php echo $data['pickup_time']; ?></span> </div>

                                    <div align="left" class="col-md-31 overviueimg2"> <span class="vehicle_name">
                                            <?php
                                            if ($data['airport_transfer'] == 1) {
                                                echo $data['airport'];
                                            } else {
                                                echo $data['drop_area'];
                                            }
                                            ?>
                                        </span><br>
                                        <span class="vehicle_name"><?php echo $data['pickup_date']; ?>/ <?php echo $data['drop_time']; ?></span> </div>

                                    <div align="left" class="col-md-2 sightmargin padding_margin0"> <span class="vehicle_name">
                                    <?php  echo isset($data['duration'])?$data['duration']:0; ?> |
                                      <?php echo isset($data['distance']) ? $data['distance']:0; ?> KM</span><br>


                                        <div class="vehicle_name pull-left"  ><i class="fa fa-inr"></i> <?php echo $val['total_price']; ?> </div><br>
                                        <div id="item_3" class="item pull-left pointer tooltip">
                                            Fare Details
                                            <div class="tooltiptext" title="Item 3 Description">
                                                <table width="90%" align="center" cellspacing="5" cellpadding="5" class="white">
                                                    <tr>
                                                        <td>Base Fare</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['base_fare']; ?></td>
                                                    </tr>
                                                    <tr>
                                                        <td>Per KM Price</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['per_km_price']; ?></td>
                                                    </tr>

                                                    <tr>
                                                        <td>Distance</td>
                                                        <td align="right"><?php echo $val['min_distance']; ?> KM</td>
                                                    </tr>

                                                    <tr>
                                                        <td>Running Amount</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['running_amt']; ?></td>
                                                    </tr>

                                                    <tr>
                                                        <td>Peak Time Price</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['peak_time_price']; ?></td>
                                                    </tr>

                                                    <tr>
                                                        <td>Night Charges</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['night_charge']; ?></td>
                                                    </tr>

                                                    <tr>
                                                        <td>Extras</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['extra_charge']; ?></td>
                                                    </tr>

                                                    <tr>
                                                        <td>Service Tax (<?php echo $val['tax_percentage']; ?>%)</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['tax_price']; ?></td>
                                                    </tr>

                                                    <?php if(isset($val['markup_base']) && $val['markup_base']==1) { ?>
                                                    <tr>
                                                        <td>Other (<?php echo $val['markup_value']; ?> <?php echo $val['markup_type']; ?>)</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['markup_price']; ?></td>
                                                    </tr>
                                                    <?php }?>

                                                    <tr>
                                                        <td>Payable Amount</td>
                                                        <td align="right"><i class="fa fa-inr"></i> <?php echo $val['total_price']; ?></td>
                                                    </tr>

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

                                    <!--<div align="left" class="col-md-31 sightmargin overviueimg2">
                                        <input type="hidden" value="11500" name="MinimumCharge">
                                    </div>-->

                                    <div class="col-sm-2 col-sm-2-select padding_margin0 margin-left20px car_select_but" align="center">
                                        <div class="pull-right padding8px">
                                            <label class="select-car">Select
                                                <input type="radio" class="vehicle-select" <?php
                                                if ($i == 1) {
                                                    echo 'checked="checked"';
                                                }
                                                ?> name="vehicleid" value="<?php echo $val['base_vehicle_id']; ?>">
                                                <span class="checkmarkSelect"></span>
                                            </label>
                                        </div>
                                    </div>

                                            </div>

                                    <div class="marginbot10 col-sm-10 no-border no-padding pull-right border-top-carlist">
                                    <div class="mapcantiner_inner1 no-padding">
                                        <div class="marginbot10 padding-bot10px">
                                            <div class="col-md-3 overviueimg2car1 icon_fair" align="left"> <a href="<?php echo $this->url('airport-transfer', array('action' => 'fare-rules'), array('query' => array('id' => $val['base_vehicle_id']))); ?>" data-target="#ajax-modal" data-toggle="modal" data-remote="true" data-keyboard="false" data-backdrop="static" class="cartypelink vehicle_name width120">Fare Rules</a> </div>
                                            <!--<div class="col-md-3 overviueimg2car1 icon_bagage" align="left"> <a href="<?php echo $this->url('airport-transfer', array('action' => 'feature'), array('query' => array('type'=>'baggage','id' => $val['base_vehicle_id']))); ?>" data-target="#ajax-modal" data-toggle="modal" data-remote="true" data-keyboard="false" data-backdrop="static" class="cartypelink vehicle_name">Baggage</a> </div>
                                            <div class="col-md-3 overviueimg2car1 icon_seating" align="left"> <a href="<?php echo $this->url('airport-transfer', array('action' => 'feature'), array('query' => array('type'=>'seating-capacity','id' => $val['base_vehicle_id']))); ?>" data-target="#ajax-modal" data-toggle="modal" data-remote="true" data-keyboard="false" data-backdrop="static" class="cartypelink vehicle_name width132">Seating Capacity</a> </div>-->
                                            <div class="col-md-3 overviueimg2car1 icon_bagage" align="left"> <a href="#" class="cartypelink vehicle_name">Meeting Point</a> </div>
                                            <div class="col-md-3 overviueimg2car1 icon_seating" align="left"> <a href="#" class="cartypelink vehicle_name width132">Cancellation Policy</a> </div>
                                            <div class="col-md-3 overviueimg2car1 icon_amenities" align="left"> <a href="<?php echo $this->url('airport-transfer', array('action' => 'amenities'), array('query' => array('id' => $val['base_vehicle_id']))); ?>" data-target="#ajax-modal" data-toggle="modal" data-remote="true" data-keyboard="false" data-backdrop="static" class="cartypelink vehicle_name">Amenities</a> </div>
                                        </div>
                                    </div>
                                    <div class="clearfix"> </div>
                                </div>

                                </div>
                                <div class="clearfix"> </div>

                            </div>
                        </div>
                    </h4>
                </div>
            </div>
        </div>
        <?php
        $i++;
    }
} else {
    ?>
    No Record Found
<?php } ?>
