<?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 style="margin-top:20px;" >
                            <div style="padding:0 !important;" class="mapcantiner_inner1">
                                <div style="margin:0 0 0; padding:0 0 0;" class="">
                                    <div align="center" class="col-md-2 sightmargin overviueimgcar"> <span class="image_box padding_margin0"> <img src="/images/vehicle.png"></span> <br>
                                        <p style="font-size:12px;"> <?php echo $val['vehicle_type']; ?> </p></div>
                                    <div align="left" class="col-md-2 sightmargin padding_margin0">
                                        <div class="amenities">
                                            <ul>
                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_pertion"></i><br>
                                                    <br>
                                                    <?php echo $val['vehicle_capacity']; ?></li>
                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_lagguge"></i><br>
                                                    <br>
                                                    <?php echo $val['vehicle_baggage']; ?></li>
                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_ac"></i><br>
                                                    <br>
                                                    <?php echo $val['vehicle_ignition_type']; ?></li>
                                            </ul>
                                        </div>
                                    </div>
                                    <div align="left" class="col-md-31 sightmargin overviueimg2car1"> <span class="vehicle_name"><?php echo $data['pickup_city']; ?></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 sightmargin overviueimg2"> <span class="vehicle_name"><?php echo $data['pickup_city']; ?></span><br>
                                        <span class="vehicle_name"><?php echo $data['return_date']; ?>/ <?php echo $data['return_time']; ?></span> </div>

                                    <div align="left" style="line-height:" class="col-md-2 sightmargin padding_margin0"> <span class="vehicle_name"><?php echo isset($data['duration'])?$data['duration']:''; ?> | <?php echo (isset($data['distance'])?$data['distance']:0)*2; ?> KM</span><br>
                                        <div style="float:left;" class="vehicle_name"  >&#x20b9;<?php echo $val['total_price']; ?> </div><br>
                                        <div id="item_3" class="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 class="col-sm-2 padding_margin0 margintop10" align="center">
                                        <span href="#" class="btn btn-lg car_select_but">
                                            <input type="radio" class="vehicle-select" <?php
                                            if ($i == 1) {
                                                echo 'checked="checked"';
                                            }
                                            ?> name="vehicleid" value="<?php echo $val['base_vehicle_id']; ?>" style="height:10px; width:10px;">
                                            Select</span>
                                    </div>

                                </div>
                                <div style="width:100%; float:left; border-top:1px dotted #ccc;" align="center"><a data-toggle="collapse" data-parent="#accordion" href="#collapse-<?php echo $i; ?>"><img src="/images/down_arrow.png" style="width:30px; margin-top: -16px;"></a></div>

                                <div class="clearfix"> </div>
                                <div id="collapse-<?php echo $i; ?>" class="panel-collapse collapse">
                                    <div >
                                        <div style="margin-top:20px;" >
                                            <div style="padding:0 !important;" class="mapcantiner_inner1">
                                                <div style="margin:0 0 10px; padding:0 0 10px;" class="testimonial_box">
                                                    <div align="center" class="col-md-2 sightmargin overviueimgcar"> <span class="image_box padding_margin0"> <img src="/images/vehicle.png"></span> <br>
                                                        <p style="font-size:12px;"> <?php echo $val['vehicle_type']; ?> </p></div>
                                                    <div align="left" class="col-md-2 sightmargin padding_margin0">
                                                        <div class="amenities">
                                                            <ul>
                                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_pertion"></i><br>
                                                                    <br>
                                                                    <?php echo $val['vehicle_capacity']; ?></li>
                                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_lagguge"></i><br>
                                                                    <br>
                                                                    <?php echo $val['vehicle_baggage']; ?></li>
                                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_ac"></i><br>
                                                                    <br>
                                                                    <?php echo $val['vehicle_ignition_type']; ?></li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                    <div align="left" class="col-md-31 sightmargin overviueimg2car1"> <span class="vehicle_name"><?php echo $data['pickup_city']; ?></span><br>
                                                        <span class="vehicle_name"><?php echo $data['pickup_date']; ?>/ <?php echo $data['pickup_time']; ?></span> </div>


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


                                                    </div>

                                                    <div align="left" class="col-md-31 sightmargin overviueimg2"> <span class="vehicle_name"><?php echo $data['drop_city']; ?></span><br>
                                                        <span class="vehicle_name"><?php echo $data['return_date']; ?>/ <?php echo $data['return_time']; ?></span> </div>





