<?php
 if($paymentData['master_package_mode_id']==1){
     $distancefare = '';
     $hourlyfare = 'display-none';
 }
 if($paymentData['master_package_mode_id']==2){
     $hourlyfare = '';
     $distancefare='display-none';
 }
 if($paymentData['master_package_mode_id']==3){
       $hourlyfare = '';
       $distancefare = '';
 }
 if($paymentData['master_package_mode_id']==4){
     $distancefare = '';
     $hourlyfare = 'display-none';
 }
?>
<div class="col-md-3 banner-bottom-grid widthpercent20 pull-right">
    <div class="top-destinations-grids margin0">
        <div class="top-destinations-bottom padding_margin0">
            <div class="td-grids">
                <div class="left-div-form border_bottom">
                    <h4>Payment Detail</h4>
                </div>
                <form id="payment-detail-form">
                    <div class="infopay">
                        <div class="left-div-form">
                            <div class="title">Base Fare</div>
                            <div class="price">
                                <span class=""> </span><span class="base_fare"><?php echo $paymentData['base_fare']; ?></span>
                                <input type="hidden" name="base_fare" id="base_fare" value="<?php echo $paymentData['base_fare']; ?>">
                            </div>
                        </div>
                        <div class="left-div-form distance-fare <?php echo $distancefare;?>" >
                            <div class="title">Distance</div>
                            <div class="price"><span class="min-distance"><?php echo $paymentData['min_distance']; ?></span> Km</div>
                            <input type="hidden" name="min_distance" id="min-distance" value="<?php echo $paymentData['min_distance']; ?>">
                        </div>

                        <div class="left-div-form hourly-fare <?php echo $hourlyfare;?>">
                            <div class="title">Hour</div>
                             <div class="price"><span class="min-hour"><?php echo $paymentData['min_pkg_hr']; ?></span> Hrs</div>
                             <input type="hidden" name="min_pkg_hr" id="min-hour" value="<?php echo $paymentData['min_pkg_hr']; ?>">
                        </div>

                        <div class="left-div-form hourly-fare <?php echo $hourlyfare;?>" >
                            <div class="title">Per Hour Price</div>
                            <div class="price"><span class="per-km-price"><?php echo (isset($paymentData['per_hr_charge']))?$paymentData['per_hr_charge']:0; ?></span></div>
                            <input type="hidden" name="per_hr_charge" id="per-hour-price" value="<?php echo (isset($paymentData['per_hr_charge']))?$paymentData['per_hr_charge']:0; ?>">
                        </div>

                        <div class="left-div-form distance-fare <?php echo $distancefare;?>" >
                            <div class="title">Per Km Price</div>
                            <div class="price"><span class="per-km-price"><?php echo $paymentData['per_km_price']; ?></span></div>
                            <input type="hidden" name="per_km_price" id="per-km-price" value="<?php echo $paymentData['per_km_price']; ?>">
                        </div>
                        <div class="clear"></div>
                        <div class="left-div-form">
                            <div class="title red_text" title="Only for booking amount">Running Amount</div>
                            <div class="price red_text" title="Only for booking amount"><span class="WebRupee"></span><span class="running_amt"> <?php echo $paymentData['running_amt']; ?></span> </div>
                            <input type="hidden" name="running_amt" id="running_amt" value="<?php echo $paymentData['running_amt']; ?>">
                        </div>
                        <div class="left-div-form">
                            <div class="title">Peak Time Price</div>
                            <div class="price"><span class="WebRupee"> </span><span class="peal_time_price"><?php echo $paymentData['peak_time_price']; ?></span></div>
                            <input type="hidden" name="peal_time_price" id="peal_time_price" value="<?php echo $paymentData['peal_time_price']; ?>">
                        </div>

                        <div class="left-div-form">
                            <div class="title">Night Charges</div>
                            <div class="price"><span class="WebRupee"> </span><span class="night_charge"><?php echo $paymentData['night_charge']; ?></span></div>
                            <input type="hidden" name="night_charge" id="night_charge" value="<?php echo $paymentData['night_charge']; ?>">
                        </div>

                        <div class="left-div-form">
                            <div class="title">Extras</div>
                            <div class="price"><span class="WebRupee"> </span><span class="extra_charge"><?php echo $paymentData['extra_charge']; ?></span></div>
                            <input type="hidden" name="extra_charge" id="extra_charge" value="<?php echo $paymentData['extra_charge']; ?>">
                        </div>

                        <div class="left-div-form">
                            <div class="title">Tax (<span id="st_text" class="tax_percentage"><?php echo $paymentData['tax_percentage']; ?></span>%)</div>
                            <div class="price"> <span class="tax_price"><?php echo $paymentData['tax_price']; ?></span> </div>
                            <input type="hidden" name="tax_percentage" id="tax_percentage" value="<?php echo $paymentData['tax_percentage']; ?>">
                            <input type="hidden" name="tax_price" id="tax_price" value="<?php echo $paymentData['tax_price']; ?>">
                        </div>

                        <?php if(isset($paymentData['markup_base']) && $paymentData['markup_base']==1) { ?>
                        <div class="left-div-form">
                            <div class="title">Other Charge (<span id="st_text" class="markup-value"><?php echo $paymentData['markup_value']; ?></span> <span class="markup-type"><?php echo $paymentData['markup_type']; ?></span>)</div>
                            <div class="price"> <span class="markup-price"><?php echo $paymentData['markup_price']; ?></span> </div>
                            <input type="hidden" name="markup_type" id="markup-type" value="<?php echo $paymentData['markup_type']; ?>">
                            <input type="hidden" name="markup_value" id="markup-value" value="<?php echo $paymentData['markup_value']; ?>">
                            <input type="hidden" name="markup_price" id="markup-price" value="<?php echo $paymentData['markup_price']; ?>">
                            <input type="hidden" name="markup_base" id="markup-base" value="<?php echo $paymentData['markup_base']; ?>">
                        </div>
                        <?php }?>

                        <div class="clear"></div>
                        <div class="left-div-form">
                            <div class="title">Payable Amount</div>
                            <div class="price"> <i class="<?php echo $currIcon; ?>"></i> <span class="total_price"><?php echo $paymentData['total_price']; ?></span><span id="usdvalue"></span> </div>
                            <input type="hidden" name="total_price" id="total_price" value="<?php echo $paymentData['total_price']; ?>">
                        </div>

                        <div class="left-div-form">
                            <div class="title"><span class="WebRupee"><b>Discount</b></span></div>
                            <div class="price"><span class="WebRupee"><span class="WebRupee">  </span></span><span class="total_discount"><?php echo $paymentData['total_discount']; ?></span></div>
                            <input type="hidden" name="total_discount" id="total_discount" value="<?php echo $paymentData['total_discount']; ?>">
                        </div>
                        <div class="left-div-form">
                            <div class="title"><span class="WebRupee"><b>Total Charge</b></span></div>
                            <div class="price"><span class="WebRupee"><span class="WebRupee"> <i class="<?php echo $currIcon; ?>"></i> </span></span><span class="total_charge"><?php echo $paymentData['total_charge']; ?></span></div>
                            <input type="hidden" name="total_charge" id="total_charge" value="<?php echo $paymentData['total_charge']; ?>">
                        </div>

                        <div class="left-div-form">
                            <div class="title widthpercent100">
                                <div></div>
                            </div>
                            <div class="title widthpercent100 margin-top-5" align="center">
                                <div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
                <div class="clearfix"> </div>
            </div>
        </div>
    </div>
</div>