| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/application/views/scripts/flight-new/ |
Upload File : |
<?php
//ini_set("display_errors", 0);
$FlightBookingData = $this->Data;
$CurrencyRate = $this->CurrencyRate;
$CurrencyTitle = $this->CurrencyTitle;
$SelectedMealSessionNew = $this->SelectedMealSessionNew;
$SelectedBaggSessionNew = $this->SelectedBaggSessionNew;
$selectedSeatSession = $this->selectedSeatSession;
$sessionFlightSearchParams = $this->sessionFlightSearchParams;
$interNationalSearch = $sessionFlightSearchParams['interNationalSearch'];
$route = $sessionFlightSearchParams['route'];
$ICSourceSysId = isset($FlightBookingData[0]['ICSourceSysId']) ? $FlightBookingData[0]['ICSourceSysId'] : 0;
$BagPrice = 0;
$InbBagPrice = 0;
$MealPrice = 0;
$InbMealPrice = 0;
$SeatPrice = 0;
if ($SelectedBaggSessionNew) {
foreach ($SelectedBaggSessionNew as $values) {
foreach ($values as $val) {
$BagPrice += $val['Price'];
}
}
}
if ($SelectedMealSessionNew) {
foreach ($SelectedMealSessionNew as $values) {
foreach ($values as $val) {
$MealPrice += $val['Price'];
}
}
}
if ($selectedSeatSession) {
foreach ($selectedSeatSession as $values) {
foreach ($values as $val) {
$SeatPrice += $val['amount'];
}
}
}
$MealFare = ($MealPrice + $InbMealPrice);
$BaggFare = ($BagPrice + $InbBagPrice);
$showintax = isset($FlightBookingData[0]['FairRules']['showintax']) ? $FlightBookingData[0]['FairRules']['showintax'] : 0;
$DiscountCoupon = isset($FlightBookingData[0]['FairRules']['DiscountCoupon']) ? $FlightBookingData[0]['FairRules']['DiscountCoupon'] : 0;
$Currency = isset($FlightBookingData[0]['FairRules']['Currency']) ? $FlightBookingData[0]['FairRules']['Currency'] : '';
if (!empty($Currency)) {
$CurrencyTitle = $Currency;
}
// echo '<pre>';
// print_r(($FlightBookingData));
// echo '</pre>';
?>
<link href="<?php echo $this->baseUrl('public/jquery-ui.css'); ?>" rel="stylesheet">
<script src="<?php echo $this->baseUrl('public/js/jquery-ui-1.11.0.js'); ?>"></script>
<script type="text/javascript">
$(function() {
$("#accordion").accordion();
$("#accordionLoad").accordion();
$("#accordionNew").accordion({
header: "> div > h3"
}).sortable({
axis: "y",
handle: "h3",
stop: function(event, ui) {
// IE doesn't register the blur when sorting
// so trigger focusout handlers to remove .ui-state-focus
ui.item.children("h3").triggerHandler("focusout");
// Refresh accordion to handle new order
$(this).accordion("refresh");
}
});
});
</script>
<h1 class="salesummary_title">Sale Summary</h1>
<div class="enquireMaincart" id="Preloader">
<div class="cartTypeName">Fare / Pax Type</div>
<div class="cartptro">
<div id="accordionLoad">
<h3 style="padding-left:2.2em !important; padding-right:0px !important;"><img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /> <i class="fa fa-long-arrow-right"></i> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></h3>
<div style="padding: 0 0px !important;">
<table class="table no-margin tablestyle">
<tbody>
<tr class="alert alert-graylight">
<td class="small smallbold table_paddingrght"> </td>
<td class="small smallbold text-right table_paddingrght">Published</td>
<td class="small smallbold text-right table_paddingrght">Offered</td>
</tr>
<tr>
<td class="table_paddingrght"><strong><img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></strong></td>
<td class="text-right table_paddingrght"><img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
<td class="text-right table_paddingrght"><img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
<tr>
<td class="table_paddingrght"><strong>Total:</strong></td>
<td class="text-right table_paddingrght"><img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
<td class="text-right table_paddingrght total-"> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="cartTypeName">Fee Breakup</div>
<div class="cartptro">
<table class="table no-margin tablestyle">
<tbody>
<tr class="tabletopborder">
<td>Total Off. Fare</td>
<td class="text-right grandtotal"><img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
<tr>
<td class="cancellation_text2">Airline GST</td>
<td class="text-right grandtotal"> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
<tr>
<td class="cancellation_text">Management Fee</td>
<td class="text-right grandtotal"> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
<tr>
<td class="cancellation_text">Fuel Surcharge</td>
<td class="text-right grandtotal"> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
<tr>
<td class="cancellation_text">Other Taxes</td>
<td class="text-right grandtotal"> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
<tr>
<td class="cancellation_text">Service Fee</td>
<td class="text-right grandtotal"> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
<tr>
<td class="cancellation_text">GST</td>
<td class="text-right grandtotal"> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
<tr>
<td class="cancellation_text" style="font-size: 13px; font-weight:bold;">Total</td>
<td class="text-right grandtotal" style="font-size: 13px; font-weight:bold;"> <img src="<?php echo $this->baseUrl('public/assets/images/ellipsis.gif'); ?>" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ng-repeat="(index, item) in arrFlightData" -->
<div class="enquireMaincart" id="Afterloader" ng-if="farequoteLoading">
<div class="cartTypeName">Fare / Pax Type</div>
<div class="cartptro">
<div id="accordionNew">
<div class="group" ng-repeat="(index, item) in arrFlightData">
<h3 style="padding-left:2.2em !important; padding-right:0px !important;"> {{item.SourceAirportCode}} <i class="fa fa-long-arrow-right"></i> {{item.DestAirportCode}}</h3>
<div style="padding: 0 0px !important;">
<table class="table no-margin tablestyle">
<tbody>
<tr class="alert alert-graylight">
<td class="small smallbold table_paddingrght">Pax Type</td>
<td class="text-right small smallbold table_paddingrght">Base Fare ({{item.FairRules.Currency}})</td>
<td class="text-right small smallbold table_paddingrght">Total ({{item.FairRules.Currency}})</td>
</tr>
<tr ng-repeat="(keys, value) in item.FairRules.FareBreakdown">
<td class="table_paddingrght">{{value.PaxType}} x {{value.PassengerCount}}</td>
<td class="text-right table_paddingrght">{{value.BaseFare / value.PassengerCount | number:2}}</td>
<td class="text-right table_paddingrght">{{value.BaseFare | number:2}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php
$OtherCharges = ($TotalExtraMarkup + $TotalExtraMarkupOnGST);
$TotalExtraCharge = ($TotalExtraMarkup + $TotalExtraMarkupOnGST);
if ($showintax == 1) {
$OtherCharges = $OtherCharges;
$ExtraMarkup = 0;
$ExtraMarkupOnGST = 0;
$TotalExtraProfit = $TotalExtraCharge;
} else {
$ExtraMarkup = $TotalExtraMarkup;
$ExtraMarkupOnGST = $TotalExtraMarkupOnGST;
$OtherCharges = 0;
$TotalExtraProfit = $ExtraMarkup;
}
?>
<div class="cartTypeName">Total Fare</div>
<div class="cartptro">
<table class="table no-margin tablestyle">
<tbody>
<tr class="tabletopborder">
<td>Total Base Fare</td>
<td class="text-right grandtotal">{{fareData.Currency}} {{fareData.BaseFare | number:2}}</td>
</tr>
<tr>
<td class="cancellation_text2">Airline Taxes & Fee</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{fareData.AirlineTax | number:2}}</td>
</tr>
<tr>
<td class="cancellation_text">Fuel Surcharge</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{fareData.FuelSurcharge | number:2}}</td>
</tr>
<tr>
<td class="cancellation_text">Other Charges </td>
<td class="text-right grandtotal table_paddingrght"><?= $CurrencyTitle ?> <?= number_format((($TotalGTXCharges + $Total_OT + $Total_YR + $Total_MFT + $OtherCharges) * $CurrencyRate), 2) ?></td>
</tr>
<!-- <tr>
<td class="cancellation_text">GTX Charge</td>
<td class="text-right grandtotal table_paddingrght"><?= $CurrencyTitle ?> <?= number_format((($TotalGTXCharges) * $CurrencyRate), 2) ?></td>
</tr> -->
<tr>
<td class="cancellation_text">Service Fee</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{fareData.FixedMarkUp | number:2}}</td>
</tr>
<tr>
<td class="cancellation_text">{{(fareData.Currency == 'INR')?'GST':'VAT'}}</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{fareData.GSTOnMarkUp | number:2}}</td>
</tr>
<?php if ($DiscountCoupon == 1) { ?>
<tr>
<td class="cancellation_text">Discount Coupon</td>
<td class="text-right grandtotal table_paddingrght"> - <?= $CurrencyTitle ?> <?= number_format((($DiscountValue_Total) * $CurrencyRate), 2) ?></td>
</tr>
<?php } ?>
<tr ng-if="SelectedMealPrice > 0">
<td class="cancellation_text">Meal Charge</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{SelectedMealPrice}}</td>
</tr>
<tr ng-if="SelectedBagPrice > 0">
<td class="cancellation_text">Baggage Charge</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{SelectedBagPrice}}</td>
</tr>
<tr ng-if="SelectedSeatPrice > 0">
<td class="cancellation_text">Seat Charge</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{SelectedSeatPrice}}</td>
</tr>
<tr>
<td class="cancellation_text">Commision Earn</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{fareData.CommissionEarned + fareData.TDSEarn | number:2}}</td>
</tr>
<!-- <tr>
<td class="cancellation_text">Discount</td>
<td class="text-right grandtotal table_paddingrght"> - <?= $CurrencyTitle ?> <?= number_format((($TotalcustomerDiscount) * $CurrencyRate), 2) ?></td>
</tr> -->
<tr>
<td class="cancellation_text">Total Profit</td>
<td class="text-right grandtotal table_paddingrght">{{fareData.Currency}} {{(fareData.FixedMarkUp + fareData.GSTOnMarkUp + fareData.CommissionEarned + fareData.TDSEarn) | number:2}}</td>
</tr>
<tr>
<td class="cancellation_text" style="font-size: 13px; font-weight:bold;">My Cost</td>
<td class="text-right grandtotal table_paddingrght" style="font-size: 13px; font-weight:bold;">{{fareData.Currency}} {{((fareData.TotalPay + SelectedMealPrice + SelectedBagPrice + SelectedSeatPrice) - (fareData.FixedMarkUp + fareData.GSTOnMarkUp + fareData.CommissionEarned + fareData.TDSEarn)) | number:2}}</td>
</tr>
<tr>
<td class="cancellation_text" style="font-size: 13px; font-weight:bold;">Sale Price</td>
<td class="text-right grandtotal table_paddingrght" style="font-size: 13px; font-weight:bold;">{{fareData.Currency}} {{fareData.TotalPay + SelectedMealPrice + SelectedBagPrice + SelectedSeatPrice | number:2}}</td>
</tr>
</tbody>
</table>
</div>
</div>