<!--                                                    <div align="left" style="line-height:" class="col-md-2 sightmargin padding_margin0">
                                                        <div style="line-height:18px; font-size:14px; float:left;" class="vehicle_name"  > &#x20b9;<?php echo $val['total_show_price']; ?> </div><br><br>

                                                        <div id="item_3" class="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>

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

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



                                                </div>
                                            </div>

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

                                            <div style="padding:0 !important;" class="mapcantiner_inner1">
                                                <div style="margin:0 0 10px; padding:0 0 10px;" class="testimonial_box">
                                                    <div align="center" class="col-md-2 sightmargin overviueimgcar"> <span class="image_box padding_margin0"> <img src="/images/vehicle.png"></span> <br>
                                                        <p style="font-size:12px;"> <?php echo $val['vehicle_type']; ?> </p></div>
                                                    <div align="left" class="col-md-2 sightmargin padding_margin0">
                                                        <div class="amenities">
                                                            <ul>
                                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_pertion"></i><br>
                                                                    <br>
                                                                    <?php echo $val['vehicle_capacity']; ?></li>
                                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_lagguge"></i><br>
                                                                    <br>
                                                                    <?php echo $val['vehicle_baggage']; ?></li>
                                                                <li style="float:left; line-height:13px;  padding: 0 0 0 5px; text-align:center;"><i class="icon_ac"></i><br>
                                                                    <br>
                                                                    <?php echo $val['vehicle_ignition_type']; ?></li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                    <div align="left" class="col-md-31 sightmargin overviueimg2car1"> <span class="vehicle_name"><?php echo $data['drop_city']; ?></span><br>
                                                        <span class="vehicle_name"><?php echo $data['return_date']; ?>/ <?php echo $data['return_time']; ?></span> </div>


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


                                                    </div>

                                                    <div align="left" class="col-md-31 sightmargin overviueimg2"> <span class="vehicle_name"><?php echo $data['pickup_city']; ?></span><br>
                                                        <span class="vehicle_name"><?php echo $data['return_date']; ?>/ <?php echo $data['return_time']; ?></span> </div>





<!--                                                    <div align="left" style="line-height:" class="col-md-2 sightmargin padding_margin0">
                                                        <div style="line-height:18px; font-size:14px; float:left;" class="vehicle_name"  > &#x20b9;<?php echo $val['total_show_price']; ?> </div><br><br>

                                                     <div id="item_3" class="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>

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

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


                                                </div>
                                            </div>
                                            <div class="clearfix"> </div>
                                            <div  style="margin-bottom:10px !important; background:none !important; border:none !important; padding:0;">
                                                <div class="mapcantiner_inner1" style="padding:0 !important;">
                                                    <div class="" style="margin:0 0 10px; padding:0 0 10px;">
                                                        <div class="col-md-3 sightmargin overviueimg2car1 icon_fair" align="left"> <a href="<?php echo $this->url('outstation', ['action' => 'fare-rules']); ?>" 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 sightmargin overviueimg2car1 icon_bagage" align="left"> <a href="<?php echo $this->url('outstation', ['action' => 'baggage']); ?>" 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 sightmargin overviueimg2car1 icon_seating" align="left"> <a href="<?php echo $this->url('outstation', ['action' => 'seating-capacity']); ?>" 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 sightmargin overviueimg2car1 icon_amenities" align="left"> <a href="<?php echo $this->url('outstation', ['action' => 'amenities']); ?>" 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>
                                </div>
                            </div>
                        </div>
                    </h4>
                </div>
            </div>
        </div>
        <?php
        $i++;
    }
} else {
    ?>
    No Record Found
<?php } ?>