<?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="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 align="left" class="col-md-2 sightmargin 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 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['drop_city']; ?></span><br>
                                        <span class="vehicle_name"><?php echo $data['drop_date']; ?>/ <?php echo $data['drop_time']; ?></span> </div>

                                    <div align="left" class="col-md-2 col-sm-2 sightmargin padding_margin0"> <span class="vehicle_name"><?php echo isset($data['duration'])?$data['duration']:''; ?> | <?php echo isset($data['distance'])?$data['distance']:''; ?> 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="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>
                                    <!--<span class="col-sm-2  padding_margin0"><br>Sale Credit: <i class="fa fa-inr"></i> 2500</span>-->
                                  <div class="marginbot10 col-sm-10 no-border no-padding height34px 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('outstation', 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('outstation', 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('outstation', 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('outstation', 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 class="col-md-31 overviueimg2car1 icon_send-quote" align="left"> <a href="#" class="cartypelink vehicle_name" data-toggle="modal" data-target="#myModal-sendQuote" style="width:132px;">Send a Quote</a> </div>
                                                        <div class="col-md-31 overviueimg2car2 icon_refer-friend" align="left"> <a href="#" class="cartypelink vehicle_name" data-toggle="modal" data-target="#myModal"> Refer a Friend</a> </div>-->


                                                    </div>
                                                </div>

                                            </div>

                                </div>

                                <div class="carlist-border-outstation" align="center"><a data-toggle="collapse" data-parent="#accordion" href="#collapseOne-<?php echo $i; ?>"><img src="/images/down_arrow.png" class="down-arrow-outstation" ></a></div>


                                <div class="clearfix"> </div>
                                <div id="collapseOne-<?php echo $i; ?>" class="panel-collapse collapse">
                                    <div >
                                        <div class="margin-top20px">
                                            <div  class="mapcantiner_inner1 no-padding margintop20 pull-left">
                                                <div class="carlist_box no-padding margin0">
                                                    <div align="center" class="col-md-2 sightmargin overviueimgcar"> <span class="image_box padding_margin0"> <img src="/images/vehicle.png"></span> <br>
                                                        <p class="font-size12px"> <?php echo $val['vehicle_type']; ?> </p></div>
                                                    <div align="left" class="col-md-2 sightmargin padding_margin0">
                                                        <div class="amenities">
                                                            <ul>
                                                                <li ><i class="icon_pertion"></i><br>
                                                                    <br>
                                                                    <?php echo $val['vehicle_capacity']; ?></li>
                                                                <li ><i class="icon_lagguge"></i><br>
                                                                    <br>
                                                                    <?php echo $val['vehicle_baggage']; ?></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 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-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['drop_city']; ?></span><br>
                                                        <span class="vehicle_name"><?php echo $data['drop_date']; ?>/ <?php echo $data['drop_time']; ?></span> </div>

                                                    <div align="left" class="col-md-2 sightmargin padding_margin0">
                                                        <div class="vehicle_name linhight18 font-size14 pull-left"  > <i class="fa fa-inr"></i> <?php echo $val['total_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>

                                                     <?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>
                                            </div>

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



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


    <div id="myModal-sendQuote" class="modal fade" role="dialog">
  <div class="modal-dialog" style="max-width:500px;">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Send a Quote</h4>
      </div>
      <div class="modal-body" style="height:190px;">
       <div class="">

  <div class="">
    <div id="home" class="tab-pane fade in active">

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

      <p>
      	<label class="col-sm-12">Email ID</label>
        <div class="col-sm-12 margin-bot5px"><textarea class="form-control" style="border: 1px solid #ccc !important;"></textarea></div>

        <div class="col-sm-6 no-padding">

        <div class="col-md-12 col-sm-12 col-xs-12 brand">

                              <span class="bcrm_checkbox">
                             <div class="title"><input value="" class="bcrm_results_filter" id="chkMaerkup" type="checkbox"> </div>
                             </span> &nbsp;
                               <span data-index="4" class="bcrm_results_filter_name">Quote with Markup  </span>     </div>
        </div>
         <div class="col-sm-6 disable_none" id="markupAmount">
         <input type="text" class="form-control" placeholder="Markup Amount" style="border: 1px solid #ccc !important;"></div>


      </p>
      <p class="col-sm-12" align="right"><a href="#" class="asregistra">Send</a></p>
    </div>

    </div>

  </div>
</div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>

  </div>
</div>
