403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2bzend/application/views/scripts/booking-flight/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/booking-flight/refundmail.phtml
<?php

$arrStatusType = Zend_Controller_Action_HelperBroker::getStaticHelper('Flight')->getAllStatusType();

$type = $this->type;
$bookingDataByAPI = $this->bookingDataByAPI;
$arrtravellerList = $this->arrtravellerList;
$getSupportContact = $this->getSupportContact;
$withprice = $this->withprice;
$CustomerDetails = $this->CustomerDetails;

$CurrencySymbol = $bookingDataByAPI[0]['CurrencySymbol'];
$LeadSource = $bookingDataByAPI[0]['LeadSource'];
$AgencySysId = $bookingDataByAPI[0]['AgencySysId'];
$IsBookingStatus = $bookingDataByAPI[0]['IsBookingStatus'];
$companyLogo = $bookingDataByAPI[0]['Logo'];
$UserAgencyLogo = $bookingDataByAPI[0]['UserAgencyLogo'];
$XRefBookingId = $bookingDataByAPI[0]['XRefBookingId'];
$ICSourceSysId = $bookingDataByAPI[0]['ICSourceSysId'];
$IsB2BProposal = $bookingDataByAPI[0]['IsB2BProposal'];
$ChangeRequestId = $bookingDataByAPI[0]['ChangeRequestId'];
$TripType = $bookingDataByAPI[0]['TripType'];
$navarrow = ($TripType == 1) ? "→" : "⇄";
$SourceAirportCode = $bookingDataByAPI[0]['SourceAirportCode'];
$DestAirportCode = $bookingDataByAPI[0]['DestAirportCode'];
$IsRefundable = isset($bookingDataByAPI[0]['IsRefundable']) ? $bookingDataByAPI[0]['IsRefundable'] : 0;

$CompanyName = $bookingDataByAPI[0]['CompanyName'];
$AgentAgencyName = $bookingDataByAPI[0]['AgentAgencyName'];
$strCompanyAddress = $bookingDataByAPI[0]['CompanyAddress'];
$Pincode = $bookingDataByAPI[0]['Pincode'];
$strCityTitle = $bookingDataByAPI[0]['CityTitle'];
$strCountry = $bookingDataByAPI[0]['Country'];
$PrimaryMobileNo = $bookingDataByAPI[0]['PrimaryMobileNo'];
$departureDate = str_replace('T', ' ', $bookingDataByAPI[0]['LocalFromTime']);
$PrimaryContactNo = (isset($bookingDataByAPI[0]['ContactNo2']) && !empty(trim($bookingDataByAPI[0]['ContactNo2']))) ? $bookingDataByAPI[0]['ContactNo2'] : $bookingDataByAPI[0]['PrimaryContactNo'];
$PrimaryEmail = (isset($bookingDataByAPI[0]['SecondaryEmail']) && !empty(trim($bookingDataByAPI[0]['SecondaryEmail']))) ? $bookingDataByAPI[0]['SecondaryEmail'] : $bookingDataByAPI[0]['PrimaryEmail'];


if (isset($getSupportContact['EmailId']) && !empty($getSupportContact['EmailId'])) {
    $PrimaryEmail = trim($getSupportContact['EmailId']);
}
if (isset($getSupportContact['EmailId']) && !empty($getSupportContact['EmailId'])) {
    $PrimaryContactNo = trim($getSupportContact['countrycode']) . '-' . trim($getSupportContact['ContactNo1']);
}
//$arrBookingDate = (array) $bookingDataByAPI[0]['bookingDate'];
$BookingStatus = $bookingDataByAPI[0]['BookingStatus'];
$arrBookingDate = $bookingDataByAPI[0]['bookingDate'];
$strBookingDate = Zend_Controller_Action_HelperBroker::getStaticHelper('Flight')->getDateFormatFromDbDates($arrBookingDate);

$TotalFare = 0;
$TotalServiceFee = 0;
$TotalGST = 0;
$TotalDiscountValue = 0;
$couponVal = 0;
$AddTotalCost = 0;
$CancelMarkUp = 0;
$amendmentCharges = 0;
$refundableamount = 0;
$AirlineRefPNR = [];
if ($bookingDataByAPI) {
    foreach ($bookingDataByAPI as $value) {
        $AirlineRefPNR[] = $value['AirlineRefPNR'];
        $AddTotalCost += isset($value['AddTotalCost']) ? $value['AddTotalCost'] : 0;
        if ($value['FareBreakdown']) {
            foreach ($value['FareBreakdown'] as $fare) {
                $GSTOnMarkUp = $fare['GSTOnMarkUp'];
                $TotalFare += $fare['BaseFare'];
                $TotalServiceFee += ($fare['FixedMarkUp'] + $fare['CommissionEarned'] + $fare['TDSEarn'] + $fare['Tax']);
                $couponVal += isset($fare['couponVal']) ? ($fare['couponVal']) : 0;
                $TotalGST += ($fare['GSTOnMarkUp']);
                $TotalDiscountValue += ($fare['Discount']);
            }
        }
        if ($value['travellers']) {
            foreach ($value['travellers'] as $paxvalue) {
                $CancelMarkUp += $paxvalue['CancelMarkUp'];
                $amendmentCharges += $paxvalue['amendmentCharges'];
                $refundableamount += $paxvalue['refundableamount'];
            }
        }
    }
}

