| 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/emails/ |
Upload File : |
<?php
$visaDetails = $this->VisaDetail;
$getFlightDetail = $this->getFlightDetail;
$BusPickupLocation = $this->BusPickupLocation;
$PackageBusData = $this->PackageBusData;
$isDisplayTax = $this->isDisplayTax;
$OtherServiceData = $this->otherServiceDetails;
$allowimage = isset($this->allowimage) ? (int) $this->allowimage : 1;
$isPdf = isset($this->isPdf) ? (int) $this->isPdf : 0;
$width1 = '58%';
$width2 = '42%';
if ($isPdf == 1) {
$width1 = '50%';
$width2 = '50%';
}
$emailTemplateColor = $this->templateColor;
$EconomyMaskArr = array(0 => 12, 14);
$miscData = (in_array($this->EconomyMask, $EconomyMaskArr)) ? 1 : '';
$agencyId = $this->agentDetails['AgencySysId'];
if ($emailTemplateColor == 'yellow') {
$headingBgColor = "#ffe018";
$fontColor = '#000';
$headingBgColor2 = "#ffe018";
$fontColor2 = "#000";
$tablheadingBg = '#fffac7';
$fontColortableHeadingTxt = "#000";
$buttonBgColr = '#808000';
$borderLeft = '#ffe018';
} elseif ($emailTemplateColor == 'green') {
$headingBgColor = "#a4c736";
$fontColor = '#FFF';
$headingBgColor2 = "#a4c736";
$fontColor2 = "#FFF";
$tablheadingBg = '#b3d54a';
$fontColortableHeadingTxt = "#FFF";
$buttonBgColr = '#a4c736';
$borderLeft = '#a4c736';
} elseif ($emailTemplateColor == 'red') {
$headingBgColor = "#c70039";
$fontColor = '#FFF';
$headingBgColor2 = "#c70039";
$fontColor2 = "#FFF";
$tablheadingBg = '#818181';
$fontColortableHeadingTxt = "#FFF";
$buttonBgColr = '#e4011c';
$borderLeft = '#c70039';
} elseif ($emailTemplateColor == 'blue') {
$headingBgColor = "#005899";
$fontColor = '#FFF';
$headingBgColor2 = "#005899";
$fontColor2 = "#FFF";
$tablheadingBg = '#e8f0f6';
$fontColortableHeadingTxt = "#212529";
$buttonBgColr = '#005899';
$borderLeft = '#005899';
} elseif ($emailTemplateColor == 'purple') {
$headingBgColor = "#670f97";
$fontColor = '#FFF';
$headingBgColor2 = "#941bd6";
$fontColor2 = "#FFF";
$tablheadingBg = '#ececec';
$fontColortableHeadingTxt = "#222";
$buttonBgColr = '#670f97';
$borderLeft = '#670f97';
} elseif ($emailTemplateColor == 'orange') {
$headingBgColor = "#eb5309";
$fontColor = '#FFF';
$headingBgColor2 = "#eb5309";
$fontColor2 = "#FFF";
$tablheadingBg = '#ff8043';
$fontColortableHeadingTxt = "#FFF";
$buttonBgColr = '#30b644';
$borderLeft = '#eb5309';
} elseif ($emailTemplateColor == 'Tripjack') {
$headingBgColor = "#ef7f21";
$fontColor = '#FFF';
$headingBgColor2 = "#ef7f21";
$fontColor2 = "#FFF";
$tablheadingBg = '#5a5a5d';
$fontColortableHeadingTxt = "#FFF";
$buttonBgColr = '#ef7f21';
$borderLeft = '#ef7f21';
} else {
$headingBgColor = "#c70039";
$fontColor = '#FFF';
$headingBgColor2 = "#222";
$fontColor2 = "#FFF";
$tablheadingBg = '#666';
$fontColortableHeadingTxt = "#FFF";
$buttonBgColr = '#c70039';
$borderLeft = '#777';
}
$isFixedDeparturePackage = '';
if ($this->IsFixedDeparturePackage == 1) {
$isFixedDeparturePackage = "(Fixed Departure)";
}
$guideArray = $miscArray = $AddonVisaServiceDetails = array();
if ($this->EconomyMask == 6) {
$g = $m = 0;
foreach ($this->otherServiceDetails as $otherServices) {
foreach ($this->getDaywiseMergedActSightseeingArr as $key => $getDaywiseMergedActSightseeing) {
if ($otherServices['ServiceType'] == 6) {
if ($otherServices['ItenarySysId'] == $this->itenDetailArr[$key]['TPIntSysId']) {
$guideArray[$key][$g] = $otherServices;
$g++;
}
} else {
if ($otherServices['ItenarySysId'] == $this->itenDetailArr[$key]['TPIntSysId']) {
if ($otherServices['ServiceType'] != 5) {
$miscArray[$key][$m] = $otherServices;
if ($otherServices['ServiceType'] != 41) {
$miscOtherServieTitle[$m] = $otherServices['ServiceTitle'];
}
$m++;
}
}
}
}
if ($otherServices['IsIncludedInPackage'] != 1) {
$AddonOtherServiceDetails[] = $otherServices;
}
if ($otherServices['ServiceType'] == 9) {
$AddonVisaServiceDetails[] = $otherServices;
}
}
} else {
$AddonOtherServiceDetails = $OtherServiceData;
}
//echo "<pre>"; print_r($miscArray); die;
$nOptSight = array();
foreach ($this->OptionalSightseeing as $optSight) {
$nOptSight[] = $optSight['Type'];
}
$AgencySysId = $this->AgencySysId;
$IsB2BCustomer = $this->IsB2BCustomer;
if ($this->BusinessType == 1) {
$IsB2BCustomer = $this->IsB2BCustomer = 0;
}
if ($IsB2BCustomer == 3) {
$IsB2BCustomer = 0;
}
$GSTApplicable = $this->GSTApplicable;
$objGstRates = new Travel_Model_TblGstRates();
$arrGSTRatesInfo = $objGstRates->getGSTTypeAndRates(9, $GSTApplicable, 0, 0);
$gstAmount = $arrGSTRatesInfo['gstAmount'];
$TaxRate = $arrGSTRatesInfo['TaxRate'];
$TaxType = $arrGSTRatesInfo['TaxType'];
$TaxTypeTitle = (isset($arrGSTRatesInfo['TaxTypeTitle']) && trim($arrGSTRatesInfo['TaxTypeTitle']) != '') ? $arrGSTRatesInfo['TaxTypeTitle'] : '';
$IsDefaultId = $arrGSTRatesInfo['IsDefaultId'];
$actualPricewithout = (float) $this->ExtraMarkUp;
$actualPriceWithOutMarkup = $totalGstList = 0;
if ($actualPricewithout > 0) {
if ($TaxType == 1 || $TaxType == 2) {
$totalGstList = $actualPricewithout - (100 * (float) $actualPricewithout) / (100 + $TaxRate);
}
$actualPriceWithOutMarkup = $actualPricewithout - $totalGstList;
}
$this->isDisplayB2BContent = 1;
//echo "<pre>";print_r($getFlightDetail);die;
//if ($this->PackSpecType == 4) {
// $B2bText = 'CLICK HERE to view more details. Kindly delete this line before sharing with the client.';
//} else {
if ($this->isDisplayB2BContent == 0 || $IsB2BCustomer == 0) {
$B2bText = 'CLICK HERE to view more details. Kindly delete this line before sharing with the client.';
} else {
$B2bText = '';
}
//}
$ExclTaxTypeTitle = $IncTaxTypeTitle = '';
if ($TaxTypeTitle != '') {
if ($IsDefaultId == 4 || $IsDefaultId == 3) {
$gstText = '';
$this->IsShareWithGST = 1;
} else if ($IsDefaultId == 5) {
$gstText = ' (Excl. ' . $TaxTypeTitle . ') ';
} else {
if ($TaxType == 3 && $TaxRate == 0) {
// $gstText = ($this->IsShareWithGST == 1) ? ' (Incl. ' . $TaxTypeTitle . ') ' : ' (Excl. ' . $TaxTypeTitle . ') ';
$gstText = '';
} else {
$gstText = ' (Incl. ' . $TaxTypeTitle . ') ';
}
}
$ExclTaxTypeTitle = ' (Excl. ' . $TaxTypeTitle . ')';
$IncTaxTypeTitle = ' (Incl. ' . $TaxTypeTitle . ')';
}
if ($IsDefaultId == 4 || $IsDefaultId == 3) {
$gstText = '';
$this->IsShareWithGST = 1;
}
$GSTContent = '';
$packageText = ($miscData == 1) ? '' : 'Package';
if ($this->PackSpecType == 4 && $this->IsDayWiseItinerary == 0) {
$ITINERARYDETAILS = ($miscData == 1) ? 'DETAILS' : 'Itinerary Details';
$SIGHTSEEINGLOCATIONS = 'Sightseeing Locations';
} else {
$ITINERARYDETAILS = 'Additional Information';
$SIGHTSEEINGLOCATIONS = 'Itinerary Details';
}
//echo $ITINERARYDETAILS;die;
function moneyFormatIndia($number,$Currency = 'INR')
{
$num = floor($number);
$decimalvalue = '';
if(($number - $num) > 0.9){
$num = ceil($number);
}else if(($number - $num) < 0.1){
$num = floor($number);
}else{
$decimalvalue = ($number - $num) > 0.1 ? substr(ltrim(($number - $num), 0), 0, 3) : '';
}
$CommaDigit = 2;
$UnitZero = "0";
if(trim($Currency) != 'INR'){
$CommaDigit = 3;
$UnitZero = "00";
}
$explrestunits = "";
if (strlen($num) > 3) {
$lastthree = substr($num, strlen($num) - 3, strlen($num));
$restunits = substr($num, 0, strlen($num) - 3); // extracts the last three digits
$restunits = (strlen($restunits) % $CommaDigit == 1) ? $UnitZero . $restunits : $restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping.
$expunit = str_split($restunits, $CommaDigit);
for ($i = 0; $i < sizeof($expunit); $i++) {
// creates each of the 2's group and adds a comma to the end
if ($i == 0) {
$explrestunits .= (int) $expunit[$i] . ","; // if is first value , convert into integer
} else {
$explrestunits .= $expunit[$i] . ",";
}
}
$thecash = $explrestunits . $lastthree;
} else {
$thecash = $num;
}
//echo $thecash;
return $thecash . $decimalvalue; // writes the final format where $currency is the currency symbol.
}
function getPriceWithOutGST($price, $TaxType, $TaxRate)
{
if ($TaxType == 1) {
$calVal = 100 + (float) $TaxRate;
return (float) $price - (((float) $price * (float) $TaxRate) / $calVal);
} else {
return (float) $price;
}
}
function getPriceWithGST($price, $markup, $TaxType, $TaxRate)
{
if ($TaxType == 1) {
$gstAmount = ((float) $price * $TaxRate) / 100;
} elseif ($TaxType == 2) {
$gstAmount = ((float) $markup * $TaxRate) / 100;
} else {
$gstAmount = 0;
}
return (int) ($price + $gstAmount);
}
$IsIncludedOptSight = in_array('Included', $nOptSight);
$IsOptionalOptSight = in_array('Optional', $nOptSight);
// print_r($this->travelers); die;
if (!empty($this->travelers['Adults'])) {
$Adults = $this->travelers['Adults'];
$Child = $this->travelers['Child'];
$Infants = $this->travelers['Infants'];
$childCount = $Child + $Infants;
$totalTravelers = $Adults + $Child + $Infants;
$totalTravelers .= ' Travelers [';
$totalTravelers .= ($Adults >= 1) ? $Adults . ' Adult(s)' : '';
$totalTravelers .= ($Child >= 1) ? ', ' . $Child . ' Child(ren)' : '';
$totalTravelers .= ($Infants >= 1) ? ', ' . $Infants . ' Infant(s)' : '';
$totalTravelers .= ']';
} else {
$Adults = $this->onlyCount['adultCount'];
$Child = $this->onlyCount['childWBCount'] + $this->onlyCount['childWOBCount'] + $this->onlyCount['childFreeCount'];
$Infants = $this->onlyCount['infantCount'];
$childCount = $Child + $Infants;
$totalTravelers = $Adults + $Child + $Infants;
$totalTravelers .= ' Travelers [';
$totalTravelers .= ($Adults >= 1) ? $Adults . ' Adult(s)' : '';
$totalTravelers .= ($Child >= 1) ? ', ' . $Child . ' Child(ren)' : '';
$totalTravelers .= ($Infants >= 1) ? ', ' . $Infants . ' Infant(s)' : '';
$totalTravelers .= ']';
}
$PPCostBreakupArr = $this->PPCostBreakup;
$ShareCombinedFlightPricing = (int) $this->ShareCombinedFlightPricing;
//echo "<pre>";print_r($PPCostBreakupArr);exit;
// if (!empty($PPCostBreakupArr['totalCost']['travelerCount'])) {
// $perPersonCost = $PPCostBreakupArr['tPRICE DETAILSocurrencySymbol'].' '.round($PPCostBreakupArr['totalCost']['cost']/$PPCostBreakupArr['totalCost']['travelerCount'],2);
//}
$sentPrice = is_float($this->sent_price) ? round($this->sent_price) : $this->sent_price;
$PriceInclude = '';
if (!empty($this->PriceInclude)) {
$PriceInclude .= ($this->PriceInclude['hotelCount']) ? $this->PriceInclude['hotelCount'] . ' Hotel(s), ' : '';
$PriceInclude .= ($this->PriceInclude['ActivityCount']) ? $this->PriceInclude['ActivityCount'] . ' Activities, ' : '';
$PriceInclude .= ($this->PriceInclude['SightseeingCount']) ? $this->PriceInclude['SightseeingCount'] . ' Sightseeing, ' : '';
$PriceInclude .= ($this->PriceInclude['transportCount']) ? $this->PriceInclude['transportCount'] . ' Transport' : '';
}
$TourCatTypeName = 'DELUXE';
if ($this->TourTypeId == '1') {
$TourCatTypeName = 'BUDGET';
}
if ($this->TourTypeId == '2') {
$TourCatTypeName = 'STANDARD';
}
if ($this->TourTypeId == '3') {
$TourCatTypeName = 'DELUXE';
}
if ($this->TourTypeId == '4') {
$TourCatTypeName = 'LUXURY';
}
if ($this->TourTypeId == '5') {
$TourCatTypeName = 'PREMIUM';
}
if ($this->price == 0) {
$emailContent = 'Thanks for sharing your trip plan details, we have noted your requirements.
<br /><br />
We will be reaching you soon with details as per your requirements and preferences. ';
} else {
$emailContent = '';
}
$CurrencySymbol = 'INR';
$sentSourceCurrencyPrice = 0;
$sentSourceCurrencySymbol = '';
$sentSourceCurrencyGST = 0;
if ($this->SourceCurrencyPrice > 0 && $this->PackSpecType != 3) {
$sentSourceCurrencyPrice = $this->SourceCurrencyPrice;
$sentSourceCurrencySymbol = $this->SourceCurrencySymbol;
$sentSourceCurrencyGST = $this->SourceCurrencyGST;
}
$sentPriceFinal = ($this->PackSpecType == 3) ? $sentPrice : $sentPrice;
$sentPriceFinalArr = substr($sentPriceFinal, 0, 3);
$ckeckPriceFinal = substr($sentPriceFinal, 3);
$GSTPrice = $this->TotalGST;
//echo $this->destination."<br>==";
//echo "<pre>"; print_r($GSTPrice); die;
if ($this->IsShareWithGST == 0) {
$pricewithGST = $ckeckPriceFinal + $GSTPrice + $actualPricewithout;
} else {
$pricewithGST = $ckeckPriceFinal;
}
//echo $sentPriceFinalArr; exit;
$IsPriceShared = $this->IsPriceShared;
//echo $IsPriceShared; die;
if (isset($this->CurrencySymbol) && $this->CurrencySymbol != '') {
$CurrencySymbol = $this->CurrencySymbol;
} else if ($sentPriceFinalArr != "") {
$CurrencySymbol = $sentPriceFinalArr;
}
$flightPriceArray = $visaPriceArray = array();
if ($this->PackSpecType == 4) {
if (isset($this->about_package)) {
$about_package = json_decode($this->about_package, 1);
$flightPriceArray = isset($about_package['flightPriceArray']) ? json_decode($about_package['flightPriceArray'], 1) : $about_package['flightPriceArray'];
$visaPriceArray = isset($about_package['visaPriceArray']) ? json_decode($about_package['visaPriceArray'], 1) : $about_package['visaPriceArray'];
}
}
$displayFlightBreakup = (isset($about_package['displayFlightBreakup'])) ? (int) $about_package['displayFlightBreakup'] : 0;
$displayHotelBreakup = (isset($about_package['displayHotelBreakup'])) ? (int) $about_package['displayHotelBreakup'] : 0;
$displayTransferBreakup = (isset($about_package['displayTransferBreakup'])) ? (int) $about_package['displayTransferBreakup'] : 0;
$displaySightseeingBreakup = (isset($about_package['displaySightseeingBreakup'])) ? (int) $about_package['displaySightseeingBreakup'] : 0;
$displayVisaBreakup = (isset($about_package['displayVisaBreakup'])) ? (int) $about_package['displayVisaBreakup'] : 0;
$HotelCostBreakUp = $AddonVisaServiceDetails = array();
$getTravelPlanAddonServices = (isset($this->PPCostBreakupAddon) && !empty($this->PPCostBreakupAddon)) ? $this->PPCostBreakupAddon : array();
$getTCSServicesArray = (isset($this->getAllAddonServicesArray[25]) && !empty($this->getAllAddonServicesArray[25])) ? $this->getAllAddonServicesArray[25] : array();
$getServicesFeeArray = (isset($this->getAllAddonServicesArray[22]) && !empty($this->getAllAddonServicesArray[22])) ? $this->getAllAddonServicesArray[22] : array();
if (isset($this->agentDetails['IsPaymentGateway']) && $this->agentDetails['IsPaymentGateway'] == 0 && $this->IsHotelOnlyPackage == 1) {
$this->shared_url = '';
}
$FlightCostArray = (isset($this->PPCostBreakup['AddonServicesArray'][1]) && $this->PPCostBreakup['AddonServicesArray'][1]['IsTotalCostInPackage'] != 1) ? $this->PPCostBreakup['AddonServicesArray'][1] : array();
//$VisaCostArray = (isset($this->PPCostBreakup['AddonServicesArray'][6]) && $this->PPCostBreakup['AddonServicesArray'][6]['IsTotalCostInPackage'] != 1) ? $this->PPCostBreakup['AddonServicesArray'][6] : array();
$VisaCostArray = (isset($this->getAllAddonServicesArray[6]) && !empty($this->getAllAddonServicesArray[6])) ? $this->getAllAddonServicesArray[6][0] : array();
if ($this->PackSpecType == 4 && !empty($visaPriceArray) && (int) $visaPriceArray['visaDetailTotal'] > 0) {
$AddonVisaServiceDetails[] = array(
'ServiceTitle' => 'Visa',
'CurrencySymbol' => $CurrencySymbol,
'Cost' => $visaPriceArray['visaDetailTotal'],
);
}
$GreetingMessage = (isset($this->GreetingMessage) && $this->GreetingMessage != '') ? $this->GreetingMessage : '';
$GreetingMessageCheckk = preg_replace('/\s+/', '', $GreetingMessage);
if (empty($GreetingMessageCheckk)) {
$GreetingMessage = '';
}
$shared_url = is_array($this->shared_url) ? $this->shared_url[1] : $this->shared_url;
$filename = isset($this->filename) ? $this->filename : 'Package Proposal';
$var1 = isset($this->Isclipboard) && ($this->Isclipboard == 1) ? '' : 'PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"';
$var2 = isset($this->Isclipboard) && ($this->Isclipboard == 1) ? '' : 'xmlns="http://www.w3.org/1999/xhtml"';
$html = '<!DOCTYPE html ' . $var1 . '>
<html ' . $var2 . '>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>' . $filename . '</title>
</head>
<style type="text/css">
ul {
margin: 0 0 0 15px;
padding: 0;
}
p {
margin: 0px !important;
padding: 0px !important;
}
.img-responsive img{
max-width:100% !important;
}
</style>
<body>';
if ($IsB2BCustomer == 1) {
$html .= '<table width="800" border="0" cellspacing="0" cellpadding="0" align="left" style="font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:18px;">'
. '<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-family:Arial, Helvetica, sans-serif;">Dear ' . $this->cust_name . ', </td>
</tr>';
if ($GreetingMessage != '' && $GreetingMessage != '<p><br></p>') {
$html .= '<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-family:Arial, Helvetica, sans-serif;">' . trim($GreetingMessage) . ' </td>
</tr>
<tr><td> </td></tr>';
} else {
$html .= '<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-family:Arial, Helvetica, sans-serif;">
Greetings from ' . $this->agencyDisplayName . '!
</td>
</tr>
<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-family:Arial, Helvetica, sans-serif;">
Kindly find the below detailed proposal for your query with your own branding which you can forward to your client by adding your own mark up.
</td>
</tr>';
}
$html .= '<tr><td>feel free to call me at ' . $this->agent_primarycontact . ' or <a href="' . $shared_url . '" target="_blank" style="font-size:13px; color:' . $buttonBgColr . '; font-weight:bold; text-decoration:none; padding:0; font-family:Arial, Helvetica, sans-serif;">click here </a> to view more details about this trip.</td></tr><tr><td> </td></tr>';
if ($this->agentDetails['SignatureType'] == 0) {
$html .= '<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-family:Arial, Helvetica, sans-serif;">
' . $this->agent_firstname . '<br>
' . $this->agent_primarycontact . '<br>
' . html_entity_decode($this->agentDetails['Signature']) . '<br>
</td>
</tr>';
} else {
$html .= '<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-family:Arial, Helvetica, sans-serif;">
' . html_entity_decode($this->agentDetails['Signature']) . '<br>
</td>
</tr>';
}
$html .= '<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-family:Arial, Helvetica, sans-serif;">================================================================</td>
</tr>
<tr><td> </td></tr>
<tr><td> </td></tr>
</table>';
}
$html .= '<table width="800" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; line-height:18px;">';
if ($isPdf == 1) {
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; padding:5px 0; "><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-weight:bold; font-family:Arial, Helvetica, sans-serif;"><img src="' . $this->agency_logo . '" alt="' . $this->agencyDisplayName . '" title="' . $this->agencyDisplayName . '" border="0" style="max-height: 68px;" border="0"> </td>
</tr></table></td></tr>';
}
if ($IsB2BCustomer == 0) {
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; padding:5px 0; "><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-weight:bold; font-family:Arial, Helvetica, sans-serif;">Dear ' . $this->cust_name . ', </td>
</tr>';
if ($GreetingMessage != '') {
$html .= '<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-weight:normal; font-family:Arial, Helvetica, sans-serif;">
';
$html .= '' . trim($GreetingMessage) . '';
$html .= '</td>
</tr>';
}
$html .= '<tr>
<td style="line-height:24px; font-size:13px; color:#222; font-weight: normal;">
This is <strong>' . $this->agent_firstname . '</strong> and I will be working with you to plan your trip to ' . preg_replace('/[\[{\(].*[\]}\)]/U', '', $this->destination) . '. <br>Please find below details for your trip and ';
if ($IsB2BCustomer == 0) {
$html .= 'feel free to call me at ' . $this->agent_primarycontact . ' or <a href="' . $shared_url . '" target="_blank" style="font-size:13px; color:' . $buttonBgColr . '; font-weight:bold; text-decoration:none; padding:0; font-family:Arial, Helvetica, sans-serif;">click here </a> to view more details about this trip.
' . $emailContent;
} else {
$html .= 'feel free to call me at ' . $this->agent_primarycontact . '.<br />
' . $emailContent;
}
$html .= '</td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>';
} else {
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; padding:5px 0; "><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:14px; color:#222; padding:0 0 10px 0; font-weight:bold; font-family:Arial, Helvetica, sans-serif;">Dear Sir / Madam, </td>
</tr>
<tr>
<td style="line-height:24px; font-size:13px; color:#222; font-weight: bold;">This is further to your travel query for ' . $this->destination . '. Please find below details for your trip to ' . $this->destination . '.';
// if ($IsB2BCustomer == 0) {
// $html .= 'Please feel free to call me at ' . $this->agent_primarycontact . ' or <a href="' . $this->shared_url . '" target="_blank" style="font-size:13px; color:' . $buttonBgColr . '; font-weight:bold; text-decoration:none; padding:0; font-family:Arial, Helvetica, sans-serif;">click here </a> to view more details about this trip.
// ' . $emailContent;
// } else {
// $html .= 'Please feel free to call me at ' . $this->agent_primarycontact . '.<br />
// ' . $emailContent;
// }
$html .= '</td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>';
}
if ($this->PackSpecType == 4 && $this->EconomyMask != 7) {
$Inc = 0;
foreach ($this->getHotelsBySequenceArray as $options => $getHotelsBySequenceArrayAfterOptions) {
foreach ($getHotelsBySequenceArrayAfterOptions as $b => $HotelsBySequence) {
if (is_array($HotelsBySequence)) {
$cityId = array_keys($HotelsBySequence);
$HotelsBySequenceArr = $HotelsBySequence[$cityId[0]]['hotels'];
// print_r($HotelsBySequenceArr);
if ($Inc == 0) {
$thTravellingOn = $HotelsBySequenceArr[0]['FromDate']->format('Y-m-d');
$endDate = date('D, d M, Y', strtotime($thTravellingOn . ' + ' . ($this->totalDays - 1) . ' days'));
}
$Inc++;
} else {
$endDate = date('D, d M, Y', strtotime($this->TravellingOn . ' + ' . ($this->totalDays - 1) . ' days'));
}
}
}
} else {
$endDate = date('D, d M, Y', strtotime($this->TravellingOn . ' + ' . ($this->totalDays - 1) . ' days'));
}
$SourceCity = !empty(trim($this->SourceCity)) ? $this->SourceCity : 'NA';
if (isset($this->IsOnlySightseeingPkg) && $this->IsOnlySightseeingPkg == 1) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="4" style="padding:7px 10px; background:' . $headingBgColor . '; font-size:16px; color:' . $fontColor . '; ">Query Details</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>#Code :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $this->QueryID . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Total Guests :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-bottom:1px solid #CCC;">' . ($Adults + $childCount) . '</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Adults :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $Adults . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Child :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-bottom:1px solid #CCC;">' . $childCount . '</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Start Date :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"> ' . date('D, d M, Y', strtotime($this->TravellingOn)) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>End Date :</strong></td>
<td style="font-size:13px; color:#222; padding:5px;border-bottom:1px solid #CCC;">' . $endDate . '</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; "><strong>Destination covered :</strong></td>
<td colspan="3" style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; "> ' . rtrim(trim($this->DestinationCity), ',') . '</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" style="border-right:1px solid #CCC; border-left:1px solid #CCC;"> </td>
</tr>
<tr>
<td colspan="2" style="border-right:1px solid #CCC; border-left:1px solid #CCC;"> </td>
</tr>';
} else {
if ($miscData == 1) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="4" style="padding:7px 10px; background:' . $headingBgColor . '; font-size:16px; color:' . $fontColor . '; ">Query Details</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>#Code :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $this->QueryID . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Total Guests :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-bottom:1px solid #CCC;">' . ($Adults + $childCount) . '</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Date :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC;"> ' . date('D, d M, Y', strtotime($this->TravellingOn)) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Service type</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $this->EconomyMaskTitle . '</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" style="border-right:1px solid #CCC; border-left:1px solid #CCC;"> </td>
</tr>';
} else {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="4" style="border:1px solid #CCC;padding:7px 10px; background:' . $headingBgColor . '; font-size:16px; color:' . $fontColor . '; ">Query Details:</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong>#Code :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;">' . $this->QueryID . '</td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong>Total Guests :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;">' . ($Adults + $childCount) . '</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong>No. of Nights :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;">' . $this->NoofNights . '</td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong>Child :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;">' . $childCount . '</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong>Start City :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;">' . $SourceCity . '</td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong>Start Date :</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"> ' . date('D, d M, Y', strtotime($this->TravellingOn)) . '</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><strong>Destination covered :</strong></td>
<td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"> ' . rtrim(trim($this->DestinationCity), ',') . '</td>
<td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><strong>End Date :</strong></td>
<td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">' . $endDate . '</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" style="border:0px solid #CCC;"> </td>
</tr>';
}
if ((isset($this->getHotelsBySequenceArray)) && !empty($this->getHotelsBySequenceArray)) {
$html .= '<tr>
<td colspan="3" style=" padding:7px 10px; font-size:14px; font-normal;"><div style="background:#fff; padding:5px 5px; color:#222; font-size:12px;"><strong>CP/BB</strong>-Bed & Breakfast <strong>MAP/Half Board</strong>-Breakfast, Lunch/Dinner <strong>AP/Full Board</strong>-Breakfast, Lunch & Dinner <strong>EP</strong>- Room Only <strong>AI</strong>- All Inclusive.</div></td>
</tr>
<tr>
<td colspan="2" style="border-right:1px solid #CCC; border-left:1px solid #CCC;"> </td>
</tr>';
}
}
// $html .='<tr>
// <td colspan="2" style="padding:7px 10px; background:'.$headingBgColor.'; font-size:16px; color:'.$fontColor.'; ">PACKAGE NAME : '.$this->PackageName.'</td>
// </tr>';
if (!empty($this->getHotelsBySequenceArray)) {
if ($this->EconomyMask == 6) { // for quick package
if ($this->SelectPricingType == 'RoomWise') {
foreach ($this->getHotelsBySequenceArray as $options => $getHotelsBySequenceArrayAfterOptions) {
$checkHotel = false;
$hotelName = $CityName = $StarsName = $HotelAddress = $RoomTitleName = $RoomMealTypeName = '';
foreach ($getHotelsBySequenceArrayAfterOptions[0] as $b => $HotelsBySequence) {
// echo "<pre>"; print_r($HotelsBySequence['hotels'][0]['Title']); die;
$hotelName = $HotelsBySequence['hotels'][0]['Title'];
$RoomMealTypeName = $HotelsBySequence['hotels'][0]['RoomMealType'];
$RoomTitleName = (isset($HotelsBySequence['hotels'][0]['RoomTitle']) && trim($HotelsBySequence['hotels'][0]['RoomTitle']) != '') ? trim($HotelsBySequence['hotels'][0]['RoomTitle']) : trim($HotelsBySequence['hotels'][0]['RoomTypeStr']);
$CityName = $HotelsBySequence['hotels'][0]['CityName'];
$HotelAddress = '<span style="font-size:12px;fonr-weight:normal !important;padding-left:70px;">' . $HotelsBySequence['hotels'][0]['Address'] . '</span>';
$StarsName = ((int) $HotelsBySequence['hotels'][0]['Stars'] > 0) ? '(' . (int) $HotelsBySequence['hotels'][0]['Stars'] . ' Star)' : '';
if (is_array($HotelsBySequence)) {
$checkHotel = true;
}
}
$CustPackageRoomwisePrice = (isset($this->CustPackageRoomwisePrice[$options])) ? $this->CustPackageRoomwisePrice[$options] : array();
// echo "<pre>";print_r($getHotelsBySequenceArrayAfterOptions['MarkUp']);die;
$thirdvar = '';
if ($checkHotel == TRUE && !empty($CustPackageRoomwisePrice)) {
$mmMarkUpPerRoom = $getHotelsBySequenceArrayAfterOptions['MarkUp'] / count($CustPackageRoomwisePrice);
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">Option ' . $options . ': ' . $hotelName . ' (' . $CityName . ')' . $StarsName . '<br>' . $HotelAddress . '</td>
</tr>
</table></td>
</tr>';
$html .= '<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">';
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Room Name</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Meal Plan</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">No of Pax</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Extra Bed</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Per Night Cost</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Total Cost</td>
</tr>';
foreach ($CustPackageRoomwisePrice as $rpKey => $rpVal) {
$NoOfNight = (int) $rpVal['NoOfNight'];
$Adults = ($rpVal['Adult'] > 0) ? $rpVal['Adult'] . 'A ' : '';
$Childs = ($rpVal['Child'] > 0) ? $rpVal['Child'] . 'K' : '';
$ExtraBed = ($rpVal['ExtraBed'] > 0) ? $rpVal['ExtraBed'] : 'NA';
$ExtraWithoutBed = ($rpVal['ExtraWithoutBed'] > 0) ? $rpVal['ExtraWithoutBed'] : 'NA';
$mmMarkUpPerRoomPerNights = (float) ($mmMarkUpPerRoom / $NoOfNight);
$TotalCost = $rpVal['Symbol'] . ' ' . getPriceWithGST(((int) $rpVal['TotalCost'] + $mmMarkUpPerRoom), $mmMarkUpPerRoom, $TaxType, $TaxRate) . '/-';
$Cost = $rpVal['Symbol'] . ' ' . getPriceWithGST(((int) $rpVal['Cost'] + $mmMarkUpPerRoomPerNights), $mmMarkUpPerRoomPerNights, $TaxType, $TaxRate) . '/-';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Room ' . ($rpKey + 1) . ' - ' . $RoomTitleName . '</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $RoomMealTypeName . '</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $Adults . $Childs . '</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $ExtraBed . '</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $Cost . '</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $TotalCost . '</td>
</tr>';
}
$html .= '</table>
</td>
</tr>';
$html .= '<tr>
<td colspan="2"> </td>
</tr>';
if ($this->IsShareWithGST == 1) {
$netTotalPrice = $getHotelsBySequenceArrayAfterOptions['NetPrice'];
// if (isset($getTCSServicesArray[$options - 1]['displayTCS']) && $getTCSServicesArray[$options - 1]['displayTCS'] == 1) {
// $html .= '<tr>
// <td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Package Cost ' . $gstText . ':</td>
// <td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $CurrencySymbol . ' ' . round($getHotelsBySequenceArrayAfterOptions['NetPrice']) . '</td>
// </tr>';
// }
} else {
$netTotalPrice = $getHotelsBySequenceArrayAfterOptions['NetPrice'] + $getHotelsBySequenceArrayAfterOptions['GSTAmountT'];
$html .= '
<tr>
<td align="right" width="80%" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:15px; ">Package Price ' . $ExclTaxTypeTitle . '</td>
<td align="left" width="20%" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-top:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:14px;color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $CurrencySymbol . ' ' . ($getHotelsBySequenceArrayAfterOptions['NetPrice']) . '</td>
</tr>';
$html .= '<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:15px; ">Total ' . $TaxTypeTitle . ' on Package</td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $CurrencySymbol . ' ' . (float) ($getHotelsBySequenceArrayAfterOptions['GSTAmountT']) . '</td>
</tr>';
}
$TCSTax = 0;
// if (isset($getTCSServicesArray[$options - 1]['displayTCS']) && $getTCSServicesArray[$options - 1]['displayTCS'] == 1) {
// $TCSTax = (int) $getTCSServicesArray[$options - 1]['Tax'];
//
// $html .= '<tr>
// <td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">TCS Cost:</td>
// <td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $CurrencySymbol . ' ' . $TCSTax . '</td>
// </tr>';
// }
$html .= '<tr>
<td colspan="2" align="center" style="font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Total Package Cost ' . $gstText . ': </strong><strong>' . $CurrencySymbol . ' ' . round($netTotalPrice + $TCSTax) . '</strong></td>
</tr>';
$html .= '<tr>
<td colspan="2"> </td>
</tr>';
if ($B2bText != '' && !empty($this->shared_url)) {
$shared_url = is_array($this->shared_url) ? $this->shared_url[$options] : $this->shared_url;
$html .= '<tr><td colspan="12" style="border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:1px solid #CCC;"><table width="50%" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td align="center" colspan="12" valign="top" style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center;">';
if ($IsB2BCustomer == 0) {
$html .= '<a href="' . $shared_url . '" target="_blank" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:normal;padding:2px 2px;">CLICK HERE to view more details and book online.</a>';
} else {
if ($IsB2BCustomer == 1) {
$html .= '<a href="' . $shared_url . '" target="_blank" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:normal;">' . $B2bText . '</a>';
}
}
$html .= '</td></tr>';
$html .= '<tr>
<td colspan="2"> </td>
</tr></table></td></tr>';
}
}
}
} else {
$cwb = 'C.W.B';
if ($this->PKqueryType == 1 && $this->SelectPricingType == 'Overall') {
$cwb = 'Child';
}
foreach ($this->getHotelsBySequenceArray as $options => $getHotelsBySequenceArrayAfterOptions) {
$checkHotel = false;
foreach ($getHotelsBySequenceArrayAfterOptions as $b => $HotelsBySequence) {
// echo "<pre>"; print_r($HotelsBySequence); die;
if (is_array($HotelsBySequence)) {
$checkHotel = true;
}
}
$thirdvar = '';
if ($checkHotel == TRUE && count($this->getHotelsBySequenceArray) > 1) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">Option : ' . $options . '</td>
</tr>
</table></td>
</tr>';
}
$html .= '<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">';
if ($checkHotel == TRUE) {
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">CITY</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">HOTEL NAME</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">CHECK IN - OUT</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">NIGHTS</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">ROOM TYPE</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">MEAL</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">ROOMS</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">ADULT</td>';
if (!empty($this->onlyCount['childWBCount']) && $this->onlyCount['childWBCount'] > 0) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">' . $cwb . '</td>';
}
if ($this->PKqueryType == 0 || ($this->PKqueryType == 1 && $this->SelectPricingType == 'PP')) {
if (!empty($this->onlyCount['childWOBCount']) && $this->onlyCount['childWOBCount'] > 0) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">CHILD (NB)</td>';
}
if (!empty($this->onlyCount['childFreeCount']) && $this->onlyCount['childFreeCount'] > 0) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">CHILD (FREE)</td>';
}
if (!empty($this->onlyCount['infantCount']) && $this->onlyCount['infantCount'] > 0) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">INFANT</td>';
}
}
$html .= '</tr>';
}
// echo "<pre>"; print_r($getHotelsBySequenceArrayAfterOptions); die;
foreach ($getHotelsBySequenceArrayAfterOptions as $b => $HotelsBySequence) {
$cityId = (is_array($HotelsBySequence)) ? array_keys($HotelsBySequence) : array();
$NetPricem = $getHotelsBySequenceArrayAfterOptions['NetPrice'] - (float) $flightPriceArray['flightDetailTotal'] - (float) $visaPriceArray['visaDetailTotal'];
$NetPricemWithoutGst = $getHotelsBySequenceArrayAfterOptions['NetPrice'] - $getHotelsBySequenceArrayAfterOptions['GSTAmountT'] - (float) $flightPriceArray['flightDetailTotal'];
// echo $HotelsBySequence[$cityId[0]]['startSequence'].'==='.$HotelsBySequence[$cityId[0]]['endSequence'];
$HotelsBySequenceArr = isset($HotelsBySequence[$cityId[0]]['hotels']) ? $HotelsBySequence[$cityId[0]]['hotels'] : array();
$cityArr = array_column($HotelsBySequenceArr, 'CityName');
$customiseHotelArr = array();
$inc = 0;
foreach ($HotelsBySequenceArr as $Key => $Hotels) { //echo '<pre>'; print_r($Key); echo '</pre>';
$customiseHotelArr[$Hotels['FromDate']->format("Y-m-d")][$Hotels['AccomSysId']][] = $Hotels;
}
foreach ($customiseHotelArr as $key => $Hoteli) {
foreach ($Hoteli as $Hotel) {
$AccoSimilarHotel = (isset($Hotel[0]['AccoSimilarHotel']) && $Hotel[0]['AccoSimilarHotel'] == 1) ? ' or Similar ' : '';
$hotelRoomType = !empty($Hotel[0]['RoomTitle']) ? $Hotel[0]['RoomTitle'] : $Hotel[0]['RoomTypeStr'];
$RoomMealType = !empty($Hotel[0]['RoomMealType']) ? $Hotel[0]['RoomMealType'] : ' ';
$checkIndate = $Hotel[0]['FromDate']->format('Y-m-d');
// $checkIndate = !empty($thirdvar) ? $thirdvar : $this->TravellingOn;
$dayNumber = count($Hotel);
if (in_array($this->PackSpecType, array(2, 4))) {
$dayNumber = count($Hotel) - 1;
}
if (isset($this->CreateDate) && $this->CreateDate > '2025-06-25') {
$dayNumber = (int) $Hotel[0]['TotalNights'];
}
$checkOutdate = date('Y-m-d', strtotime("+$dayNumber day", strtotime($checkIndate)));
if ($Hotel[0]['Stars'] > 0) {
$stars = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getStarRating($Hotel[0]['Stars']);
} else {
$stars = 'NA';
}
if ($this->onlyCount['roomCount'] > 0) {
$this->onlyCount['roomCount'] = $this->onlyCount['roomCount'];
} else {
$this->onlyCount['roomCount'] = '';
}
if ($this->onlyCount['adultCount'] > 0) {
$this->onlyCount['adultCount'] = $this->onlyCount['adultCount'];
} else {
$this->onlyCount['adultCount'] = '';
}
if ($this->onlyCount['childWBCount'] > 0) {
$this->onlyCount['childWBCount'] = $this->onlyCount['childWBCount'];
} else {
$this->onlyCount['childWBCount'] = '';
}
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>' . $cityArr[0] . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . stripslashes($Hotel[0]['Title']) . $AccoSimilarHotel . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . date("d-M-y", strtotime($checkIndate)) . ' - <br>' . date("d-M-y", strtotime($checkOutdate)) . ' </td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $dayNumber . ' </td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $hotelRoomType . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $RoomMealType . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['roomCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['adultCount'] . '</td>';
if (!empty($this->onlyCount['childWBCount']) && $this->onlyCount['childWBCount'] > 0) {
$html .= '<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['childWBCount'] . '</td>';
}
if ($this->PKqueryType == 0 || ($this->PKqueryType == 1 && $this->SelectPricingType == 'PP')) {
if (!empty($this->onlyCount['childWOBCount']) && $this->onlyCount['childWOBCount'] > 0) {
$html .= '<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $this->onlyCount['childWOBCount'] . '</td>';
}
if (!empty($this->onlyCount['childFreeCount']) && $this->onlyCount['childFreeCount'] > 0) {
$html .= '<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $this->onlyCount['childFreeCount'] . '</td>';
}
if (!empty($this->onlyCount['infantCount']) && $this->onlyCount['infantCount'] > 0) {
$html .= '<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $this->onlyCount['infantCount'] . '</td>';
}
}
$html .= '</tr>';
$thirdvar = $checkOutdate;
if ((int) $Hotel[0]['NetCost'] > 0) {
$HotelCostBreakUp[$options][] = array(
'Title' => stripslashes($Hotel[0]['Title']) . $AccoSimilarHotel,
'Destination' => $cityArr[0],
'Nights' => $dayNumber,
'NetCost' => $Hotel[0]['NetCost'],
'Symbol' => $Hotel[0]['Symbol'],
);
}
}
}
}
$html .= '</table></td></tr>';
if ($this->PackSpecType == 4 && !empty($PPCostBreakupArr[1]['totalCost']['travelerCount'])) {
if ($this->EconomyMask == 7) {
$optionspp = 'Pricing';
} else {
$optionspp = 'Options';
}
$html .= '<tr>
<td colspan="2" height="0"> </td>
</tr><tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">Price Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">';
$PPCostBreakup = $PPCostBreakupArr[$options];
$DisplayQuad = (isset($PPCostBreakup['AdultQuad']['travelerCount']) && !empty($PPCostBreakup['AdultQuad']['travelerCount'])) ? 1 : 0;
$DisplayQuint = (isset($PPCostBreakup['AdultQuint']['travelerCount']) && !empty($PPCostBreakup['AdultQuint']['travelerCount'])) ? 1 : 0;
$DisplayHexa = (isset($PPCostBreakup['AdultHexa']['travelerCount']) && !empty($PPCostBreakup['AdultHexa']['travelerCount'])) ? 1 : 0;
$DisplayAdult = (isset($PPCostBreakup['Adult']['travelerCount']) && !empty($PPCostBreakup['Adult']['travelerCount'])) ? 1 : 0;
$DisplaySOAdult = (isset($PPCostBreakup['SOAdult']['travelerCount']) && !empty($PPCostBreakup['SOAdult']['travelerCount'])) ? 1 : 0;
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $optionspp . '</td>';
if ($DisplayQuad == 1) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Adult With Quad</td>';
}
if ($DisplayQuint == 1) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Adult With Quint</td>';
}
if ($DisplayHexa == 1) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Adult With Hexa</td>';
}
if ($DisplayAdult == 1) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Adult</td>';
}
if ($DisplaySOAdult == 1) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Adult SGL</td>';
}
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Adult E.B</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">C.W.B </td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; ">CNB</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Infant</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Total Cost</td></tr>';
if ($this->EconomyMask == 7) {
$optionType = '';
} else {
$optionType = (count($this->getHotelsBySequenceArray) > 1) ? 'Option ' . $options . ' Pricing -' : '';
}
// echo "<pre>";print_r($PPCostBreakup);die;
$AdultQuadCost = (!empty($PPCostBreakup['AdultQuad']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['AdultQuad']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['AdultQuad']['cost'] / $PPCostBreakup['AdultQuad']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['AdultQuad']['cost']) : 'NA';
$AdultQuintCost = (!empty($PPCostBreakup['AdultQuint']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['AdultQuint']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['AdultQuint']['cost'] / $PPCostBreakup['AdultQuint']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['AdultQuint']['cost']) : 'NA';
$AdultHexaCost = (!empty($PPCostBreakup['AdultHexa']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['AdultHexa']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['AdultHexa']['cost'] / $PPCostBreakup['AdultHexa']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['AdultHexa']['cost']) : 'NA';
$AdultCost = (!empty($PPCostBreakup['Adult']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['Adult']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['Adult']['cost'] / $PPCostBreakup['Adult']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['Adult']['cost']) : 'NA';
$SOAdultCost = (!empty($PPCostBreakup['SOAdult']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['SOAdult']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['SOAdult']['cost'] / $PPCostBreakup['SOAdult']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['SOAdult']['cost']) : 'NA';
$AdultExtraBedCost = (!empty($PPCostBreakup['AdultExtraBed']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['AdultExtraBed']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['AdultExtraBed']['cost'] / $PPCostBreakup['AdultExtraBed']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['AdultExtraBed']['cost']) : 'NA';
$ChildExtraBedCost = (!empty($PPCostBreakup['ChildExtraBed']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['ChildExtraBed']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['ChildExtraBed']['cost'] / $PPCostBreakup['ChildExtraBed']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['ChildExtraBed']['cost']) : 'NA';
$ChildWithOutBedCost = (!empty($PPCostBreakup['ChildWithOutBed']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['ChildWithOutBed']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['ChildWithOutBed']['cost'] / $PPCostBreakup['ChildWithOutBed']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['ChildWithOutBed']['cost']) : 'NA';
$InfantCountCost = (!empty($PPCostBreakup['InfantCount']['cost'])) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . (!empty($PPCostBreakup['InfantCount']['travelerCount']) ? moneyFormatIndia((float) ($PPCostBreakup['InfantCount']['cost'] / $PPCostBreakup['InfantCount']['travelerCount']),$PPCostBreakup['tocurrencySymbol']) : $PPCostBreakup['InfantCount']['cost']) : 'NA';
$html .= '<tr>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $optionType . ' Cost P.P.</td>';
if ($DisplayQuad == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . trim($AdultQuadCost) . '</td>';
}
if ($DisplayQuint == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . trim($AdultQuintCost) . '</td>';
}
if ($DisplayHexa == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $AdultHexaCost . '</td>';
}
if ($DisplayAdult == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $AdultCost . '</td>';
}
if ($DisplaySOAdult == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $SOAdultCost . '</td>';
}
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $AdultExtraBedCost . '</td>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $ChildExtraBedCost . '</td>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $ChildWithOutBedCost . '</td>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $InfantCountCost . ' </td>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">-</td>';
$html .= '<tr><td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $optionType . ' Total Cost</td>';
if ($DisplayQuad == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['AdultQuad']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['AdultQuad']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . '</td>';
}
if ($DisplayQuint == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['AdultQuint']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['AdultQuint']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . '</td>';
}
if ($DisplayHexa == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['AdultHexa']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['AdultHexa']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . '</td>';
}
if ($DisplayAdult == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['Adult']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['Adult']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . '</td>';
}
if ($DisplaySOAdult == 1) {
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['SOAdult']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['SOAdult']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . '</td>';
}
$html .= '<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['AdultExtraBed']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['AdultExtraBed']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . '</td>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['ChildExtraBed']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['ChildExtraBed']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . '</td>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['ChildWithOutBed']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['ChildWithOutBed']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . '</td>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . (!empty($PPCostBreakup['InfantCount']['cost']) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['InfantCount']['cost'],$PPCostBreakup['tocurrencySymbol']) : 'NA') . ' </td>
<td style="background:#f9f9f9; padding:7px 10px; color:#222; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['totalCost']['cost'],$PPCostBreakup['tocurrencySymbol']) . '</td>';
$html .= '</table></td>
</tr>';
if (!empty($PPCostBreakup['FLightTotal']['travelerCount']) && $PPCostBreakup['isShareWithFlight'] == 1 && $PPCostBreakup['ShareCombinedFlightPricing'] == 0) {
$html .= '
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;"> Flight Price Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:1px solid #CCC;;">';
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; " width="20%">Price Type</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" width="20%">Adult</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" width="20%">Child</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" width="20%">Infant</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" width="20%">TOTAL COST</td>
</tr>';
if (!empty($PPCostBreakup['FLightTotal']['travelerCount'])) {
$FlightAdultCost = $PPCostBreakup['FlightAdult']['cost'];
$FlightAdultTravelerCount = $PPCostBreakup['FlightAdult']['travelerCount'];
$FLightChildCost = $PPCostBreakup['FLightChild']['cost'];
$FLightChildTravelerCount = $PPCostBreakup['FLightChild']['travelerCount'];
$FLightInfantCost = $PPCostBreakup['FLightInfant']['cost'];
$FLightInfantTravelerCount = $PPCostBreakup['FLightInfant']['travelerCount'];
$FlightAdultCostPP = ($FlightAdultCost > 0 && $FlightAdultTravelerCount > 0) ? trim($PPCostBreakup['tocurrencySymbol']) . ' ' . moneyFormatIndia(round((float) ($FlightAdultCost / $FlightAdultTravelerCount), 2),$PPCostBreakup['tocurrencySymbol']) : 'NA';
$FLightChildCostPP = ($FLightChildCost > 0 && $FLightChildTravelerCount > 0) ? trim($PPCostBreakup['tocurrencySymbol']) . ' ' . moneyFormatIndia(round((float) ($FLightChildCost / $FLightChildTravelerCount), 2),$PPCostBreakup['tocurrencySymbol']) : 'NA';
$FLightInfantCostPP = ($FLightInfantCost > 0 && $FLightInfantTravelerCount > 0) ? trim($PPCostBreakup['tocurrencySymbol']) . ' ' . moneyFormatIndia(round((float) ($FLightInfantCost / $FLightInfantTravelerCount), 2),$PPCostBreakup['tocurrencySymbol']) : 'NA';
$FLightTotal = ($PPCostBreakup['FLightTotal']['cost'] > 0) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['FLightTotal']['cost'],$PPCostBreakup['tocurrencySymbol']) : '';
$FlightAdultCostHtml = ($FlightAdultCost > 0) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($FlightAdultCost,$PPCostBreakup['tocurrencySymbol']) : 'NA';
$FLightChildCostHtml = ($FLightChildCost > 0) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($FLightChildCost,$PPCostBreakup['tocurrencySymbol']) : 'NA';
$FLightInfantCostHtml = ($FLightInfantCost > 0) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($FLightInfantCost,$PPCostBreakup['tocurrencySymbol']) : 'NA';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Cost P.P.</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $FlightAdultCostPP . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $FLightChildCostPP . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $FLightInfantCostPP . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">--</td>
</tr>';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"> Total Cost</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $FlightAdultCostHtml . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $FLightChildCostHtml . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $FLightInfantCostHtml . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $FLightTotal . '</td>
</tr>';
}
$html .= ' </table></td></tr>';
}
if (isset($PPCostBreakup['VisaTotal']['travelerCount']) && !empty($PPCostBreakup['VisaTotal']['travelerCount'])) {
$html .= '
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;"> Visa Price Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:1px solid #CCC;;">';
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; " width="20%">Price Type</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" width="20%">Adult</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" width="20%">Child</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" width="20%">Infant</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" width="20%">TOTAL COST</td>
</tr>';
if (!empty($PPCostBreakup['VisaTotal']['travelerCount'])) {
$VisaAdultCost = $PPCostBreakup['VisaAdult']['cost'];
$VisaAdultTravelerCount = $PPCostBreakup['VisaAdult']['travelerCount'];
$VisaChildCost = $PPCostBreakup['VisaChild']['cost'];
$VisaChildTravelerCount = $PPCostBreakup['VisaChild']['travelerCount'];
$VisaInfantCost = $PPCostBreakup['VisaInfant']['cost'];
$VisaInfantTravelerCount = $PPCostBreakup['VisaInfant']['travelerCount'];
$VisaAdultCostPP = ($VisaAdultCost > 0 && $VisaAdultTravelerCount > 0) ? trim($PPCostBreakup['tocurrencySymbol']) . ' ' . moneyFormatIndia(round((float) ($VisaAdultCost / $VisaAdultTravelerCount), 2),$PPCostBreakup['tocurrencySymbol']) : 'NA';
$VisaChildCostPP = ($VisaChildCost > 0 && $VisaChildTravelerCount > 0) ? trim($PPCostBreakup['tocurrencySymbol']) . ' ' . moneyFormatIndia(round((float) ($VisaChildCost / $VisaChildTravelerCount), 2),$PPCostBreakup['tocurrencySymbol']) : 'NA';
$VisaInfantCostPP = ($VisaInfantCost > 0 && $VisaInfantTravelerCount > 0) ? trim($PPCostBreakup['tocurrencySymbol']) . ' ' . moneyFormatIndia(round((float) ($VisaInfantCost / $VisaInfantTravelerCount), 2),$PPCostBreakup['tocurrencySymbol']) : 'NA';
$VisaTotal = ($PPCostBreakup['VisaTotal']['cost'] > 0) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($PPCostBreakup['VisaTotal']['cost'],$PPCostBreakup['tocurrencySymbol']) : '';
$VisaAdultCostHtml = ($VisaAdultCost > 0) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($VisaAdultCost,$PPCostBreakup['tocurrencySymbol']) : 'NA';
$VisaChildCostHtml = ($VisaChildCost > 0) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($VisaChildCost,$PPCostBreakup['tocurrencySymbol']) : 'NA';
$VisaInfantCostHtml = ($VisaInfantCost > 0) ? $PPCostBreakup['tocurrencySymbol'] . ' ' . moneyFormatIndia($VisaInfantCost,$PPCostBreakup['tocurrencySymbol']) : 'NA';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Cost P.P.</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $VisaAdultCostPP . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $VisaChildCostPP . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $VisaInfantCostPP . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">--</td>
</tr>';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"> Total Cost</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $VisaAdultCostHtml . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $VisaChildCostHtml . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $VisaInfantCostHtml . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $VisaTotal . '</td>
</tr>';
}
$html .= ' </table></td></tr>';
}
}
// $displayTCS = isset($getTCSServicesArray[$options - 1]['displayTCS']) ? (int) $getTCSServicesArray[$options - 1]['displayTCS'] : 0;
if ($this->IsShareWithGST == 1) {
$html .= '<tr><td> </td></tr><tr colspan="2"><td align="left" valign="top" colspan="12" background:#666; style="border-right:1px solid #CCC; border-left:1px solid #CCC; font-size:14px; color:#222222; line-height:22px;font-weight:bold;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;background:#f9f9f9;"><tbody>';
$CheckNotCombined = 0;
if ($this->ShareCombinedFlightPricing == 1 && $flightPriceArray['flightDetailCost'] > 0) {
$NetPricem = (float) $NetPricem + (float) $flightPriceArray['flightDetailTotal'];
} else {
$CheckNotCombined++;
}
$IsShareCombinedVisaPricing = isset($visaPriceArray['ShareCombined']) ? $visaPriceArray['ShareCombined'] : 0;
if ($IsShareCombinedVisaPricing == 1 && $visaPriceArray['visaDetailTotal'] > 0) {
$NetPricem = (float) $NetPricem + (float) $visaPriceArray['visaDetailTotal'];
} else {
$CheckNotCombined++;
}
if ($CheckNotCombined > 0) {
$html .= '<tr>
<td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Package Cost ' . $gstText . ' :</td>
<td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">' . $CurrencySymbol . ' ' . moneyFormatIndia($NetPricem,$CurrencySymbol) . '</td>
</tr>';
if ($this->ShareCombinedFlightPricing == 0 && $flightPriceArray['flightDetailCost'] > 0) {
$html .= '<tr>
<td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Flight Cost ' . $gstText . ': </td>
<td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">' . $CurrencySymbol . ' ' . moneyFormatIndia($flightPriceArray['flightDetailTotal'],$CurrencySymbol) . '</td>
</tr>';
}
if ($IsShareCombinedVisaPricing == 0 && $visaPriceArray['visaDetailCost'] > 0) {
$html .= '<tr>
<td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Visa Cost ' . $gstText . ':</td>
<td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">' . $CurrencySymbol . ' ' . moneyFormatIndia($visaPriceArray['visaDetailTotal'],$CurrencySymbol) . '</td>
</tr>';
}
}
// if ($this->ShareCombinedFlightPricing == 0 && $flightPriceArray['flightDetailCost'] > 0) {
// $html .= '<tr>
// <td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Package Cost ' . $gstText . ' :</td>
// <td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">' . $CurrencySymbol . ' ' . moneyFormatIndia($NetPricem) . '</td>
// </tr>';
// if (isset($flightPriceArray) && $flightPriceArray['flightDetailCost'] != 0) {
// $html .= '<tr>
// <td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Flight Cost ' . $gstText . ': </td>
// <td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">' . $CurrencySymbol . ' ' . moneyFormatIndia($flightPriceArray['flightDetailTotal']) . '</td>
// </tr>';
// }
// } else {
// if ((int) $flightPriceArray['flightDetailCost'] > 0 || (int) $visaPriceArray['visaDetailCost'] > 0) {
// $html .= '<tr>
// <td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Package Cost ' . $gstText . ' :</td>
// <td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">' . $CurrencySymbol . ' ' . moneyFormatIndia((float) $NetPricem + (float) $flightPriceArray['flightDetailTotal']) . '</td>
// </tr>';
// }
// }
// if (isset($visaPriceArray) && $visaPriceArray['visaDetailCost'] > 0) {
// $html .= '<tr>
// <td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Visa Cost ' . $gstText . ':</td>
// <td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">' . $CurrencySymbol . ' ' . moneyFormatIndia($visaPriceArray['visaDetailTotal']) . '</td>
// </tr>';
// }
$TCSTax = 0;
// if ($displayTCS == 1) {
// $TCSTax = (int) $getTCSServicesArray[$options - 1]['Tax'];
// $html .= '<tr>
// <td align="right" style="width:85%;font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">TCS Cost:</td>
// <td style="width:15%;font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">' . $CurrencySymbol . ' ' . moneyFormatIndia($TCSTax) . '</td>
// </tr>';
// }
$html .= '<tr>
<td align="right" style="font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Total Package Cost ' . $gstText . ': </strong></td>
<td style="font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">
<strong>' . $CurrencySymbol . ' ' . moneyFormatIndia($getHotelsBySequenceArrayAfterOptions['NetPrice'] + $TCSTax,$CurrencySymbol) . '</strong>
</td>
</tr>';
if($sentSourceCurrencyPrice > 0){
$html .= '<tr>
<td align="right" style="font-size:15px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>or</strong></td>
<td style="font-size:14px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:left;">
<strong style="font-size:14px;">'.(($sentSourceCurrencyPrice > 0) ? ' '.$sentSourceCurrencySymbol.' '.moneyFormatIndia($sentSourceCurrencyPrice,$sentSourceCurrencySymbol) : '').'</strong>
</td>
</tr>';
}
// $html .= '<tr>
// <td style="width:15%;font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Total GST : </strong></td>
// <td style="width:15%;font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;text-align:center;">'.$CurrencySymbol.' '.($getHotelsBySequenceArrayAfterOptions[NetPrice] - ($NetPricem + $flightPriceArray['flightDetailCost'])).'</td>
// </tr>';
$html .= '</tbody></table></td></tr>';
$html .= '<tr><td> </td></tr>';
// $html .='<tr>
// <td align="center" valign="top" colspan="12" background:#666; style="border-right:1px solid #CCC; border-left:1px solid #CCC; font-size:14px; color:#222222; line-height:22px;">
// <strong>Final Package Price'.$gstText.'= ' . $CurrencySymbol . ' ' . $getHotelsBySequenceArrayAfterOptions[NetPrice] . '</strong><br />';
} else {
$mflightDetailCost = $mflightDetailCostGst = 0;
if (isset($flightPriceArray) && $flightPriceArray['flightDetailCost'] != 0 && $this->ShareCombinedFlightPricing == 1) {
$mflightDetailCost = $flightPriceArray['flightDetailCost'] + $flightPriceArray['flightDetailMarkup'];
$mflightDetailCostGst = $flightPriceArray['flightDetailTotal'] - $mflightDetailCost;
}
$html .= '<tr><td> </td></tr><tr><td colspan="12" align="center" valign="top" bgcolor="#FFFFFF" style="font-size:14px; color:#222222; line-height:22px;">';
$html .= '<table width="100%" align="right" cellspacing="0" cellpadding="0">';
if ((int) ($getHotelsBySequenceArrayAfterOptions['GSTAmountT'] + $mflightDetailCostGst) > 0 || (isset($flightPriceArray) && $flightPriceArray['flightDetailCost'] > 0) || (isset($visaPriceArray) && $visaPriceArray['visaDetailCost'] > 0)) {
$html .= '<tr>
<td align="right" width="80%" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-top:1px solid #ccc; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:15px; ">Package Price ' . $ExclTaxTypeTitle . '</td>
<td align="left" width="20%" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-top:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:14px;color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $CurrencySymbol . ' ' . moneyFormatIndia($NetPricem + $mflightDetailCost,$CurrencySymbol) . '</td>
</tr>';
if ((int) ($getHotelsBySequenceArrayAfterOptions['GSTAmountT'] + $mflightDetailCostGst) > 0) {
$html .= '<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:15px; ">Total ' . $TaxTypeTitle . ' on Package</td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $CurrencySymbol . ' ' . moneyFormatIndia((float) ($getHotelsBySequenceArrayAfterOptions['GSTAmountT'] + $mflightDetailCostGst),$CurrencySymbol) . '</td>
</tr>';
}
}
if ($this->ShareCombinedFlightPricing == 0) {
if (isset($flightPriceArray) && $flightPriceArray['flightDetailCost'] > 0) {
$html .= '<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:15px; ">Total Flight Cost ' . $ExclTaxTypeTitle . '</td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $CurrencySymbol . ' ' . moneyFormatIndia((float) ((float) $flightPriceArray['flightDetailCost'] + (float) $flightPriceArray['flightDetailMarkup']),$CurrencySymbol) . '</td>
</tr>';
$flightDetailTotalGst = ((float) $flightPriceArray['flightDetailTotal'] - (float) $flightPriceArray['flightDetailCost'] - (float) $flightPriceArray['flightDetailMarkup']);
if ($flightDetailTotalGst > 0) {
$html .= '<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:15px; ">Total ' . $TaxTypeTitle . ' on Flight</td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $CurrencySymbol . ' ' . moneyFormatIndia((float) $flightDetailTotalGst,$CurrencySymbol) . '</td>
</tr>';
}
}
}
if (isset($visaPriceArray) && $visaPriceArray['visaDetailCost'] > 0) {
$visaDetailTotalGst = ((float) $visaPriceArray['visaDetailTotal'] - (float) $visaPriceArray['visaDetailCost'] - (float) $visaPriceArray['visaDetailMarkup']);
$html .= '<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:15px; ">Total Visa Cost ' . $ExclTaxTypeTitle . '</td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $CurrencySymbol . ' ' . moneyFormatIndia((float) ((float) $visaPriceArray['visaDetailCost'] + (float) $visaPriceArray['visaDetailMarkup']),$CurrencySymbol) . '</td>
</tr>';
if ($visaDetailTotalGst > 0) {
$html .= '<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-size:15px; ">Total ' . $TaxTypeTitle . ' on Visa</td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $CurrencySymbol . ' ' . moneyFormatIndia((float) $visaDetailTotalGst,$CurrencySymbol) . '</td>
</tr>';
}
}
$TCSTax1 = 0;
// if (isset($getTCSServicesArray[$options - 1]['displayTCS']) && $getTCSServicesArray[$options - 1]['displayTCS'] == 1) {
// $TCSTax1 = (int) $getTCSServicesArray[$options - 1]['Tax'];
// $html .= '<tr>
// <td align="right" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-weight:normal;font-size:15px; ">TCS Price</td>
// <td align="left" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:normal;"> ' . $CurrencySymbol . ' ' . moneyFormatIndia((float) $TCSTax1) . '</td>
// </tr>';
// }
$html .= '<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-left:1px solid #ccc; border-bottom:1px solid #ccc; border-right:1px solid #ccc;font-weight:bold;font-size:15px; ">Final Package Price ' . $gstText . '</td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;font-weight:bold;"> ' . $CurrencySymbol . ' ' . moneyFormatIndia(((float) $getHotelsBySequenceArrayAfterOptions['NetPrice'] + (float) $getHotelsBySequenceArrayAfterOptions['GSTAmountT'] + (float) $TCSTax1),$CurrencySymbol) . '</td>
</tr>
</table>';
$html .= '</td></tr>';
$html .= '<tr><td> </td></tr>';
}
// echo "<pre>";print_r($flightPriceArray);exit;
if (isset($getTCSServicesArray[$options - 1]['displayTCS']) && $getTCSServicesArray[$options - 1]['displayTCS'] == 1 && $getTCSServicesArray[$options - 1]['Tax'] > 0) {
$html .= '<tr >
<td colspan="12" style="font-size:14px; color:#222; padding:5px 10px; background:#f9f9f9; text-align:center;">
<table style="border-top:2px solid #ddd;width:100%; border-bottom:2px solid #ddd;width:100%;">
<tr>
<td style="font-size:14px; color:#222; padding:5px 10px; background:#f9f9f9; text-align:center;">
<div>Approx. <b>TCS amount: ' . trim($getTCSServicesArray[$options - 1]['CurrencySymbol']) . ' ' . (int) trim($getTCSServicesArray[$options - 1]['Tax']) . '/- </b>to be paid extra</div>
<div>Above calculation is an estimate only and final amt will be calculated based on Foreign spent in </div>
<div>the current financial year against your PAN card. </div>
<br>
<div>TCS is not a cost or extra tax and can be claimed in your IT return.</div>
</td>
</tr>
</table>
</td>
<tr>';
}
if ($B2bText != '' && !empty($this->shared_url)) {
$shared_url = is_array($this->shared_url) ? $this->shared_url[$options] : $this->shared_url;
$html .= '<tr><td colspan="12" style="border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:1px solid #CCC;"><table width="50%" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td align="center" colspan="12" valign="top" style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center;">';
if ($IsB2BCustomer == 0) {
$html .= '<a href="' . $shared_url . '" target="_blank" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:normal;padding:2px 2px;">CLICK HERE to view more details and book online.</a>';
} else {
if ($IsB2BCustomer == 1) {
$html .= '<a href="' . $shared_url . '" target="_blank" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:normal;">' . $B2bText . '</a>';
}
}
$html .= '</td></tr>';
$html .= '<tr>
<td colspan="2"> </td>
</tr></table></td></tr>';
}
}
$html .= '<tr><td colspan="2"> </td></tr>';
}
} else {
if ($this->EconomyMask != 7) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">Package Name : ' . $this->PackageName . ' ' . $isFixedDeparturePackage . '</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC;">CITY</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">HOTEL NAME</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">CHECK IN - OUT</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">NIGHTS</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">ROOM TYPE</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">MEAL PLAN</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">ROOMS</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">ADULT </td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">CHILD (WB)</td>';
if (!empty($this->onlyCount['childWOBCount']) && $this->onlyCount['childWOBCount'] > 0) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">CHILD (NB)</td>';
}
if (!empty($this->onlyCount['childFreeCount']) && $this->onlyCount['childFreeCount'] > 0) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">CHILD (FREE)</td>';
}
if (!empty($this->onlyCount['infantCount']) && $this->onlyCount['infantCount'] > 0) {
$html .= '<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">INFANT</td>';
}
$html .= '</tr>';
}
// echo "<pre>";print_r($customiseHotelArrS);exit;
$customiseHotelArrS = array();
foreach ($this->getHotelsBySequenceArray as $b => $HotelsBySequenceGetDay) {
$cityIdAs = array_keys($HotelsBySequenceGetDay);
$HotelsBySequenceArrasA = $HotelsBySequenceGetDay[$cityIdAs[0]]['hotels'];
foreach ($HotelsBySequenceArrasA as $Key => $HotelsD) {
$DayS = ($HotelsD['Sequence'] - 1);
$customiseHotelArrS[$HotelsD['Sequence']] = date('Y-m-d', strtotime("+$DayS day", strtotime($this->TravellingOn)));
}
}
//echo "<pre>";print_r($customiseHotelArrS);exit;
foreach ($this->getHotelsBySequenceArray as $b => $HotelsBySequence) {
$cityId = array_keys($HotelsBySequence);
// echo $HotelsBySequence[$cityId[0]]['startSequence'].'==='.$HotelsBySequence[$cityId[0]]['endSequence'];
$HotelsBySequenceArr = $HotelsBySequence[$cityId[0]]['hotels'];
$cityArr = array_column($HotelsBySequenceArr, 'CityName');
$customiseHotelArr = array();
$inc = 0;
foreach ($HotelsBySequenceArr as $Key => $Hotels) {
$roomStr = (int) ($Hotels['RoomType'] > 0) ? $Hotels['RoomType'] : trim($Hotels['RoomTypeStr']);//echo '<pre>'; print_r($Key); echo '</pre>';
$customiseHotelArr[$Hotels['AccomSysId']][$roomStr][] = $Hotels;
}
$shared_url = is_array($this->shared_url) ? $this->shared_url[$b] : $this->shared_url;
foreach ($customiseHotelArr as $key1 => $Hotel1) {
foreach ($Hotel1 as $key => $Hotel) {
if ($IsB2BCustomer == 0) {
$AccoSimilarHotel = (isset($Hotel[0]['AccoSimilarHotel']) && $Hotel[0]['AccoSimilarHotel'] == 1) ? ' or Similar (<a href="' . $shared_url . '" target="_blank" style="font-size:13px; color:' . $buttonBgColr . '; font-weight:bold; text-decoration:none; padding:0; font-family:Arial, Helvetica, sans-serif;">View Hotels </a>) ' : '';
} else {
$AccoSimilarHotel = (isset($Hotel[0]['AccoSimilarHotel']) && $Hotel[0]['AccoSimilarHotel'] == 1) ? ' or Similar ' : '';
}
// echo '<pre>'; print_r($Hotel); echo '</pre>';
$hotelRoomType = !empty($Hotel[0]['RoomTitle']) ? $Hotel[0]['RoomTitle'] : ' ';
$RoomMealType = !empty($Hotel[0]['RoomMealType']) ? $Hotel[0]['RoomMealType'] : ' ';
//$checkIndate = isset($thirdvar) ? $thirdvar : $this->TravellingOn;
$checkIndate = $customiseHotelArrS[$Hotel[0]['Sequence']];
$dayNumber = count($Hotel);
if (in_array($this->PackSpecType, array(2, 4))) {
$dayNumber = count($Hotel) - 1;
}
if (isset($this->CreateDate) && $this->CreateDate > '2025-06-25') {
$dayNumber = (int) $Hotel[0]['TotalNights'];
}
$checkOutdate = date('Y-m-d', strtotime("+$dayNumber day", strtotime($checkIndate)));
if ($Hotel[0]['Stars'] > 0) {
$stars = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getStarRating($Hotel[0]['Stars']);
} else {
$stars = 'NA';
}
if ($this->onlyCount['roomCount'] > 0) {
$this->onlyCount['roomCount'] = $this->onlyCount['roomCount'];
} else {
$this->onlyCount['roomCount'] = '';
}
if ($this->onlyCount['adultCount'] > 0) {
$this->onlyCount['adultCount'] = $this->onlyCount['adultCount'];
} else {
$this->onlyCount['adultCount'] = '';
}
if ($this->onlyCount['childWBCount'] > 0) {
$this->onlyCount['childWBCount'] = $this->onlyCount['childWBCount'];
} else {
$this->onlyCount['childWBCount'] = '';
}
if ($this->onlyCount['childWOBCount'] > 0) {
$this->onlyCount['childWOBCount'] = $this->onlyCount['childWOBCount'];
} else {
$this->onlyCount['childWOBCount'] = '';
}
if ($this->onlyCount['childFreeCount'] > 0) {
$this->onlyCount['childFreeCount'] = $this->onlyCount['childFreeCount'];
} else {
$this->onlyCount['childFreeCount'] = '';
}
if ($this->onlyCount['infantCount'] > 0) {
$this->onlyCount['infantCount'] = $this->onlyCount['infantCount'];
} else {
$this->onlyCount['infantCount'] = '';
}
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>' . $cityArr[0] . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . stripslashes($Hotel[0]['Title']) . $AccoSimilarHotel . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . date("d-M-y", strtotime($checkIndate)) . ' - ' . date("d-M-y", strtotime($checkOutdate)) . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $dayNumber . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $hotelRoomType . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $RoomMealType . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['roomCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['adultCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['childWBCount'] . '</td>';
if (!empty($this->onlyCount['childWOBCount']) && $this->onlyCount['childWOBCount'] > 0) {
$html .= '<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['childWOBCount'] . '</td>';
}
if (!empty($this->onlyCount['childFreeCount']) && $this->onlyCount['childFreeCount'] > 0) {
$html .= '<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['childFreeCount'] . '</td>';
}
if (!empty($this->onlyCount['infantCount']) && $this->onlyCount['infantCount'] > 0) {
$html .= '<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $this->onlyCount['infantCount'] . '</td>';
}
$html .= '</tr>';
$thirdvar = $checkOutdate;
}
}
}
$html .= '</table></td>
</tr>';
}
}
if (($displayFlightBreakup == 1 && !empty($getFlightDetail)) || ($displayHotelBreakup == 1 && !empty($HotelCostBreakUp)) || ($displayTransferBreakup == 1 && !empty($this->getQuickTransportdata)) || ($displayVisaBreakup == 1 && !empty($AddonVisaServiceDetails))) {
if ($isPdf == 1) {
$html .= '</table><pagebreak></pagebreak><table width="800" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:18px;">';
}
$totalPaxHtml = '<strong>Total Pax:</strong> ' . $Adults . ' Adult(s)';
if ($Child > 0) {
$totalPaxHtml .= ', ' . $Child . ' Child(s)';
}
if ($Infants > 0) {
$totalPaxHtml .= ', ' . $Infants . ' Infant(s)';
}
$html .= '<tr><td colspan="2">' . $totalPaxHtml . '</td></tr>';
$html .= '<tr><td colspan="2"> </tr>';
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td width="40%" style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC;"><strong>Particulars</strong></td>
<td width="20%" style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC;"><strong>Destination</strong></td>
<td width="15%" style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC;"><strong>Cost</strong></td>
<td width="12%" style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC;"><strong>Unit(s)</strong></td>
<td width="13%" style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC;"><strong>Total Cost</strong></td>
</tr>';
if (isset($HotelCostBreakUp) && !empty($HotelCostBreakUp) && $displayHotelBreakup == 1) {
foreach ($HotelCostBreakUp as $hcKey => $hcValue) {
$html .= '<tr>
<td colspan="5" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Hotels ' . (count($HotelCostBreakUp) > 1 ? 'Option ' . $hcKey : '') . '</strong></td>
</tr>';
foreach ($hcValue as $hcKey1 => $hcValue1) {
$html .= '<tr>
<td width="40%" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $hcValue1['Title'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $hcValue1['Destination'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $hcValue1['Symbol'] . ' ' . (int) ($hcValue1['NetCost'] / $hcValue1['Nights']) . ' /N</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $hcValue1['Nights'] . ' Night(s)</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $hcValue1['Symbol'] . ' ' . (int) $hcValue1['NetCost'] . '</td>
</tr>';
}
}
}
$NetCostA = array_sum(array_column($this->getQuickTransportdata, 'NetCost'));
if (!empty($this->getQuickTransportdata) && $displayTransferBreakup == 1 && (int) $NetCostA > 0) {
$html .= '<tr>
<td colspan="5" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"> </td>
</tr>';
$html .= '<tr>
<td colspan="5" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Transfers</strong></td>
</tr>';
foreach ($this->getQuickTransportdata as $gtKey => $gtValue) {
if ($gtValue['IsDisplay'] == 1 && (int) $gtValue['NetCost'] > 0) {
$html .= '<tr>
<td width="40%" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $gtValue['Type_Text'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $gtValue['FromPlace'] . '-' . $gtValue['ToPlace'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">-</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">-</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $gtValue['Symbol'] . ' ' . (int) $gtValue['NetCost'] . '</td>
</tr>';
}
}
}
if (!empty($getFlightDetail) && $displayFlightBreakup == 1) {
$html .= '<tr>
<td colspan="5" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"> </td>
</tr>';
$html .= '<tr>
<td colspan="5" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Flight</strong></td>
</tr>';
foreach ($getFlightDetail as $fKey => $fValue) {
$jsonFlightData = json_decode($fValue['encodedata'], 1);
$depCity = explode(',', $jsonFlightData['departureCity']);
$arrCity = explode(',', $jsonFlightData['arrivalCity']);
//echo "<pre>";print_r($jsonFlightData['totalFightCostWithMarkup']);die;
$html .= '<tr>
<td width="40%" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $depCity[0] . '-' . $arrCity[0] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">-</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">-</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">-</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . ($fValue['Symbol'] != '' ? $fValue['Symbol'] : $CurrencySymbol) . ' ' . ((int) $jsonFlightData['totalFightCostWithMarkup'] > 0 ? (int) $jsonFlightData['totalFightCostWithMarkup'] : (int) $jsonFlightData['totalflightcost']) . '</td>
</tr>';
}
}
if (!empty($AddonVisaServiceDetails) && $displayVisaBreakup == 1) {
$html .= '<tr>
<td colspan="5" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"> </td>
</tr>';
$html .= '<tr>
<td colspan="5" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Visa</strong></td>
</tr>';
foreach ($AddonVisaServiceDetails as $vKey => $vValue) {
$html .= '<tr>
<td width="40%" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $vValue['ServiceTitle'] . ' - ' . $vValue['Comment'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">--</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">--</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">-</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . ($vValue['CurrencySymbol'] != '' ? $vValue['CurrencySymbol'] : $CurrencySymbol) . ' ' . (int) $vValue['Cost'] . '</td>
</tr>';
}
}
$html .= '</table></td>
</tr>';
if ($isPdf == 1) {
$html .= '</table><pagebreak></pagebreak><table width="800" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:18px;">';
}
}
if (!empty($this->getTransportDetail) && $this->PackSpecType != 4) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">AVAILABLE TRANSPORT</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">From Date</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">To Date </td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">From</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">To</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Transport Details</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Vehicle</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">No Of Seats</td>
</tr>';
foreach ($this->getTransportDetail as $transferData) {
if ($transferData['IsDisplay'] == 1) {
$TransportCategoryHtml = '';
// echo "<pre>"; print_r($transferData); die;
if ($transferData['TransId'] == 1) {
$transportType = '';
$TransportCategory = (isset($transferData['TransportCategory']) && $transferData['TransportCategory'] != '') ? $transferData['TransportCategory'] : 1;
$TRANSPORT_CATEGORY = unserialize(TRANSPORT_CATEGORY);
$TransportCategoryHtml = isset($TRANSPORT_CATEGORY[$TransportCategory]) ? $TRANSPORT_CATEGORY[$TransportCategory] : '--';
}
$qtyHtml = ((int) $transferData['VehicleQty'] > 1) ? ' (Qty:' . (int) $transferData['VehicleQty'] . ')' : '';
if ($transferData['TransId'] == 3) {
$transportType = 'Bus';
$transferData['Capacity'] = (int) $totalTravelers - (int) $Infants;
}
if ($transferData['TransId'] == 5) {
$transportType = 'Rail';
$transferData['Capacity'] = (int) $totalTravelers - (int) $Infants;
}
$FromCityTitle = ($transferData['FromCityTitle'] != '') ? ' (' . trim($transferData['FromCityTitle']) . ')' : '';
$EnCityTitle = ($transferData['EnCityTitle'] != '') ? ' (' . trim($transferData['EnCityTitle']) . ')' : '';
//echo "<pre>";print_r($transferData);die;
$FromPlace = (isset($transferData['FromPlace']) && $transferData['FromPlace'] != '') ? $transferData['FromPlace'] : '';
$ToPlace = (isset($transferData['ToPlace']) && $transferData['ToPlace'] != '') ? $transferData['ToPlace'] : '';
$FromDate = $ToDate = '';
if (!empty($transferData['FromDate'])) {
$FromDate = ($transferData['FromDate']->format('H') == '00') ? $transferData['FromDate']->format('d-M-y') : $transferData['FromDate']->format('d-M-y H:i');
}
if (!empty($transferData['ToDate'])) {
$ToDate = ($transferData['ToDate']->format('H') == '00') ? $transferData['ToDate']->format('d-M-y') : $transferData['ToDate']->format('d-M-y H:i');
}
$html .= '<tr>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $FromDate . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $ToDate . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $FromPlace . $FromCityTitle . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $ToPlace . $EnCityTitle . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $transportType . $TransportCategoryHtml . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $transferData['Type_Text'] . $qtyHtml . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $transferData['Capacity'] . '</td>
</tr>';
}
}
$html .= '
</table></td>
</tr>';
}
if (!empty($this->getQuickTransportdata) && $this->PackSpecType == 4) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">AVAILABLE TRANSPORT</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">From Date</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">From City</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">To Date</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">To City</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Vehicle Detail</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Transport Details</td>
</tr>';
foreach ($this->getQuickTransportdata as $transferData) {
$TransportCategoryHtml = '';
// echo "<pre>"; print_r($transferData); die;
if ($transferData['TransId'] == 1) {
$transportType = '';
$TransportCategory = (isset($transferData['TransportCategory']) && $transferData['TransportCategory'] != '') ? $transferData['TransportCategory'] : 1;
$TRANSPORT_CATEGORY = unserialize(TRANSPORT_CATEGORY);
$TransportCategoryHtml = isset($TRANSPORT_CATEGORY[$TransportCategory]) ? $TRANSPORT_CATEGORY[$TransportCategory] : '--';
}
$qtyHtml = ((int) $transferData['VehicleQty'] > 1) ? ' (Qty:' . (int) $transferData['VehicleQty'] . ')' : '';
$CapacityHtml = ((int) $transferData['Capacity'] > 0) ? ' (Capacity:' . (int) $transferData['Capacity'] . ')' : '';
if ($transferData['TransId'] == 3) {
$transportType = 'Bus';
$transferData['Capacity'] = (int) $totalTravelers - (int) $Infants;
}
if ($transferData['TransId'] == 5) {
$transportType = 'Rail';
$transferData['Capacity'] = (int) $totalTravelers - (int) $Infants;
}
$FromCityTitle = ($transferData['FromCityTitle'] != '') ? ' (' . trim($transferData['FromCityTitle']) . ')' : '';
$ToCityTitle = ($transferData['ToCityTitle'] != '') ? ' (' . trim($transferData['ToCityTitle']) . ')' : '';
//echo "<pre>";print_r($transferData);die;
$FromPlace = (isset($transferData['FromPlace']) && $transferData['FromPlace'] != '') ? $transferData['FromPlace'] : '';
$ToPlace = (isset($transferData['ToPlace']) && $transferData['ToPlace'] != '') ? $transferData['ToPlace'] : '';
$FromDate = $ToDate = '';
if (!empty($transferData['FromDate'])) {
$FromDate = ($transferData['FromDate']->format('H') == '00') ? $transferData['FromDate']->format('d-M-y') : $transferData['FromDate']->format('d-M-y H:i');
}
if (!empty($transferData['ToDate'])) {
$ToDate = ($transferData['ToDate']->format('H') == '00') ? $transferData['ToDate']->format('d-M-y') : $transferData['ToDate']->format('d-M-y H:i');
}
$html .= '<tr>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $FromDate . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $FromPlace . $FromCityTitle . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $ToDate . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $ToPlace . $ToCityTitle . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $transportType . $TransportCategoryHtml . '</td>
<td style="font-size:12px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $transferData['Type_Text'] . $CapacityHtml . $qtyHtml . '</td>
</tr>';
}
$html .= '
</table></td>
</tr>';
}
$html .= '<tr>
<td colspan="2"> </td>
</tr>';
if ($this->IsBusRoutePackage == 1) {
$busTitle = isset($PackageBusData['BusData']['Title']) ? $PackageBusData['BusData']['Title'] : '';
$SelectedSeatNo = isset($PackageBusData['SelectedSeatNo']) ? implode(', ', $PackageBusData['SelectedSeatNo']) : '';
$pickupLocationName = isset($BusPickupLocation['pickupLocationName']) ? $BusPickupLocation['pickupLocationName'] : '';
$pickupLocationTime = isset($BusPickupLocation['pickupLocationTime']) ? $BusPickupLocation['pickupLocationTime'] : '';
$html .= '<tr>
<td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">' . $PriceDetailsText . ' Bus Details</td>
</tr>
<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC; " width="35%">Bus Name</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; " width="15%">Seat No.</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; " width="25%">Pickup Point & Time</td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $busTitle . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $SelectedSeatNo . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $pickupLocationName . " at " . $pickupLocationTime . '</td>
</tr>
</table>
</td>
</tr>';
}
//echo "<pre>";print_r($PPCostBreakupArr);die;
if (!empty($PPCostBreakupArr['totalCost']['travelerCount']) && (int) $PPCostBreakupArr['totalCost']['cost'] > 0 && $this->EconomyMask != 6) {
if ($PPCostBreakupArr['ShareCombinedFlightPricing'] == 0) {
$PriceDetailsText = 'Package';
}
//echo "<pre>";print_r($PPCostBreakupArr);die;
$html .= '
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">' . $PriceDetailsText . ' Price Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:0;">';
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC; " width="35%">PAX TYPE</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; " width="15%">NO OF PAX</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; " width="25%">COST PER PERSON</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; " width="25%">TOTAL COST</td>
</tr>';
if (!empty($PPCostBreakupArr['SOAdult']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $SOCost = $PPCostBreakupArr['SOAdult']['cost'];
// $SOAdult = getPriceWithOutGST($SOCost, $TaxType, $TaxRate);
// } else {
$SOAdult = $PPCostBreakupArr['SOAdult']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Adult Single Sharing</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['SOAdult']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($SOAdult / $PPCostBreakupArr['SOAdult']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($SOAdult,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['Adult']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $ACost = $PPCostBreakupArr['Adult']['cost'];
// $ATax = $PPCostBreakupArr['Adult']['tax'];
// $AdultCost = $ACost - $ATax;
//$AdultCost = getPriceWithOutGST($ACost, $TaxType, $TaxRate);
// } else {
$AdultCost = $PPCostBreakupArr['Adult']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Adult Twin Sharing </strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['Adult']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultCost / $PPCostBreakupArr['Adult']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultCost,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['TOAdult']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $TOCost = $PPCostBreakupArr['TOAdult']['cost'];
// $TOAdult = getPriceWithOutGST($SOCost, $TaxType, $TaxRate);
// } else {
$TOAdult = $PPCostBreakupArr['TOAdult']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Adult Triple Sharing</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['TOAdult']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($TOAdult / $PPCostBreakupArr['TOAdult']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($TOAdult,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['AdultQuad']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $QuadCost = $PPCostBreakupArr['AdultQuad']['cost'];
// $AdultQuad = getPriceWithOutGST($QuadCost, $TaxType, $TaxRate);
// } else {
$AdultQuad = $PPCostBreakupArr['AdultQuad']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Adult With Quad</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['AdultQuad']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultQuad / $PPCostBreakupArr['AdultQuad']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultQuad,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['AdultQuint']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $QuintCost = $PPCostBreakupArr['AdultQuint']['cost'];
// $AdultQuint = getPriceWithOutGST($QuintCost, $TaxType, $TaxRate);
// } else {
$AdultQuint = $PPCostBreakupArr['AdultQuint']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Adult With Quint</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['AdultQuint']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultQuint / $PPCostBreakupArr['AdultQuint']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultQuint,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['AdultHexa']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $HexaCost = $PPCostBreakupArr['AdultHexa']['cost'];
// $AdultHexa = getPriceWithOutGST($HexaCost, $TaxType, $TaxRate);
// } else {
$AdultHexa = $PPCostBreakupArr['AdultHexa']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Adult With 6 Sharing</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['AdultHexa']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultHexa / $PPCostBreakupArr['AdultHexa']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultHexa,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['AdultExtraBed']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $AEBCost = $PPCostBreakupArr['AdultExtraBed']['cost'];
// $AdultExtraBed = getPriceWithOutGST($AEBCost, $TaxType, $TaxRate);
// } else {
$AdultExtraBed = $PPCostBreakupArr['AdultExtraBed']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Adult Extra Bed</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['AdultExtraBed']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultExtraBed / $PPCostBreakupArr['AdultExtraBed']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($AdultExtraBed,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['ChildFree']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $CFCost = $PPCostBreakupArr['ChildFree']['cost'];
// $ChildFree = getPriceWithOutGST($CFCost, $TaxType, $TaxRate);
// } else {
$ChildFree = $PPCostBreakupArr['ChildFree']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Child Free</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['ChildFree']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildFree / $PPCostBreakupArr['ChildFree']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildFree,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['ChildWithOutBed']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $CWOBCost = $PPCostBreakupArr['ChildWithOutBed']['cost'];
// $ChildWithOutBed = getPriceWithOutGST($CWOBCost, $TaxType, $TaxRate);
// } else {
$ChildWithOutBed = $PPCostBreakupArr['ChildWithOutBed']['cost'];
// }
$yrsText = (!empty($PPCostBreakupArr['ChildWithOutBed2T4']['travelerCount'])) ? ' (5-11 Yrs.)' : '';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Child WithOut Bed ' . $yrsText . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['ChildWithOutBed']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildWithOutBed / $PPCostBreakupArr['ChildWithOutBed']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildWithOutBed,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['ChildExtraBed']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $CEBCost = $PPCostBreakupArr['ChildExtraBed']['cost'];
// $ChildExtraBed = getPriceWithOutGST($CEBCost, $TaxType, $TaxRate);
// } else {
$ChildExtraBed = $PPCostBreakupArr['ChildExtraBed']['cost'];
// }
$yrsText1 = (!empty($PPCostBreakupArr['ChildExtraBed2T4']['travelerCount'])) ? ' (5-11 Yrs.)' : '';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Child Extra Bed ' . $yrsText1 . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['ChildExtraBed']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildExtraBed / $PPCostBreakupArr['ChildExtraBed']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildExtraBed,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['ChildWithOutBed2T4']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $CWOBCost = $PPCostBreakupArr['ChildWithOutBed2T4']['cost'];
// $ChildWithOutBed = getPriceWithOutGST($CWOBCost, $TaxType, $TaxRate);
// } else {
$ChildWithOutBed = $PPCostBreakupArr['ChildWithOutBed2T4']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Child WithOut Bed (2-4 Yrs.)</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['ChildWithOutBed2T4']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildWithOutBed / $PPCostBreakupArr['ChildWithOutBed2T4']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildWithOutBed,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['ChildExtraBed2T4']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $CEBCost = $PPCostBreakupArr['ChildExtraBed2T4']['cost'];
// $ChildExtraBed = getPriceWithOutGST($CEBCost, $TaxType, $TaxRate);
// } else {
$ChildExtraBed = $PPCostBreakupArr['ChildExtraBed2T4']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Child Extra Bed (2-4 Yrs.)</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['ChildExtraBed2T4']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildExtraBed / $PPCostBreakupArr['ChildExtraBed2T4']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($ChildExtraBed,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['InfantCount']['travelerCount'])) {
// if ($this->IsShareWithGST == 0 && $ShareCombinedFlightPricing == 0) {
// $ICost = $PPCostBreakupArr['InfantCount']['cost'];
// $InfantCount = getPriceWithOutGST($ICost, $TaxType, $TaxRate);
// } else {
$InfantCount = $PPCostBreakupArr['InfantCount']['cost'];
// }
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Infant Count</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['InfantCount']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($InfantCount / $PPCostBreakupArr['InfantCount']['travelerCount'],$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($InfantCount,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['totalCost']['travelerCount'])) {
$totalCost = $PPCostBreakupArr['totalCost']['cost'];
if ($TaxTypeTitle != '') {
if ($this->IsShareWithGST == 0) {
if ($IsDefaultId != 4 && $IsDefaultId != 3) {
$GSTContent = ' (Excl. ' . $TaxTypeTitle . ') ';
}
} else {
if ($IsDefaultId == 4 || $IsDefaultId == 3) {
$GSTContent = '';
} else if ($IsDefaultId == 5) {
$GSTContent = ' (Excl. ' . $TaxTypeTitle . ') ';
} else {
$GSTContent = ' (Incl. ' . $TaxTypeTitle . ') ';
}
}
}
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Total Cost' . $GSTContent . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $PPCostBreakupArr['totalCost']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;"></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $PPCostBreakupArr['tocurrencySymbolForPackage'] . " " . moneyFormatIndia($totalCost,$PPCostBreakupArr['tocurrencySymbolForPackage']) . '</td>
</tr>';
}
if (isset($PPCostBreakupArr['tocurrencySymbolForPackage']) && ($PPCostBreakupArr['tocurrencySymbolForPackage'] != $PPCostBreakupArr['tocurrencySymbol'])) {
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Exchange Rate Today ('.($PPCostBreakupArr['tocurrencySymbolForPackage']).' → '.($PPCostBreakupArr['tocurrencySymbol']) .') : '.($PPCostBreakupArr['ConversionRateBase']).'</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;"></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . ($PPCostBreakupArr['tocurrencySymbol']) . ' ' . moneyFormatIndia($PPCostBreakupArr['ConversionRateBaseTotalCost'], $PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
$html .= ' </table></td>
</tr>';
}
$totalflightcost = 0;
if (isset($getFlightDetail) && count($getFlightDetail) >= 1 && $this->ShareCombinedFlightPricing == 0) {
if (!empty($FlightCostArray)) {
$totalflightcost = (float) $FlightCostArray['TotalCost'];
$totalcost_wom = (float) $FlightCostArray['Cost'];
$total_markup = (float) $FlightCostArray['Markup'] + $FlightCostArray['ExtraMarkUp'] - $FlightCostArray['Discount'];
$total_gst = $FlightCostArray['Tax'];
} else {
$totalflightcost = (float) $getFlightDetail[0]['TotalCost'] + (isset($getFlightDetail[1]['TotalCost']) ? (float) $getFlightDetail[1]['TotalCost'] : 0);
$totalcost_wom = (float) $getFlightDetail[0]['Cost'] + (isset($getFlightDetail[1]['Cost']) ? (float) $getFlightDetail[1]['Cost'] : 0);
$total_markup = (float) $getFlightDetail[0]['MarkUp'] + (isset($getFlightDetail[1]['MarkUp']) ? (float) $getFlightDetail[1]['MarkUp'] : 0);
$total_gst = $totalflightcost - $totalcost_wom - $total_markup;
}
// echo $totalcost_wom.'-'.$total_markup;die;
$ckeckPriceFinalm = $ckeckPriceFinal - (float) $totalcost_wom - (float) $total_markup;
$mTotalGST = $this->TotalGST - $total_gst;
} else {
$ckeckPriceFinalm = $ckeckPriceFinal;
$mTotalGST = $this->TotalGST;
}
if ($this->IsShareWithGST == 0 && $this->PackSpecType != 4) {
if (!empty($VisaCostArray) && $VisaCostArray['ShareCombined'] == 0) {
$ckeckPriceFinalm = $ckeckPriceFinalm - $VisaCostArray['Cost'] - $VisaCostArray['Markup'] - $VisaCostArray['ExtraMarkUp'] + $VisaCostArray['Discount'];
$mTotalGST = $mTotalGST - $VisaCostArray['Tax'];
}
if ($IsPriceShared == 1 && ((int) ($mTotalGST + $totalGstList) > 0)) {
// if ($sentSourceCurrencyPrice == 0) {
$html .= '<tr><td> </td></tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-bottom:1px solid #CCC;">';
$html .= '<tr>
<td width="60%" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;" align="right" ><strong>Package Price ' . $ExclTaxTypeTitle . ' : </strong></td>
<td width="40%" style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $ckeckPriceFinalm + $actualPriceWithOutMarkup,$sentPriceFinalArr) . '</td>
</tr>';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;" align="right"><strong>Total ' . $TaxTypeTitle . ' : </strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $mTotalGST + $totalGstList,$sentPriceFinalArr) . '</td>
</tr>';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;" align="right"><strong>Package Price' . $gstText . ' : </strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $ckeckPriceFinalm + (float) $mTotalGST + $actualPricewithout,$sentPriceFinalArr) . '</td>
</tr>
</table></td>
</tr>';
// } else {
// $html .= '
// <tr>
// <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-bottom:1px solid #CCC;">
// <tr>
// <td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;" align="right" width="50%"><strong> Price ' . $ExclTaxTypeTitle . ' : </strong></td>
// <td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;" width="25%">' . $sentPriceFinal . '</td>
// </tr>
// <tr>
// <td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;" align="right"><strong>Total ' . $TaxTypeTitle . ' : </strong></td>
// <td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . (float) $this->TotalGST . '</td>
// </tr>
// <tr>
// <td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;" align="right"><strong>Package Price' . $gstText . ' : </strong></td>
// <td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . ((float) $ckeckPriceFinal + (float) $this->TotalGST) . '</td>
//
// </tr>
// </table></td>
// </tr>';
// }
}
}
if (!empty($PPCostBreakupArr['FLightTotal']['travelerCount']) && $PPCostBreakupArr['isShareWithFlight'] == 1 && $PPCostBreakupArr['ShareCombinedFlightPricing'] == 0) {
$html .= '
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;"> Flight Price Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:0;">';
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="40%">PAX TYPE</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="15%">NO OF PAX</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="25%">COST PER PERSON</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="25%">TOTAL COST</td>
</tr>';
if (!empty($PPCostBreakupArr['FlightAdult']['travelerCount'])) {
$FlightAdult = $PPCostBreakupArr['FlightAdult']['cost'];
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Adult </strong></td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['FlightAdult']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($FlightAdult / $PPCostBreakupArr['FlightAdult']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($FlightAdult, 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['FLightChild']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Child </strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['FLightChild']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($PPCostBreakupArr['FLightChild']['cost'] / $PPCostBreakupArr['FLightChild']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['FLightChild']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['FLightInfant']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Infant </strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['FLightInfant']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($PPCostBreakupArr['FLightInfant']['cost'] / $PPCostBreakupArr['FLightInfant']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['FLightInfant']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['FLightTotal']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Total Cost' . $GSTContent . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['FLightTotal']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['FLightTotal']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
$html .= ' </table></td></tr>';
}
//echo"<pre>";print_r($PPCostBreakupArr['VisaTotal']);die('dd');
//if(count($this->GetPackageFLightData) >= 1){
if ($this->PackSpecType != 4) {
if ($this->IsShareWithGST == 1) {
if (!empty($PPCostBreakupArr['VisaTotal']['travelerCount'])) {
$html .= '
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;"> Visa Price Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:0;">';
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="40%">PAX TYPE</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="15%">NO OF PAX</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="25%">COST PER PERSON</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="25%">TOTAL COST</td>
</tr>';
// echo"<pre>";print_r($PPCostBreakupArr['VisaAdult']['travelerCount']);die('dd');
if (!empty($PPCostBreakupArr['VisaAdult']['travelerCount'])) {
$VisaAdult = $PPCostBreakupArr['VisaAdult']['cost'];
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Adult </strong></td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['VisaAdult']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($VisaAdult / $PPCostBreakupArr['VisaAdult']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($VisaAdult, 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['VisaChild']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Child </strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['VisaChild']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($PPCostBreakupArr['VisaChild']['cost'] / $PPCostBreakupArr['VisaChild']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['VisaChild']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['VisaInfant']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Infant </strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['VisaInfant']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($PPCostBreakupArr['VisaInfant']['cost'] / $PPCostBreakupArr['VisaInfant']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['VisaInfant']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['VisaTotal']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Total Cost' . $GSTContent . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['VisaTotal']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['VisaTotal']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
$html .= ' </table></td></tr>';
}
// echo "<pre>";print_r($VisaCostArray);die;
$ShareCombinedVisa = isset($VisaCostArray['ShareCombined']) ? (int)$VisaCostArray['ShareCombined'] : 0;
$ShareWithComponentVisa = isset($VisaCostArray['ShareWithComponent']) ? (int)$VisaCostArray['ShareWithComponent'] : 0;
$VisaTotalCost = isset($VisaCostArray['TotalCost']) ? (float)$VisaCostArray['TotalCost'] : 0;
$VisaTotal = isset($PPCostBreakupArr['VisaTotal']['cost']) ? (float)$PPCostBreakupArr['VisaTotal']['cost'] : 0;
if ((isset($getFlightDetail) && count($getFlightDetail) >= 1 && $this->ShareCombinedFlightPricing == 0) || ((int)$VisaTotalCost > 0 && $ShareCombinedVisa == 0)) {
if ($this->IsPriceShared == 1) {
$html .= '<tr><td colspan="12" style="font-size:16px; color:#222; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;"><table width="100%" align="right" cellspacing="5" cellpadding="0" style="margin-top:5px;">
<tr><td width="' . $width1 . '" align="right" style="font-size:16px;"><strong>Package Price</strong><span style="font-size:11px;"> ' . $gstText . '</span> : </strong></td>
<td width="' . $width2 . '" align="left" style="font-size:16px;"><strong> ' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $ckeckPriceFinal - (float) $totalflightcost - ((int) $VisaCostArray['ShareCombined'] == 0 ? (float) $VisaCostArray['TotalCost'] : 0),$sentPriceFinalArr) . '</strong></td>
</tr>';
if (isset($getFlightDetail) && count($getFlightDetail) >= 1 && $this->ShareCombinedFlightPricing == 0) {
$flightDetailTotalTmp = $totalflightcost;
$VisaHeadingText = '';
if((int)$ShareWithComponentVisa == 1){
$VisaHeadingText = 'Visa';
$flightDetailTotalTmp = $flightDetailTotalTmp + ($VisaTotalCost > 0 ? $VisaTotalCost : 0);
}
$html .= '<tr>
<td width="' . $width1 . '" align="right" style="font-size:16px;"><strong>Flight '.$VisaHeadingText.' Cost</strong><span style="font-size:11px;"> ' . $IncTaxTypeTitle . '</span> : </strong></td>
<td width="' . $width2 . '" align="left" style="font-size:16px;"><strong> ' . $sentPriceFinalArr . ' ' . moneyFormatIndia($flightDetailTotalTmp,$sentPriceFinalArr) . '</strong></td>
</tr>';
}
if ((int)$VisaTotal > 0 && ($ShareCombinedVisa == 0 && $ShareWithComponentVisa == 0)) {
$html .= '<tr>
<td width="' . $width1 . '" align="right" style="font-size:16px;"><strong>Visa Cost</strong><span style="font-size:11px;"> ' . $IncTaxTypeTitle . '</span> : </strong></td>
<td width="' . $width2 . '" align="left" style="font-size:16px;"><strong> ' . $sentPriceFinalArr . ' ' . moneyFormatIndia($VisaTotalCost,$sentPriceFinalArr) . '</strong></td>
</tr>';
}
$html .= '</table></td></tr>';
}
} else {
// if ($this->IsPriceShared == 1) {
// $html .= ' <tr>
// <td colspan="12" style="font-size:16px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;"><strong> Package Price</strong> <span style="font-size:11px;">' . $gstText . '</span> = <strong>' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $ckeckPriceFinal) . '</strong><br />';
// $html .= '</td></tr>';
// }
}
} else {
$ShareCombinedVisa = isset($VisaCostArray['ShareCombined']) ? (int)$VisaCostArray['ShareCombined'] : 0;
$ShareWithComponentVisa = isset($VisaCostArray['ShareWithComponent']) ? (int)$VisaCostArray['ShareWithComponent'] : 0;
$VisaCostt = $VisaCostArray['Cost'] + $VisaCostArray['Markup'];
$VisaTaxt = $VisaCostArray['Tax'];
$VisaTotalCostt = $VisaCostArray['TotalCost'];
$total_gstTmp = $total_gst;
$totalflightcostTmp = $totalflightcost;
$TextVisaTe = '';
if(!isset($PPCostBreakupArr['VisaTotal']['travelerCount']) && isset($VisaCostArray['TotalCost']) && $VisaTaxt > 0 && $ShareCombinedVisa == 0 && $ShareWithComponentVisa == 1){
$totalflightcostTmp = $totalflightcostTmp + $VisaTotalCostt;
$total_gstTmp = $total_gstTmp + $VisaTaxt;
$TextVisaTe = 'Visa';
}
if ($this->IsPriceShared == 1 && $total_gstTmp > 0) {
$html .= '<tr><td> </td></tr><tr><td colspan="12" style="font-size:16px; color:#222; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;">';
if (isset($getFlightDetail) && count($getFlightDetail) >= 1 && $this->ShareCombinedFlightPricing == 0) {
$html .= '<table width="100%" align="right" cellspacing="0" cellpadding="0" style="border-bottom:1px solid #CCC;">
<tr>
<td align="right" width="60%" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Flight '.$TextVisaTe.' Cost ' . $ExclTaxTypeTitle . ' :</strong></td>
<td align="left" width="40%" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $totalflightcostTmp - $total_gstTmp,$sentPriceFinalArr) . '</td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Total Flight '.$TextVisaTe.' ' . $TaxTypeTitle . ' :</strong></td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $total_gstTmp,$sentPriceFinalArr) . '</td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Flight '.$TextVisaTe.' Cost ' . $gstText . ' :</strong></td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $totalflightcostTmp,$sentPriceFinalArr) . '</td>
</tr>
</table>';
}
$html .= '</td></tr></tr>';
}
if (!empty($PPCostBreakupArr['VisaTotal']['travelerCount'])) {
$html .= '
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;"> Visa Price Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:0;">';
$html .= '<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="40%">PAX TYPE</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="15%">NO OF PAX</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="25%">COST PER PERSON</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC" width="25%">TOTAL COST</td>
</tr>';
// echo"<pre>";print_r($PPCostBreakupArr['VisaAdult']['travelerCount']);die('dd');
if (!empty($PPCostBreakupArr['VisaAdult']['travelerCount'])) {
$VisaAdult = $PPCostBreakupArr['VisaAdult']['cost'];
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Adult </strong></td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['VisaAdult']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($VisaAdult / $PPCostBreakupArr['VisaAdult']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px;background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($VisaAdult, 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['VisaChild']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Child </strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['VisaChild']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($PPCostBreakupArr['VisaChild']['cost'] / $PPCostBreakupArr['VisaChild']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['VisaChild']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['VisaInfant']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Infant </strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['VisaInfant']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round(($PPCostBreakupArr['VisaInfant']['cost'] / $PPCostBreakupArr['VisaInfant']['travelerCount']), 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['VisaInfant']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
if (!empty($PPCostBreakupArr['VisaTotal']['travelerCount'])) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"><strong>Total Cost' . $GSTContent . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['VisaTotal']['travelerCount'] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;"></td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9;border-right:1px solid #CCC; border-bottom:1px solid #CCC;">' . $PPCostBreakupArr['tocurrencySymbol'] . " " . moneyFormatIndia(round($PPCostBreakupArr['VisaTotal']['cost'], 2),$PPCostBreakupArr['tocurrencySymbol']) . '</td>
</tr>';
}
$html .= ' </table></td></tr>';
}
if (!isset($PPCostBreakupArr['VisaTotal']['travelerCount']) && isset($VisaCostArray['TotalCost']) && $VisaCostArray['Tax'] > 0 && $ShareCombinedVisa == 0 && $ShareWithComponentVisa == 0) {
$html .= '<tr><td> </td></tr><tr><td colspan="12" style="font-size:16px; color:#222; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;">';
$html .= '<table width="100%" align="right" cellspacing="0" cellpadding="0" style="border-bottom:1px solid #CCC;">
<tr>
<td align="right" width="60%" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Visa Cost ' . $ExclTaxTypeTitle . ' :</strong></td>
<td align="left" width="40%" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia($VisaCostArray['Cost'] + $VisaCostArray['Markup'],$sentPriceFinalArr) . '</td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Total Visa ' . $TaxTypeTitle . ' :</strong></td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $VisaCostArray['Tax'],$sentPriceFinalArr) . '</td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Visa Cost ' . $gstText . ' :</strong></td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $VisaCostArray['TotalCost'],$sentPriceFinalArr) . '</td>
</tr>
</table>';
$html .= '</td></tr></tr>';
}
}
// if ($IsB2BCustomer == 0) {
// if ($this->IsPriceShared == 1) {
// $html .= '<tr><td colspan="2" style=" background:#f9f9f9; border-bottom:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC;padding:5px 10px;"><table width="50%" border="0" cellspacing="0" cellpadding="0" align="center">
// <tr>
// <td style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center; border-bottom:0px solid #CCC;">';
// $html .= '<a href="' . $this->shared_url . '" target="_blank" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:normal; ">CLICK HERE to view more details and book online.</a>';
// $html .= '</td></tr></table></td></tr>';
// } else {
// $html .= '<tr><td colspan="2" style=" background:#f9f9f9; border-bottom:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC;padding:5px 10px;"><table width="50%" border="0" cellspacing="0" cellpadding="0" align="center">
// <tr>
// <td style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center; border-bottom:0px solid #CCC;">';
// $html .= '<a href="' . $this->shared_url . '" target="_blank" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:normal; ">CLICK HERE to view more details</a>';
// $html .= '</td></tr></table></td></tr>';
// }
// }
}
if ($this->PackSpecType != 4) {
if (!empty($PPCostBreakupArr['VisaTotal']['travelerCount'])) {
if ($this->IsShareWithGST == 0) {
if ($this->IsPriceShared == 1 && $VisaCostArray['Tax'] > 0) {
$html .= '<tr><td> </td></tr><tr><td colspan="12" style="font-size:16px; color:#222; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;">';
if (!empty($VisaCostArray)) {
$html .= '<table width="100%" align="right" cellspacing="0" cellpadding="0" style="border-bottom:1px solid #CCC;">
<tr>
<td align="right" width="60%" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Visa Cost ' . $ExclTaxTypeTitle . ' :</strong></td>
<td align="left" width="40%" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia($VisaCostArray['TotalCost'] - $VisaCostArray['Tax'],$sentPriceFinalArr) . '</td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Total Visa ' . $TaxTypeTitle . ' :</strong></td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $VisaCostArray['Tax'],$sentPriceFinalArr) . '</td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>Visa Cost ' . $gstText . ' :</strong></td>
<td align="left" valign="top" bgcolor="#f9f9f9" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $VisaCostArray['TotalCost'],$sentPriceFinalArr) . '</td>
</tr>
</table>';
}
$html .= '</td></tr></tr>';
}
}
}
}
if ($this->EconomyMask == 7 || (in_array($this->EconomyMask, $EconomyMaskArr))) {
if ($this->IsShareWithGST == 1) {
// if (isset($getTCSServicesArray[0]['displayTCS']) && $getTCSServicesArray[0]['displayTCS'] == 1) {
// $html .= '<tr>
// <td align="right" width="55%" valign="top" bgcolor="#FFFFFF" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:right;">' . $packageText . ' Price ' . $gstText . ':</td>
// <td align="left" width="45%" valign="top" bgcolor="#FFFFFF" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:left;">' . ( $sentPriceFinal) . '</td>
// </tr>';
// }
$mTotalGST = 0;
} else {
$html .= '<tr>
<td align="right" width="55%" valign="top" bgcolor="#FFFFFF" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:right;"> ' . $packageText . ' Price ' . $ExclTaxTypeTitle . '</td>
<td width="45%" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:left;">' . $sentPriceFinal . '</td>
</tr>
<tr>
<td align="right" width="55%" valign="top" bgcolor="#FFFFFF" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:right;">Total ' . $TaxTypeTitle . '</td>
<td width="45%" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:left;">' . $sentPriceFinalArr . ' ' . (float) $this->TotalGST . '</td>
</tr>';
$mTotalGST = $this->TotalGST;
}
$TCSTax = 0;
// if (isset($getTCSServicesArray[0]['displayTCS']) && $getTCSServicesArray[0]['displayTCS'] == 1) {
// $TCSTax = (int) $getTCSServicesArray[0]['Tax'];
//
// $html .= '<tr>
// <td align="right" width="55%" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:right;">TCS Cost:</td>
// <td width="45%" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:left;">' . $CurrencySymbol . ' ' . $TCSTax . '</td>
// </tr>';
// }
$html .= '<tr>
<td align="right" width="55%" valign="top" bgcolor="#FFFFFF" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:right;">' . $packageText . ' Price ' . $gstText . ':</td>
<td align="left" width="45%" valign="top" bgcolor="#FFFFFF" style="font-size:16px; color:#222; padding:5px 10px; border-top:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:left;">' . $sentPriceFinalArr . ' ' . ((float) $ckeckPriceFinal + (float) $mTotalGST + (float) $TCSTax) . '</td>
</tr>';
if ($this->isDisplayB2BContent == 0 || $IsB2BCustomer == 0) {
$html .= '
<tr><td colspan="2" style=" background:#f9f9f9; border-bottom:1px solid #CCC;border-right:1px solid #CCC; border-left:1px solid #CCC;padding:5px 10px;"><table width="50%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center; border-bottom:0px solid #CCC;">';
if ($IsB2BCustomer == 0) {
$html .= '<a href="' . $shared_url . '" target="_blank" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:; ">CLICK HERE to view more details and book online</a>';
} else {
$html .= '<a href="' . $shared_url . '" target="_blank" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:; ">CLICK HERE to view more details</a>';
}
$html .= '</td></tr>';
$html .= '<tr>
<td style=" color:red; padding:10px; text-align:center;">';
if (isset($this->packagePdf) && $this->packagePdf != '') {
$html .= '<a href="' . Catabatic_Helper::getSiteUrl() . '/public/upload/media/agency/' . $AgencySysId . '/pdf/' . $this->StartDate . '/' . $this->packagePdf . '" target="_blank" style="text-decoration:none; color:red; font-size:14px; font-weight:; ">Or Click Here to Directly Download PDF</a>';
}
$html .= '</td></tr></table></td></tr>';
}
}
$html .= '<tr>
<td colspan="2"> </td>
</tr>';
if ($this->PackSpecType != 4) {
if ($IsPriceShared == 1) {
$TCSTax = 0;
// if (isset($getTCSServicesArray[0]['displayTCS']) && $getTCSServicesArray[0]['displayTCS'] == 1) {
// $TCSTax = (int) $getTCSServicesArray[0]['Tax'];
// if ($this->IsShareWithGST == 1 || $mTotalGST == 0) {
// $html .= '<tr>
// <td colspan="12" style="font-size:16px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;">
// <table width="100%" align="right" cellspacing="0" cellpadding="0">
// <tr>
// <td width="' . $width1 . '" align="right" style="font-size:16px;"><strong>Package Price</strong><span style="font-size:11px;">' . $gstText . '</span> : </td>
// <td width="' . $width2 . '" align="left" style="font-size:16px;"><strong> ' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) ($pricewithGST)) . '</strong></td>
// </tr>
// </table>
// </td>
// </tr>';
// }
// $html .= '<tr>
// <td colspan="12" style="font-size:16px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;">
// <table width="100%" align="right" cellspacing="0" cellpadding="0">
// <tr>
// <td width="' . $width1 . '" align="right" style="font-size:16px;"><strong> TCS Price</strong> : </td>
// <td width="' . $width2 . '" align="left" style="font-size:16px;"><strong> ' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) $TCSTax) . '</strong></td>
// </tr>
// </table>
//
// </td>
// </tr>';
// }
if ((int) $this->CouponDscount > 0) {
$html .= '<tr>
<td colspan="12" style="font-size:16px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;">
<table width="100%" align="right" cellspacing="0" cellpadding="0">
<tr>
<td width="' . $width1 . '" align="right" style="font-size:16px;"><strong>Package Price</strong><span style="font-size:11px;">' . $gstText . '</span>: </strong></td>
<td width="' . $width2 . '" align="left" style="font-size:16px;"><strong> ' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) ($pricewithGST + $TCSTax + $this->CouponDscount),$sentPriceFinalArr) . '</strong></td>
</tr>
</table>
</td>
</tr>';
$html .= '<tr>
<td colspan="12" style="font-size:16px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;">
<table width="100%" align="right" cellspacing="0" cellpadding="0">
<tr>
<td width="' . $width1 . '" align="right" style="font-size:16px;"><strong>Discount</strong>: </strong></td>
<td width="' . $width2 . '" align="left" style="font-size:16px;"><strong> ' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) ($this->CouponDscount),$sentPriceFinalArr) . '</strong></td>
</tr>
</table>
</td>
</tr>';
}
$html .= '<tr>
<td colspan="12" style="font-size:16px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;">
<table width="100%" align="right" cellspacing="0" cellpadding="0">
<tr>
<td width="' . $width1 . '" align="right" style="font-size:16px;"><strong>Total Package Price</strong><span style="font-size:11px;">' . $gstText . '</span> : </strong></td>
<td width="' . $width2 . '" align="left" >'
. ' <strong style="font-size:16px;"> ' . $sentPriceFinalArr . ' ' . moneyFormatIndia((float) ($pricewithGST + $TCSTax),$sentPriceFinalArr) . '</strong>
<strong style="font-size:16px;">'.(($sentSourceCurrencyPrice > 0) ? ' or '.$sentSourceCurrencySymbol.' '.moneyFormatIndia($sentSourceCurrencyPrice,$sentSourceCurrencySymbol) : '').'</strong>
</td>
</tr>
</table>
</td>
</tr>';
} else {
$html .= '<tr>
<td colspan="12" style="font-size:16px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;"><strong>Package Price Range</strong> = <strong> ' . $sentPriceFinal . '</strong></td>
</tr>';
}
if (isset($getTCSServicesArray[0]['displayTCS']) && $getTCSServicesArray[0]['displayTCS'] == 1 && $getTCSServicesArray[0]['Tax'] > 0) {
$html .= '<tr >
<td colspan="12" style="font-size:14px; color:#222; padding:5px 10px; background:#f9f9f9; text-align:center;">
<table style="border-top:2px solid #ddd;width:100%; border-bottom:2px solid #ddd;width:100%;">
<tr>
<td style="font-size:14px; color:#222; padding:5px 10px; background:#f9f9f9; text-align:center;">
<div>Approx. <b>TCS amount: ' . trim($getTCSServicesArray[0]['CurrencySymbol']) . ' ' . (int) trim($getTCSServicesArray[0]['Tax']) . '/- </b>to be paid extra</div>
<div>Above calculation is an estimate only and final amt will be calculated based on Foreign spent in </div>
<div>the current financial year against your PAN card. </div>
<br>
<div>TCS is not a cost or extra tax and can be claimed in your IT return.</div>
</td>
</tr>
</table>
</td>
<tr>';
}
if ($B2bText != '') {
$html .= '<tr>
<td colspan="12" style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center"><table width="40%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>';
if ($IsB2BCustomer == 1) {
$html .= '<td style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center;"><a target="_blank" href="' . $shared_url . '" style="text-decoration:none ; color:#FFFFFF ; font-size:16px; font-weight:normal; ">
' . $B2bText . '</a></td>';
} else if ($this->IsPriceShared == 1) {
$html .= '<td style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center;"><a target="_blank" href="' . $shared_url . '" style="text-decoration:none ; color:#FFFFFF ; font-size:16px; font-weight:normal; ">
Click here to view details and book now</a></td>';
} else {
$html .= '<td style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center;"><a target="_blank" href="' . $shared_url . '" style="text-decoration:none ; color:#FFFFFF ; font-size:16px; font-weight:normal; ">
Click here to view details</a></td>';
}
$html .= '</tr>
</table></td>
</tr>';
} else {
$html .= '<tr>
<td> </td>
<tr>';
}
}
if (isset($getFlightDetail[0]['AirlineSysId']) && !empty($getFlightDetail[0]['AirlineSysId'])) {
$html .= '<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">Flight Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:0;">
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">';
$flagsep = 0;
foreach ($getFlightDetail as $flightVal) {
$flightjsonInfo = json_decode($flightVal['encodedata'], 1);
//echo "<pre>"; print_r($flightjsonInfo); die;
$depCity = explode(',', $flightjsonInfo['departureCity']);
$arrivaCity = explode(',', $flightjsonInfo['arrivalCity']);
if (!empty($depCity) && !empty($arrivaCity)) {
$titalHead = $depCity[0] . ' to ' . $arrivaCity[0] . ' Flight';
} else {
$titalHead = 'Flight';
}
$refundType = $flightjsonInfo['refundableFlight'] == 1 ? "Yes" : "No";
$stopOver = ($flightjsonInfo['stops'] > 0) ? trim($flightjsonInfo['stopOver']) : '';
if ($flightjsonInfo['stops'] == 0) {
$stp = "Non Stop";
} elseif ($flightjsonInfo['stops'] == 1) {
$stp = "1 Stop";
} elseif ($flightjsonInfo['stops'] == 2) {
$stp = "2 Stop";
} else {
$stp = "3 & More";
}
$depaartureDate = DateTime::createFromFormat('d/m/Y', $flightjsonInfo['depaartureDate']);
$depaartureDate = ($depaartureDate != '') ? $depaartureDate->format('d-M-y') : '';
$arrivalDate = DateTime::createFromFormat('d/m/Y', $flightjsonInfo['arrivalDate']);
$arrivalDate = ($arrivalDate != '') ? $arrivalDate->format('d-M-y') : '';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:10px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-left:1px solid #CCC; border-bottom:0;">
<tbody>
<tr>
<td colspan="6" style="background:#666; padding:7px 10px; color:#fff; font-size:13px; "><strong>' . $titalHead . '</strong></td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Airline/ Flight No</td>
<td style="font-size:13px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Departure</td>
<td style="font-size:13px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Arrival</td>
<td style="font-size:13px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Stop</td>
<td style="font-size:13px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">Refundable</td>
</tr>
<tr>
<td style="font-size:12px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $flightjsonInfo['AirlineName'] . '<br> ' . $flightjsonInfo['FlightNo'] . '</td>
<td style="font-size:12px; color:#222; padding:5px 5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $flightjsonInfo['departureCity'] . ' <br>' . $depaartureDate . ' | ' . $flightjsonInfo['depaartureTime'] . '</td>
<td style="font-size:12px; color:#222; padding:5px 5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $flightjsonInfo['arrivalCity'] . ' <br>' . $arrivalDate . ' | ' . $flightjsonInfo['arrivalTime'] . '</td>
<td style="font-size:12px; color:#222; padding:5px 5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $stp . '<br>' . $stopOver . '</td>
<td style="font-size:12px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $refundType . '</td>
</tr>
</tbody></table></td></tr>';
if (isset($flightjsonInfo['priceShowSeparately']) && $flightjsonInfo['priceShowSeparately'] == 1) {
$html .= '<tr>
<td colspan="12" style="font-size:16px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center;"><strong>Flight Cost in additional to package</strong> <span style="font-size:11px;">' . $IncTaxTypeTitle . '</span> = <strong>' . $CurrencySymbol . ' ' . $flightjsonInfo['totalFightCostWithMarkup'] . ' </strong></td>
</tr>
<tr>
<td colspan="12" style="font-size:13px; color:#222; padding:5px 7px; border-right:1px solid #CCC; border-bottom:0px solid #CCC; background:#f9f9f9; text-align:center"><table width="40%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="background:' . $buttonBgColr . '; color:#fff; padding:10px; text-align:center;"><a href="' . $shared_url . '" style="text-decoration:none; color:#FFF; font-size:16px; font-weight:; ">Click here to view details and book now</a></td>
</tr>
</table></td>
</tr>';
}
}
$html .= '</table></td>
</tr>';
$html .= ' <tr><td> </td></tr>';
} else if (isset($getFlightDetail[0]['encodedata']) && !empty($getFlightDetail[0]['encodedata'])) {
$isrefundable = '';
$flightrate = '';
$encodedata = (isset($getFlightDetail[0]['encodedata'])) ? json_decode($getFlightDetail[0]['encodedata'], 1) : '';
$flighttext = (isset($encodedata['flighttext'])) ? preg_replace('/\s+/', '', $encodedata['flighttext']) : '';
if (trim($flighttext) != '') {
if (isset($encodedata['isrefundable']) && $encodedata['isrefundable'] == 1) {
$isrefundable = '<li><span style="font-size:13px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100; color:#222222;">Refundable</span></li>';
}
if (isset($encodedata['flightrate']) && $encodedata['flightrate'] == 1) {
$flightrate = '<li><span style="font-size:13px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100; color:#222222;">Flight rate may be change</span></li>';
}
// if(!empty($isrefundable) || !empty($flightrate)){
$html .= '<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;"> Flight Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>';
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:0;">
<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" class="img-responsive">' . $encodedata['flighttext'] . '</td>
</tr>';
if (trim($isrefundable) != '' || trim($flightrate) != '') {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; padding:20px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">
<ul style="margin:0; padding-left:5px; line-height:24px; list-style-type:disc;">
' . $isrefundable . $flightrate . '
</ul>
</td>
</tr>';
}
$html .= '</table>
</tr>';
}
$html .= ' <tr><td> </td></tr>';
} else {
if ($this->PackSpecType == 4) {
$FlightContent = (isset($about_package['FlightContent']) && !empty(trim($about_package['FlightContent']))) ? trim($about_package['FlightContent']) : '';
if (!empty($FlightContent)) {
$html .= '<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;"> Flight Details</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>';
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC; border-bottom:0;">
<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;" class="img-responsive">' . $FlightContent . '</td>
</tr>';
$html .= '</table>
</tr>';
}
}
}
if (!empty($visaDetails)) {
$arrVisaType = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getVisaType();
$arrVisaCategory = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getVisaCategory();
$arrgetVisaRequired = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getVisaRequired();
$arrVisaPaxType = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getVisaPaxType();
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">Visa Details ' . '</td>
</tr>
</table></td></tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border:1px solid #CCC; border-bottom:1px solid #CCC;">Visa name</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Visa Required</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Visa Category</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Visa Type</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Duration / validity</td>
<td style="background:' . $tablheadingBg . '; padding:7px 10px; color:' . $fontColortableHeadingTxt . '; font-size:13px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;">Processing Time</td>';
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;"><strong>' . $visaDetails['VisaName'] . '</strong></td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . $arrgetVisaRequired[$visaDetails['VisaRequired']] . '</td>
<td style="font-size:13px; color:#222; padding:5px; border-right:1px solid #CCC; border-bottom:1px solid #CCC;background:#f9f9f9;">' . $arrVisaCategory[$visaDetails['VisaCategory']] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $arrVisaType[$visaDetails['VisaType']] . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . (!empty(trim($visaDetails['VisaDuration'])) ? $visaDetails['VisaDuration'] : 'NA') . " / " . (!empty(trim($visaDetails['VisaValidity'])) ? $visaDetails['VisaValidity'] : 'NA') . '</td>
<td style="font-size:13px; color:#222; padding:5px; background:#f9f9f9; border-bottom:1px solid #CCC; border-right:1px solid #CCC;">' . $visaDetails['PrecessingTime'] . '</td>';
$html .= '</tr>';
$html .= '</table></td>
</tr><tr>
<td colspan="2"> </td>
</tr>';
}
if ((!empty($about_package['CabContent'])) && (strlen(trim($about_package['CabContent'])) > 0)) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">Transfer Details</td>
</tr>
</table></td>
</tr>
<tr><td colspan="2" style="font-size:13px; color:#222; padding:10px 0px 10px 10px; background:#fff; border:1px solid #f9f9f9; ">' . $about_package['CabContent'] . '</td></tr>
<tr>
<td colspan="2"> </td>
</tr> ';
}
if ((!empty($about_package['VisaContent'])) && (strlen(trim($about_package['VisaContent'])) > 0)) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">Visa Details</td>
</tr>
</table></td>
</tr>
<tr><td colspan="2" style="font-size:13px; color:#222; padding:10px 0px 10px 10px; background:#fff; border:1px solid #f9f9f9; ">' . $about_package['VisaContent'] . '</td></tr>
<tr>
<td colspan="2"> </td>
</tr> ';
}
//echo $about_package['EmailContent']; exit;
$otherTitle = isset($about_package['otherTitle']) ? json_decode($about_package['otherTitle']) : array();
$otherDescription = isset($about_package['otherDescription']) ? json_decode($about_package['otherDescription']) : array();
if (!empty($otherTitle) && trim($otherTitle[0]) != '') {
foreach ($otherTitle as $odKey => $odVal) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">' . $odVal . '</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" style="font-size:13px; color:#222; background:#fff; border-left:5px solid #fff; border:1px solid #f9f9f9;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:10px 7px; " valign="top">' . $otherDescription[$odKey] . '</td>
</tr>
</tbody></table></td>
</tr>';
}
}
$packageDetails = strip_tags(preg_replace('/\s+/', '', $this->Details));
if ((!empty($about_package['EmailContent'])) && (strlen(trim($about_package['EmailContent'])) > 0)) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">' . $ITINERARYDETAILS . '</td>
</tr>
</table></td>
</tr>
<tr><td colspan="2" style="font-size:13px; color:#222; padding:10px 0px 10px 10px; background:#fff; border:1px solid #f9f9f9; ">' . $about_package['EmailContent'] . '</td></tr>
<tr>
<td colspan="2"> </td>
</tr> ';
}
//if($isPdf == 1 && $this->IsHotelOnlyPackage == 0 ){
// $this->IsDisplayHelloGtxLogo = 1;
// $html .= '</table><pagebreak></pagebreak><table width="800" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:18px;">';
//}
if ($this->PackSpecType == 4 && $this->IsDayWiseItinerary == 0) {
if (!empty($this->getCityWiseSS)) {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">' . $SIGHTSEEINGLOCATIONS . '</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>';
}
} else {
$html .= '<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
<tr>
<td colspan="3" style="background:' . $headingBgColor2 . '; padding:7px 10px; color:' . $fontColor2 . '; font-size:16px; font-weight:bold;">' . $SIGHTSEEINGLOCATIONS . '</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="0"></td>
</tr>';
}
if ($this->PackSpecType == 2) { // only hotel
$html .= '<tr><td colspan="2" style="font-size:13px; color:#222; padding:0px 0px 0px 4px; background:#fff; border:1px solid #f9f9f9; ">';
$itenDetailsh = (!empty(trim($this->itenDetailArr[1]['Details'])) && trim($this->itenDetailArr[1]['Details']) != '<p></p>' && trim($this->itenDetailArr[1]['Details']) != '<p>0</p>' && trim($this->itenDetailArr[1]['Details']) != '0') ? $this->itenDetailArr[1]['Details'] . '<br />' : '<br />';
$html .= str_replace("<br>", "", $itenDetailsh);
foreach ($this->getDaywiseMergedActSightseeingArr as $key => $getDaywiseMergedActSightseeing) {
if ($key == 2) { //echo '<pre>';print_r($getDaywiseMergedActSightseeing); echo '</pre>';
if (isset($getDaywiseMergedActSightseeing[2])) {
unset($getDaywiseMergedActSightseeing[2]);
}
if (isset($getDaywiseMergedActSightseeing[3])) {
unset($getDaywiseMergedActSightseeing[3]);
}
$dataArr = call_user_func_array('array_merge', $getDaywiseMergedActSightseeing);
$ActSight = implode(', ', $dataArr);
$html .= '<strong>Sightseeing Included:</strong> ' . $ActSight;
// foreach ($dataArr as $key => $ActSight) {
// $html .= "<li style='padding-bottom:10px;'>$ActSight</li>";
// }
if (isset($this->itenaryTransportDataArr[0]) && (empty($this->itenaryTransportDataArr[0]['AirportTransport']) && empty($this->itenaryTransportDataArr[0]['HotelTransport']) && empty(trim($this->itenaryTransportDataArr[0]['RoadType'])) && (trim($this->itenaryTransportDataArr[0]['Remark']) == '' || trim($this->itenaryTransportDataArr[0]['Remark']) == '<p><br></p>' || trim($this->itenaryTransportDataArr[0]['Remark']) == '<p></p>'))) {
} else {
if ($this->itenaryTransportDataArr[0]['AirportTransport'] != 0 || $this->itenaryTransportDataArr[0]['HotelTransport'] != 0) {
$html .= '<br><br><strong>Transfers: </strong> ';
if ($this->itenaryTransportDataArr[0]['AirportTransport'] != 0) {
$html .= 'Airport/Station to Hotel : ';
$html .= ($this->itenaryTransportDataArr[0]['AirportTransport'] == 2) ? 'PVT' : 'SIC';
$html .= ($this->itenaryTransportDataArr[0]['HotelTransport'] != 0) ? ' | ' : '';
}
if ($this->itenaryTransportDataArr[0]['HotelTransport'] != 0) {
$html .= 'Hotel to Airport/Station : ';
$html .= ($this->itenaryTransportDataArr[0]['HotelTransport'] == 2) ? 'PVT' : 'SIC';
}
}
if (isset($this->itenaryTransportDataArr[0]['Remark']) && strip_tags($this->itenaryTransportDataArr[0]['Remark']) != '' && trim($this->itenaryTransportDataArr[0]['Remark']) != '<p><br></p>' && trim($this->itenaryTransportDataArr[0]['Remark']) != '<p></p>') {
$html .= '<br><br><strong>Other Transport: </strong> ';
$html .= (isset($this->itenaryTransportDataArr[0]['Remark'])) ? str_replace(['<p>', '</p>', '<br>'], '', $this->itenaryTransportDataArr[0]['Remark']) : '';
}
if (isset($this->itenaryTransportDataArr[0]['RoadType']) && strip_tags($this->itenaryTransportDataArr[0]['RoadType'])) {
$html .= '<br><br><strong>Road Types: </strong> ';
$RoadTypeArr = ($this->itenaryTransportDataArr[0]['RoadType']) ? explode(',', $this->itenaryTransportDataArr[0]['RoadType']) : '';
if (isset($RoadTypeArr)) {
foreach ($RoadTypeArr as $rrKey => $rrVal) {
$html .= ($rrKey > 0) ? ' | ' : '';
$html .= trim($this->RoadTypeListArr[$rrVal]);
}
}
}
}
}
}
$html .= '</td></tr><tr>
<td colspan="2" height="0"> </td>
</tr>';
} else if ($this->PackSpecType == 4 && $this->IsDayWiseItinerary == 0) {
if (!empty($this->getCityWiseSS)) {
foreach ($this->getCityWiseSS as $SSkey => $getCityWiseSS) {
$getCityWiseSSName = implode(', ', $getCityWiseSS['Title']);
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; background:#f9f9f9; border:1px solid #fff; font-weight:normal; border-left:5px solid #777; ">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody><tr>
<td style="padding:7px 10px; background:#eee; color:#000; " width="27%"><strong>Sightseeing In </strong></td>
<td style="padding:7px 10px;" width="73%">' . $getCityWiseSS['CityName'][0] . '</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td colspan="2" style="font-size:13px; color:#222; background:#fff; border-left:5px solid #fff; border:1px solid #f9f9f9;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>';
if ($allowimage == 1) {
$html .= '<tr>
<td style="padding:10px 7px; " width="27%" valign="top"><img src="' . $getCityWiseSS['Image'][0] . '" width="200" height="133"></td>
<td style="padding:7px 10px;font-size:13px; color:#222;" width="73%" valign="top"><strong>' . $getCityWiseSSName . ' </strong>';
if ($IsB2BCustomer == 0) {
$html .= ' | (<a href="' . $shared_url . '" target="_blank" style="color:' . $buttonBgColr . '; font-size:13px; text-decoration:none; font-weight:700;">click here</a> to view package details)';
}
$html .= '<br /></td></tr>';
} else {
$html .= '<tr>
<td colspan="2" style="padding:7px 10px;font-size:13px; color:#222;" width="100%" valign="top"><strong>' . $getCityWiseSSName . ' </strong>';
if ($IsB2BCustomer == 0) {
$html .= ' | (<a href="' . $shared_url . '" target="_blank" style="color:' . $buttonBgColr . '; font-size:13px; text-decoration:none; font-weight:700;">click here</a> to view package details)';
}
$html .= '<br /></td></tr>';
}
$html .= '</tbody></table></td>
</tr>
';
}
}
} else {
if ((!empty($packageDetails)) && (strlen(trim($packageDetails)) > 0)) {
$html .= '<tr><td colspan="2" style="font-size:13px; color:#222; padding:10px 0px 10px 10px; background:#fff; border:1px solid #f9f9f9; ">' . $this->Details . '</td></tr>
<tr>
<td colspan="2"> </td>
</tr> ';
}
if (!empty($this->getDaywiseMergedActSightseeingArr)) {
// echo "<pre>";print_r($this->getDaywiseMergedActSightseeingArr);die;
foreach ($this->getDaywiseMergedActSightseeingArr as $key => $getDaywiseMergedActSightseeing) {
$data = '';
if (is_array($getDaywiseMergedActSightseeing)) {
$data = implode(', ', call_user_func_array('array_merge', $getDaywiseMergedActSightseeing));
}
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; background:#f9f9f9; border:1px solid #fff; font-weight:normal; border-left:5px solid ' . $borderLeft . '; ">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:7px 10px; background:#eee; color:#000; " width="27%"><strong>Day ' . $key . ': ' . date('d-M-Y', strtotime($this->TravellingOn . ' + ' . ($key - 1) . ' days')) . '</strong></td>
<td style="padding:7px 10px;" width="73%">' . $this->itenDetailArr[$key]['Title'] . '</td>
</tr>
</table>
</td>
</tr>';
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; background:#fff; border-left:5px solid #fff; border:1px solid #f9f9f9;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>';
if (isset($this->itenDetailArr[$key]['Icon']) && !empty(trim($this->itenDetailArr[$key]['Icon'])) && $allowimage == 1) {
// echo "<pre>"; print_r($this->itenDetailArr[$key]['Icon']); die;
$itenDetails = (!empty(trim($this->itenDetailArr[$key]['Details'])) && trim($this->itenDetailArr[$key]['Details']) != '<p></p>' && trim($this->itenDetailArr[$key]['Details']) != '0') ? $this->itenDetailArr[$key]['Details'] . '<br />' : '';
$html .= '<td style="padding:10px 7px; " width="27%" valign="top"><img src="' . $this->itenDetailArr[$key]['Icon'] . '" width="200" height="133" /></td>
<td style="padding:7px 10px;font-size:13px; color:#222;" width="73%" valign="top">' . str_replace("<br>", "", $itenDetails) . '';
if (!empty($data)) {
if ($IsB2BCustomer == 0) {
$html .= '<strong>Sightseeing Included:</strong>' . stripslashes($data) . ' | (<a href="' . $shared_url . '" target="_blank" style="color:' . $buttonBgColr . '; font-size:13px; text-decoration:none; font-weight:700;">click here</a> to view package details)<br />';
} else {
$html .= '<strong>Sightseeing Included:</strong>' . stripslashes($data) . ' ';
}
}
if (isset($this->itenDetailArr[$key]['MealPlanInclude']) && !empty(trim($this->itenDetailArr[$key]['MealPlanInclude']))) {
$html .= '<br><strong>Meal: </strong>' . implode(', ', explode(',', $this->itenDetailArr[$key]['MealPlanInclude']));
}
if (isset($this->itenaryTransportDataArr[$key]) && (empty($this->itenaryTransportDataArr[$key]['AirportTransport']) && empty($this->itenaryTransportDataArr[$key]['HotelTransport']) && empty(trim($this->itenaryTransportDataArr[$key]['RoadType'])) && (trim($this->itenaryTransportDataArr[$key]['Remark']) == '' || trim($this->itenaryTransportDataArr[$key]['Remark']) == '<p><br></p>' || trim($this->itenaryTransportDataArr[$key]['Remark']) == '<p></p>'))) {
} else {
if ($this->itenaryTransportDataArr[$key]['AirportTransport'] != 0 || $this->itenaryTransportDataArr[$key]['HotelTransport'] != 0) {
$html .= '<br><strong>Transfers: </strong> ';
if ($this->itenaryTransportDataArr[$key]['AirportTransport'] != 0) {
$html .= 'Airport/Station to Hotel : ';
$html .= ($this->itenaryTransportDataArr[$key]['AirportTransport'] == 2) ? 'PVT' : 'SIC';
$html .= ($this->itenaryTransportDataArr[$key]['HotelTransport'] != 0) ? ' | ' : '';
}
if ($this->itenaryTransportDataArr[$key]['HotelTransport'] != 0) {
$html .= 'Hotel to Airport/Station : ';
$html .= ($this->itenaryTransportDataArr[$key]['HotelTransport'] == 2) ? 'PVT' : 'SIC';
}
}
if (isset($this->itenaryTransportDataArr[$key]['Remark']) && strip_tags($this->itenaryTransportDataArr[$key]['Remark']) != '' && trim($this->itenaryTransportDataArr[$key]['Remark']) != '<p><br></p>' && trim($this->itenaryTransportDataArr[$key]['Remark']) != '<p></p>') {
$html .= '<br><br><strong>Other Transport: </strong> ';
$html .= (isset($this->itenaryTransportDataArr[$key]['Remark'])) ? str_replace(['<p>', '</p>', '<br>'], '', $this->itenaryTransportDataArr[$key]['Remark']) : '';
}
if (isset($this->itenaryTransportDataArr[$key]['RoadType']) && strip_tags($this->itenaryTransportDataArr[$key]['RoadType'])) {
$html .= '<br><br><strong>Road Types: </strong> ';
$RoadTypeArr = ($this->itenaryTransportDataArr[$key]['RoadType']) ? explode(',', $this->itenaryTransportDataArr[$key]['RoadType']) : '';
if (isset($RoadTypeArr)) {
foreach ($RoadTypeArr as $rrKey => $rrVal) {
$html .= ($rrKey > 0) ? ' | ' : '';
$html .= trim($this->RoadTypeListArr[$rrVal]);
}
}
}
}
$html .= '</td>';
} else {
$itenDetails = (!empty(trim($this->itenDetailArr[$key]['Details'])) && trim($this->itenDetailArr[$key]['Details']) != '<p>0</p>' && trim($this->itenDetailArr[$key]['Details']) != '0') ? $this->itenDetailArr[$key]['Details'] . '<br />' : '';
$html .= '<td colspan ="2" style="padding:7px 10px; font-size:13px; color:#222;" width="73%" valign="top">' . str_replace("<br>", "", $itenDetails);
if (!empty($data)) {
if ($IsB2BCustomer == 0) {
$html .= '<strong>Sightseeing Included: </strong>' . stripslashes($data) . ' | (<a href="' . $shared_url . '" style="color:' . $buttonBgColr . '; text-decoration:none; font-weight:700;">click here</a> to view package details)<br />';
} else {
$html .= '<br><strong>Sightseeing Included: </strong>' . stripslashes($data);
}
}
if (isset($this->itenDetailArr[$key]['MealPlanInclude']) && !empty(trim($this->itenDetailArr[$key]['MealPlanInclude']))) {
$html .= '<br><strong>Meal: </strong>' . implode(', ', explode(',', $this->itenDetailArr[$key]['MealPlanInclude']));
}
//echo "<pre>";print_r($this->itenaryTransportDataArr[$key]);die;
if (isset($this->itenaryTransportDataArr[$key]) && (empty($this->itenaryTransportDataArr[$key]['AirportTransport']) && empty($this->itenaryTransportDataArr[$key]['HotelTransport']) && empty(trim($this->itenaryTransportDataArr[$key]['RoadType'])) && (trim($this->itenaryTransportDataArr[$key]['Remark']) == '' || trim($this->itenaryTransportDataArr[$key]['Remark']) == '<p><br></p>' || trim($this->itenaryTransportDataArr[$key]['Remark']) == '<p></p>'))) {
} else {
if ($this->itenaryTransportDataArr[$key]['AirportTransport'] != 0 || $this->itenaryTransportDataArr[$key]['HotelTransport'] != 0) {
$html .= '<br><strong>Transfers: </strong> ';
if ($this->itenaryTransportDataArr[$key]['AirportTransport'] != 0) {
$html .= 'Airport/Station to Hotel : ';
$html .= ($this->itenaryTransportDataArr[$key]['AirportTransport'] == 2) ? 'PVT' : 'SIC';
$html .= ($this->itenaryTransportDataArr[$key]['HotelTransport'] != 0) ? ' | ' : '';
}
if ($this->itenaryTransportDataArr[$key]['HotelTransport'] != 0) {
$html .= 'Hotel to Airport/Station : ';
$html .= ($this->itenaryTransportDataArr[$key]['HotelTransport'] == 2) ? 'PVT' : 'SIC';
}
}
if (isset($this->itenaryTransportDataArr[$key]['Remark']) && strip_tags($this->itenaryTransportDataArr[$key]['Remark']) != '' && trim($this->itenaryTransportDataArr[$key]['Remark']) != '<p><br></p>' && trim($this->itenaryTransportDataArr[$key]['Remark']) != '<p></p>') {
$html .= '<br><br><strong>Other Transport: </strong> ';
$html .= (isset($this->itenaryTransportDataArr[$key]['Remark'])) ? str_replace(['<p>', '</p>', '<br>'], '', $this->itenaryTransportDataArr[$key]['Remark']) : '';
}
if (isset($this->itenaryTransportDataArr[$key]['RoadType']) && strip_tags($this->itenaryTransportDataArr[$key]['RoadType'])) {
$html .= '<br><br><strong>Road Types: </strong> ';
$RoadTypeArr = ($this->itenaryTransportDataArr[$key]['RoadType']) ? explode(',', $this->itenaryTransportDataArr[$key]['RoadType']) : '';
if (isset($RoadTypeArr)) {
foreach ($RoadTypeArr as $rrKey => $rrVal) {
$html .= ($rrKey > 0) ? ' | ' : '';
$html .= trim($this->RoadTypeListArr[$rrVal]);
}
}
}
}
$html .= '</td>';
}
$html .= '</tr>';
if (isset($miscArray[$key]) && !empty($miscArray[$key])) {
$html .= '<tr><td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-left:1px solid #CCC; border-bottom:0;">
<tbody>
<tr>
<td colspan="4" style="background:#666; padding:7px 10px; color:#fff; font-size:13px; text-transform:uppercase;"><strong>Miscellaneous</strong></td>
</tr>
<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;font-weight:bold;">Service Name</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;font-weight:bold;">Service Type</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;font-weight:bold;">Rate Type</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;font-weight:bold;">Comment</td>
</tr>';
foreach ($miscArray[$key] as $miscInfo) {
$html .= '<tr>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . ((trim($miscInfo['ServiceTitle']) != '') ? $miscInfo['ServiceTitle'] : 'NA') . '</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . ((trim($miscInfo['Title']) != '') ? $miscInfo['Title'] : 'NA') . '</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . ($miscInfo['RateType'] == 0 ? 'Per Pax' : 'Fixed') . '</td>
<td style="font-size:13px; color:#222; padding:5px 10px; border-right:1px solid #CCC; border-bottom:1px solid #CCC; background:#f9f9f9;">' . ((trim($miscInfo['Comment']) != '') ? $miscInfo['Comment'] : 'NA') . '</td>
</tr>';
}
$html .= '</tbody></table></td></tr>';
}
$html .= '</table></td>
</tr>
<tr>
<td colspan="2" style="font-size:13px; color:#222; background:#fff; "> </td>
</tr>';
}
} else {
foreach ($this->itenDetailArr as $key => $itenDetailArr) {
$html .= ' <tr>
<td colspan="2" style="font-size:13px; color:#222; background:#f9f9f9; border:1px solid #fff; font-weight:normal; border-left:5px solid ' . $borderLeft . '; ">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding:7px 10px; background:#eee; color:#000; " width="27%"><strong>' . date('d-M-y', strtotime($this->TravellingOn . ' + ' . ($key - 1) . ' days')) . '</strong></td>
<td style="padding:7px 10px; font-size:13px; color:#222;" width="73%"><strong>Day ' . $key . '</strong>: ' . $this->itenDetailArr[$key]['Title'] . '</td>
</tr>
</table>
</td>
</tr>';
$itenDetails = (!empty($this->itenDetailArr[$key]['Details'])) ? $this->itenDetailArr[$key]['Details'] . '<br />' : '';
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; background:#fff; border-left:5px solid #fff; border:1px solid #f9f9f9;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan ="2" align="left" valign="top" style="padding:7px 10px; font-size:13px; color:#222;" width="73%" valign="top">' . str_replace("<br>", "", $itenDetails);
$html .= '</td></tr></table></td></tr>';
$html .= '</tr>';
}
}
}
if (!empty($IsIncludedOptSight)) {
$html .= ' <tr>
<td colspan= "2" style="font-size:13px; color:#222; background:#f9f9f9; border:1px solid #fff; font-weight:normal;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="middle" bgcolor="#fff" style="border-left:5px solid ' . $borderLeft . '; padding: 7px; 10px; background:#f5f5f5"> <strong style="font-size:14px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100; color:#000;"><strong>Additional Activity/Sightseeing Included in Package</strong></td>
</tr>
<tr>
<td valign="top" style="font-size:12px; color:#222222;"><table width="100%" border="0" cellspacing="0" cellpadding="0">';
foreach ($this->OptionalSightseeing as $OptionalSightseeingArr) {
if ($OptionalSightseeingArr['Type'] == 'Included') {
$html .= '<tr>
<td colspan= "3" style="padding:7px 10px;font-size:13px; background:#fff; font-family:Arial, Helvetica, sans-serif !important; font-weight:100; color:#000;" height="25" align="left" valign="middle"><strong>• ' . $OptionalSightseeingArr['Title'] . '</strong></td>
</tr>';
}
}
$html .= '
</table></td>
</tr>
</table></td>
</tr>';
}
if (!empty($IsOptionalOptSight) && !empty($this->OptionalSightseeing)) {
$html .= '
<tr>
<td colspan="2" style="font-size:13px; color:#222;background:#f9f9f9; font-weight:normal;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" bgcolor="#fff" style="border-left:5px solid ' . $borderLeft . '; padding: 7px; 10px; background:#f5f5f5"> <strong style="font-size:14px; font-family:Arial, Helvetica, sans-serif !important; color:#000;"><strong>Optional Activity/Sightseeing</strong></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" style="font-size:13px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100; color:#222222;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-left:1px solid #f9f9f9; border-top:1px solid #f9f9f9; border-right:1px solid #f9f9f9; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"><strong>Sightseeing Name</strong></td>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-right:1px solid #f9f9f9; border-top:1px solid #f9f9f9; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"><strong>Price / Adult</strong></td>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-right:1px solid #f9f9f9; border-top:1px solid #f9f9f9; font-size:14px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"><strong>Price / Child</strong></td>
</tr>';
foreach ($this->OptionalSightseeing as $OptionalSightseeingArr) {
if ($OptionalSightseeingArr['Type'] == 'Optional') {
$html .= '<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-left:1px solid #f9f9f9; border-right:1px solid #f9f9f9; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $OptionalSightseeingArr['Title'] . '</td>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-right:1px solid #f9f9f9; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;">' . $this->BaseSymbol . ' ' . $OptionalSightseeingArr['TotalCostNativeAdult'] . '</td>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-right:1px solid #f9f9f9; font-size:14px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;">' . $this->BaseSymbol . ' ' . $OptionalSightseeingArr['TotalCostNativeChild'] . '</td>
</tr>';
}
}
$html .= '</table></td>
</tr>
</table></td>
</tr>
<tr>
<td style="font-size:14px; font-size:13px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100; color:#222222; padding: 5px 0;"><a href="' . $shared_url . '" target="_blank" style="color:' . $buttonBgColr . '; text-decoration:none;font-weight:700;">Click here</a> to add/Remove Optional Activity/Sightseeing</td>
</tr>
<tr>
<td> </td>
</tr>';
}
if (isset($AddonOtherServiceDetails) && !empty($AddonOtherServiceDetails)) {
$html .= '
<tr>
<td colspan="2" style="font-size:13px; color:#222;background:#f9f9f9;border:1px solid #fff;border-left:5px solid #fff; font-weight:normal;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" bgcolor="#fff" style=" padding: 7px; 10px; background:#f5f5f5;border:1px solid #f9f9f9;"> <strong style="font-size:14px; font-family:Arial, Helvetica, sans-serif !important; color:#000;"><strong>Optional Addon Items</strong></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" style="font-size:13px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100; color:#222222;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-left:1px solid #f9f9f9; border-top:1px solid #f9f9f9; border-right:1px solid #f9f9f9; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; "><strong> Title</strong></td>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-right:1px solid #f9f9f9; border-top:1px solid #f9f9f9; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; "><strong>Price </strong></td>
</tr>';
foreach ($AddonOtherServiceDetails as $otherServiceDetailsVal) {
$exchangerate = (isset($this->exchangerateAll[$otherServiceDetailsVal['CurrencyType'] . '-' . $this->CurrencySysId])) ? $this->exchangerateAll[$otherServiceDetailsVal['CurrencyType'] . '-' . $this->CurrencySysId] : 1;
$priceHtml = '';
if ($otherServiceDetailsVal['RateType'] == 1) {
$priceHtml .= 'Cost/ Adult: ' . $CurrencySymbol . ' ' . (int) getPriceWithGST($otherServiceDetailsVal['AdultCost'] * $exchangerate, 0, $TaxType, $TaxRate);
if ($Child > 0) {
$priceHtml .= '<br>Cost/ Child: ' . $CurrencySymbol . ' ' . (int) getPriceWithGST($otherServiceDetailsVal['ChildCost'] * $exchangerate, 0, $TaxType, $TaxRate);
}
} else {
$priceHtml = 'Cost/ Item: ' . $CurrencySymbol . ' ' . (int) getPriceWithGST($otherServiceDetailsVal['Cost'] * $exchangerate, 0, $TaxType, $TaxRate);
}
$html .= '<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-left:1px solid #f9f9f9; border-right:1px solid #f9f9f9; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;"> ' . $otherServiceDetailsVal['ServiceTitle'] . '</td>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #f9f9f9; border-right:1px solid #f9f9f9; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;">' . $priceHtml . '</td>
</tr>';
}
$html .= '</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>';
}
if (isset($this->ProposalPromotion) && !empty($this->ProposalPromotion)) {
$html .= '
<tr>
<td colspan="2" style="font-size:13px; color:#222;background:#f9f9f9;border:1px solid #fff;border-left:5px solid #fff; font-weight:normal;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" bgcolor="#fff" style=" padding: 7px; 10px; background:#f5f5f5;border:1px solid #f9f9f9;"> <strong style="font-size:14px; font-family:Arial, Helvetica, sans-serif !important; color:#000;"><strong>Promotion</strong></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" style="font-size:13px; font-family:Arial, Helvetica, sans-serif !important; font-weight:100; color:#222222;padding: 7px; 10px;"><table width="100%" border="0" cellpadding="0" cellspacing="0">';
foreach ($this->ProposalPromotion as $promoVal) {
$html .= '<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; font-size:14px; color:#222222; font-family:Arial, Helvetica, sans-serif !important; font-weight:100;">' . ($promoVal['PromotionTitle']) . '</td>
</tr>';
}
$html .= '</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>';
}
$html .= '</table><div style="width: 800px; margin: 0 auto;"><div border="0" cellspacing="0" cellpadding="0" align="left" style="font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:18px;width:800px;"> ';
$Inclusions = strip_tags(preg_replace('/\s+/', '', $this->Inclusions));
if (!empty($Inclusions) && trim($Inclusions) != 'Inclusions') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9;border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; " >INCLUSIONS </div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif; ">
' . $this->Inclusions . '
</div>
</div>';
}
$Exclusions = strip_tags(preg_replace('/\s+/', '', $this->Exclusions));
if (!empty($Exclusions) && trim($Exclusions) != 'Exclusions') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">EXCLUSIONS </div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif;">
' . $this->Exclusions . '
</div>
</div>';
}
if ($this->isDisplayB2BContent == 0 || $IsB2BCustomer == 0) {
$PaymentTerms = strip_tags(preg_replace('/\s+/', '', $this->PaymentTerms));
if (!empty($PaymentTerms) && $PaymentTerms != 'PaymentTerms') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">PAYMENT OPTIONS </div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px 15px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif;">
' . $this->PaymentTerms . '
</div>
</div>';
}
}
$BookingTerms = strip_tags(preg_replace('/\s+/', '', $this->BookingTerms));
if (!empty($BookingTerms) && trim($BookingTerms) != 'BookingTerms') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">BOOKING TERMS</div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px 15px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif;">
' . $this->BookingTerms . '
</div>
</div>';
}
$WhyUse = strip_tags(preg_replace('/\s+/', '', $this->WhyUseUs));
if (!empty($WhyUse) && $WhyUse != 'WhyUseUs') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">WHY USE ' . $this->agencyDisplayName . ' </div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px 15px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif;">
' . $this->WhyUseUs . '
</div>
</div>';
}
$TravelBasics = strip_tags(preg_replace('/\s+/', '', $this->TravelBasics));
if (!empty($TravelBasics) && $TravelBasics != 'TravelBasics') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">GENERAL INFORMATION</div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px 15px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif;">
' . $this->TravelBasics . '
</div>
</div>';
}
$CancellationPolicy = strip_tags(preg_replace('/\s+/', '', $this->CancellationPolicy));
if (!empty($CancellationPolicy) && trim($CancellationPolicy) != 'CancellationPolicy') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">CANCELLATION POLICY </div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif;">
' . $this->CancellationPolicy . '
</div>
</div>';
}
$TermsAndConditions = strip_tags(preg_replace('/\s+/', '', $this->TermsAndConditions));
if (!empty($TermsAndConditions) && trim($TermsAndConditions) != 'TermsAndConditions') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">TERMS AND CONDITIONS </div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif;">
' . $this->TermsAndConditions . '
</div>
</div>';
}
$REFUNDPOLICY = strip_tags(preg_replace('/\s+/', '', $this->REFUNDPOLICY));
if (!empty($REFUNDPOLICY) && trim($REFUNDPOLICY) != 'RefundPolicy') {
$html .= '<div>
<div colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">REFUND POLICY </div>
</div>
<div>
<div colspan="2" style="font-size:13px; color:#222; padding:20px; background:#fff; border:1px solid #f9f9f9;font-family:Arial, Helvetica, sans-serif;">
' . $this->REFUNDPOLICY . '
</div>
</div>';
}
if (isset($getServicesFeeArray[0]['displayTCS']) && $getServicesFeeArray[0]['displayTCS'] == 1) {
$Comment = preg_replace('/\s+/', '', $getServicesFeeArray[0]['Comment']);
if (!empty($Comment) && $Comment != '') {
$html .= '<tr>
<td colspan="2" style="font-size:14px; color:#222; padding:7px 10px; background:#f9f9f9; border:1px solid #f9f9f9; font-weight:bold; border-left:5px solid ' . $borderLeft . '; ">Remark for Modifications </td>
</tr>
<tr>
<td colspan="2" style="font-size:13px; color:#222; padding:20px; background:#fff; border:1px solid #f9f9f9;">
' . html_entity_decode($getServicesFeeArray[0]['Comment']) . '
</td>
</tr>';
}
}
if ($IsB2BCustomer == 1) {
$html .= '</div></div><table border="0" cellspacing="0" cellpadding="0" width="800" align="center"><tr>
<td colspan="2" style="font-size:13px; color:#222; padding:20px 20px 10px 20px; background:#fff; border:1px solid #f9f9f9; border-bottom:3px solid #ccc; "><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:13px; color:#222;"><strong>Thank you for your interest in ' . ((isset($this->b2bagencyDisplayName) && $this->b2bagencyDisplayName != '') ? $this->b2bagencyDisplayName : $this->agencyDisplayName) . '. If you have any questions, wish to make changes to the itinerary or confirm this booking please call us at ' . ((isset($this->customer_contact) && !empty($this->customer_contact)) ? $this->customer_countrycode . '-' . $this->customer_contact : $this->agent_primarycontact) . '</strong></td>
</tr>
<tr>
<td> </td>
</tr>';
$html .= '<tr>
<td style="font-size:13px; color:#222;">Your personal trip manager,<br /><br />
' . $this->cust_name . '<br />
' . $this->customer_countrycode . '-' . $this->customer_contact . '<br />
' . ((isset($this->b2bagencyDisplayName) && $this->b2bagencyDisplayName != '') ? $this->b2bagencyDisplayName : $this->agencyDisplayName) . '<br>
</td>
</tr>';
} else {
$html .= '</div></div><table border="0" cellspacing="0" cellpadding="0" width="800" align="center"><tr>
<td colspan="2" style="font-size:13px; color:#222; padding:20px 20px 10px 20px; background:#fff; border:1px solid #f9f9f9; border-bottom:3px solid #ccc; "><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:13px; color:#222;"><strong>Thank you for your interest in ' . $this->agencyDisplayName . '. If you have any questions, wish to make changes to the itinerary or confirm this booking please call us at ' . $this->agent_primarycontact . '</strong></td>
</tr>
<tr>
<td> </td>
</tr>';
$SuperAdminSignatureHtml = '';
//echo "<pre>";print_r($this->agentDetails);die;
if (!empty($this->agentDetails['AgencyPhoto'])) {
$pathToUploadFileAgencyPhoto = SITE_FULL_URL . 'public/upload/media/agency/' . $this->agentDetails['AgencySysId'] . "/photo/" . $this->agentDetails['AgencyPhoto'];
$SuperAdminSignatureHtml = '<table width="100%"><tr><td><p><img src="' . trim($pathToUploadFileAgencyPhoto) . '"></p></td></tr></table>';
}
if ($this->agentDetails['SignatureType'] == 0) {
$html .= '<tr>
<td style="font-size:13px; color:#222;">Your personal trip manager,<br /><br />
' . $this->agent_firstname . '<br />
' . $this->agent_primarycontact . '<br />
' . html_entity_decode($this->agentDetails['Signature']) . $SuperAdminSignatureHtml . '
</td>
</tr>';
} else {
$html .= '<tr>
<td style="font-size:13px; color:#222;">
' . html_entity_decode($this->agentDetails['Signature']) . $SuperAdminSignatureHtml . '
</td>
</tr>';
}
}
$html .= ' <tr>
<td> </td>
</tr>
</table></td>
</tr>';
if (($this->isDisplayB2BContent == 0 || $IsB2BCustomer == 0) && $isPdf == 0) {
$html .= '<tr>
<td colspan="2" style="font-size:13px; color:#222; padding:10px; background:#fff; border:1px solid #f9f9f9; border-top:0; text-align:center; ">';
if (isset($this->agentDetails['IsB2CSite'])) {
$html .= '<a href="' . $this->agentDetails['Url'] . '">';
}
$html .= '<img src="' . $this->agency_logo . '" alt="' . $this->agencyDisplayName . '" title="' . $this->agencyDisplayName . '" border="0" style="max-height: 68px;" />';
if (isset($this->agentDetails['IsB2CSite'])) {
$html .= ' </a>';
}
$html .= '</td>
</tr>';
}
$html .= '<tr>';
if ($this->isDisplayB2BContent == 0) {
$html .= '<td style="background:#fff; padding:10px; color:#222; text-align:left;">' . date("Y") . ' © ' . $this->agencyDisplayName . ' </td>';
} else {
$html .= '<td style="background:#fff; padding:10px; color:#222; text-align:left;"> </td>';
}
$html .= '<td style="background:#fff; padding:10px; color:#222; text-align:right;">';
if ($this->IsDisplayHelloGtxLogo == 1) {
$html .= ' ';
} else {
$html .= 'Technology By - <a href="http://www.hellogtx.com/" target="_blank" style="text-decoration:none;"><span style="color:#0b74c4; font-weight:700;">hello</span><span style="color:#fb5a2d; font-weight:700;">GTX</span></a>';
}
$html .= '</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</body>
</html>';
echo $html;