$TotalBaggFare = 0;
$TotalMealFare = 0;
$TotalSeatFare = 0;

if ($arrtravellerList) {
    foreach ($arrtravellerList as $ks1 => $trevllerValue) {
        $TotalBaggFare += $trevllerValue['BagPrice'];
        $TotalMealFare += $trevllerValue['MealPrice'];
        $TotalSeatFare += $trevllerValue['SeatPrice'];
    }
}
$TotalServiceFee = ($TotalServiceFee + $AddTotalCost);
$CancellationCharge = ($CancelMarkUp + $amendmentCharges);
$RefundAmt = ($refundableamount - $CancelMarkUp);
$DearName = ($IsB2BProposal == 1) ? $AgentAgencyName : $CustomerDetails['name'];
// echo "<pre>";
// print_r($arrtravellerList);
// echo "</pre>";

// die('ss');

?>
<!DOCTYPE html>
<html lang="en">

<head>
    <link rel="shortcut icon" href="<?php echo $this->baseUrl('public/assets/images/ico/fab.ico'); ?>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>
        GTX
    </title>
    <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">

    <style>
        body {
            page-break-before: avoid;
            width: 100%;
            height: 100%;
            zoom: 70%;
            -webkit-print-color-adjust: exact;
        }

        .gtx--body__print {
            width: 100% !important;
        }
    </style>

    <style>
        body {
            margin: 0px auto !important;
            color: #000 !important;
            -webkit-print-color-adjust: exact;
            color-adjust: exact;
            zoom: 100%;
        }

        p {
            margin: 0;
            line-height: 1.4;
        }

        ul {
            margin: 0;
            padding: 0
        }

        table {
            width: 100%;
            border-spacing: 0;
        }

        .print_back {
            display: none;
        }
    </style>
</head>

<body id="body">


    <table width="100%" style="background:#fff; width:100%; margin: 0px auto">
        <tbody>
            <tr>
                <td>
                    <table width="100%" class="removeshadow" style="background: #fff">
                        <tbody>
                            <tr>
                                <td style="padding:3px; font-size:12px; color:#000;">Hi <?= $DearName ?>,</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="padding:3px; font-size:12px; color:#000;">I really appreciate your patience while our team was working on your concern. Please find the details for your refund.</td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table style="border:1px solid #333; width:100%" class="PaymentDetails">
                        <tbody>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    Sector Name
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= trim($SourceAirportCode) . " " . $navarrow . " " . trim($DestAirportCode) ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    Lead Traveller Name
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= $CustomerDetails['name'] ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    PNR No.
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= implode(',', array_values(array_unique($AirlineRefPNR))) ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    Date of Travel
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= date('d-m-Y', strtotime($departureDate)) ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    No of Pax
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= count($arrtravellerList) ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    Booking Amt
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= $CurrencySymbol ?> <?= number_format(ceil($TotalFare + $TotalServiceFee + $TotalGST + $TotalMealFare + $TotalBaggFare + $TotalSeatFare - $couponVal), 2) ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    Cancellation Charges
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= $CurrencySymbol ?> <?= number_format($CancellationCharge, 2) ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    Refund Amount
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= $CurrencySymbol ?> <?= number_format($RefundAmt, 2) ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    Mode of Refund
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= $this->RefundMode ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    Refund Reference
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;border-bottom:1px solid #333;">
                                    <?= $ChangeRequestId ?>
                                </td>
                            </tr>
                            <tr>
                                <td style="width:40%;padding:5px; font-size:12px; color:#000; padding-left: 20px;border-right:1px solid #333;">
                                    Date of Refund
                                </td>
                                <td style="padding:5px; font-size:12px; color:#000;border-right:1px solid #333;">
                                    <?= date('d-m-Y H:i:s') ?>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <table width="100%">
                        <tbody>
                            <tr>
                                <td style="padding:3px; font-size:12px; color:#000;">
                                    We’ve initiated the refund against your order id: <?= $XRefBookingId ?> amounting to <?= $this->RefundMode ?>. This process may take approx. next 3-5 working days.
                                </td>
                            </tr>
                            <tr>
                                <td style="padding:3px; font-size:12px; color:#000;">
                                    I hope this information helps. In case of any query please feel free to reach us.
                                </td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="padding:3px; font-size:12px; color:#000;">
                                    Thanks & Regards,
                                </td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="padding:3px; font-size:12px; color:#000;">
                                    <?= $PrimaryContactName ?><br>
                                    <?= $CompanyName ?><br>
                                    Email ID: <?= $PrimaryEmail ?><br>
                                    Phone No: <?= $PrimaryContactNo ?><br>
                                    <?= $strCompanyAddress ?><br>
                                    <?= $Pincode ?>, <?= $strCityTitle ?>, <?= $strCountry ?><br>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>

</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit