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/b2c.hellogtx.com/application/layouts/template3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2c.hellogtx.com/application/layouts/template3/layout.phtml
<?php
$object = Zend_Controller_Front::getInstance();
$options = $object->getParam('bootstrap')->getOption('bootstrap');
$baseUrl = $options['siteUrl'];
$siteName = $options['siteName'];
$stylecss = $options['stylecss'];
$IsTBOFlightAPI = $options['IsTBOFlightAPI'];
$tollfreenumber = $options['tollfreenumber'];
$whatsappnumber = $options['whatsappnumber'];
$modulename = $object->getRequest()->getModuleName();

$controller = $object->getRequest()->getControllerName();
// echo $controller; die();
$action = $object->getRequest()->getActionName();
//echo $action; die();
$currentPaymentGateway = Catabatic_Helper::getCurrentPaymentGateway();
$actionArray = array(
    'modulename' => $modulename,
    'controller' => $controller,
    'action' => $action,
    'PaymentGateway' => $currentPaymentGateway,
);
define('CONST_PACKAGE_TRAVELER_MAX_ROOM', $options['CONST_PACKAGE_TRAVELER_MAX_ROOM']);
define('CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM', $options['CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM']);
define('CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM', $options['CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM']);
define('CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM', $options['CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM']);
$mydevice = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getDevice();
$getMypopCookie = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getMypopCookie('MyCookies'); // get the popup sessions
$contactDetail = Zend_Controller_Action_HelperBroker::getStaticHelper('Custom')->getContactDetailForFooter();
$tollfreenumber = ($contactDetail['phone']) ? $contactDetail['phone'] : $tollfreenumber;
$whatsappnumber = ($contactDetail['whatsapp_no']) ? $contactDetail['whatsapp_no'] : $whatsappnumber;
$countrycode = (isset($getMypopCookie['countrycode']) && $getMypopCookie['countrycode'] != '') ? $getMypopCookie['countrycode'] : '+91';
$getCountryFlag = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getCountryCodeData($countrycode);
$session = new Zend_Session_Namespace('User');
$cssversion = 3.7;

$commonBoxVal_ = Zend_Controller_Action_HelperBroker::getStaticHelper('custom')->getCommonBoxVal();
// echo"<pre>";print_r($commonBoxVal_);die();

$home_script = (isset($commonBoxVal_['home_content_script']) && trim($commonBoxVal_['home_content_script']) != '') ? $commonBoxVal_['home_content_script'] : '';
$headerScript1 = (isset($commonBoxVal_['common_content_header_1']) && trim($commonBoxVal_['common_content_header_1']) != '') ? $commonBoxVal_['common_content_header_1'] : '';
$headerScript2 = (isset($commonBoxVal_['common_content_header_2']) && trim($commonBoxVal_['common_content_header_2']) != '') ? $commonBoxVal_['common_content_header_2'] : '';
$headerScript3 = (isset($commonBoxVal_['common_content_header_3']) && trim($commonBoxVal_['common_content_header_3']) != '') ? $commonBoxVal_['common_content_header_3'] : '';
$footerScript1 = (isset($commonBoxVal_['common_content_footer_1']) && trim($commonBoxVal_['common_content_footer_1']) != '') ? $commonBoxVal_['common_content_footer_1'] : '';
$footerScript2 = (isset($commonBoxVal_['common_content_footer_2']) && trim($commonBoxVal_['common_content_footer_2']) != '') ? $commonBoxVal_['common_content_footer_2'] : '';
$footerScript3 = (isset($commonBoxVal_['common_content_footer_3']) && trim($commonBoxVal_['common_content_footer_3']) != '') ? $commonBoxVal_['common_content_footer_3'] : '';
//echo"<pre>"; print_r($session);die();


?>

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

<head>
    <?php if ($stylecss == 'incredible') { ?>
        <!-- Google tag (gtag.js) -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=G-XGD0Q0JBBM"></script>
        <script>
            window.dataLayer = window.dataLayer || [];

            function gtag() {
                dataLayer.push(arguments);
            }
            gtag('js', new Date());

            gtag('config', 'G-XGD0Q0JBBM');
        </script>

    <?php } ?>
    <?php if ($stylecss == 'coxtrips') { ?>
        <!-- Google Tag Manager -->
        <script>
            (function(w, d, s, l, i) {
                w[l] = w[l] || [];
                w[l].push({
                    'gtm.start': new Date().getTime(),
                    event: 'gtm.js'
                });
                var f = d.getElementsByTagName(s)[0],
                    j = d.createElement(s),
                    dl = l != 'dataLayer' ? '&l=' + l : '';
                j.async = true;
                j.src =
                    'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
                f.parentNode.insertBefore(j, f);
            })(window, document, 'script', 'dataLayer', 'GTM-MQGTWG6');
        </script>
        <!-- End Google Tag Manager -->

        <meta name="google-site-verification" content="2wm-0-btrarv-_jYJJpFBWIZw7JKFd-MSXvSvG3jyg8" />
    <?php  } ?>
    <meta charset="UTF-8">
    <meta charset="ISO-8859-1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="<?php echo $baseUrl; ?>public/upload/<?php echo $stylecss; ?>/images/favicon.ico">

    <?php
    $commonTitle = (isset($commonBoxVal_['Title']) && trim($commonBoxVal_['Title']) != '') ? trim($commonBoxVal_['Title']) : "Welcome to $siteName ";
    $commonmetaTitle = (isset($commonBoxVal_['metaTitle']) && trim($commonBoxVal_['metaTitle']) != '') ? trim($commonBoxVal_['metaTitle']) : $siteName;
    $commonmetaKeyword = (isset($commonBoxVal_['Keyword']) && trim($commonBoxVal_['Keyword']) != '') ? trim($commonBoxVal_['Keyword']) : $siteName;
    $commonmetaDescription = (isset($commonBoxVal_['Description']) && trim($commonBoxVal_['Description']) != '') ? trim($commonBoxVal_['Description']) : $siteName;
    $detailLayout = $this->detailLayout;
    $Title = (isset($commonTitle) && trim($commonTitle) != '') ? $commonTitle : "Welcome to $siteName ";
    $metaTitle = (isset($detailLayout['metaTitle']) && trim($detailLayout['metaTitle']) != '') ? $detailLayout['metaTitle'] : $commonmetaTitle;
    $metaTitle = (isset($detailLayout['metaTitle']) && trim($detailLayout['metaTitle']) != '') ? $detailLayout['metaTitle'] : $commonmetaTitle;
    // echo"<pre>";print_r( $metaTitle);die; 
    $metaKeyword = (isset($detailLayout['Keyword']) && trim($detailLayout['Keyword']) != '') ? $detailLayout['Keyword'] : $commonmetaKeyword;
    $metaDescription = (isset($detailLayout['Description']) && trim($detailLayout['Description']) != '') ? $detailLayout['Description'] : $commonmetaDescription;
    $metaImage = (isset($detailLayout['metaImage']) && trim($detailLayout['metaImage']) != '') ? $detailLayout['metaImage'] : $baseUrl . 'public/upload/' . $stylecss . '/images/ftr-logo.png';
    ?>

    <meta name="image" content="<?php echo $metaImage; ?>">
    <title><?php echo $Title; ?></title>
    <meta name="description" content="<?php echo $metaDescription; ?>" />
    <meta name="keywords" content="<?php echo $metaKeyword; ?>" />
    <meta name="author" content="<?php echo $siteName; ?>">
    <meta property="og:title" content="<?php echo $metaTitle; ?> " />

    <meta property="og:description" content="<?php echo $metaDescription; ?>" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="<?php echo $options['websiteUrl'] . $_SERVER['REQUEST_URI']; ?>" />
    <meta property="og:image" content="<?php echo $metaImage; ?>" />
    <meta name="image" content="<?php echo $metaImage; ?>">
    <meta property="og:site_name" content="<?php echo $metaTitle; ?>" />

    <!-- Schema.org for Google -->

    <meta itemprop="name" content="<?php echo $metaTitle; ?>">
    <meta itemprop="description" content="<?php echo $metaDescription; ?>">
    <meta itemprop="image" content="<?php echo $metaImage; ?>">
    <!-- TWITTER -->

    <meta name="twitter:card" content="summary">
    <meta name="twitter:title" content="<?php echo $metaTitle; ?>">

    <meta name="twitter:description" content="<?php echo $metaDescription; ?> ">
    <meta name="author" content="<?php echo $siteName; ?> ">
    <meta name="robots" content="index, follow" />
    <meta name="language" content="English">
    
    <link rel="alternate" href="<?php echo $options['websiteUrl'] . $_SERVER['REQUEST_URI']; ?>" hreflang="en-us" />
    <link rel="canonical" href="<?php echo $options['websiteUrl'] . $_SERVER['REQUEST_URI']; ?>" />
    <meta name="image" content="<?php echo $metaImage; ?>">
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-142190766-1"></script>
    <script>
        window.dataLayer = window.dataLayer || [];

        function gtag() {
            dataLayer.push(arguments);
        }
        gtag('js', new Date());
        gtag('config', 'UA-142190766-1');
    </script>

    <?php if (($modulename == 'default') && ($controller == 'index')) { ?>
        <?php echo $home_script; ?>
    <?php } ?>

    <?php echo $headerScript1; ?>
    <base href="<?php echo Catabatic_Helper::getSiteUrl(); ?>" />
    <?php if (($modulename == 'default') && ($controller == 'customer') && ($action == 'myprofile')) { ?>
        <link href="<?php echo $baseUrl; ?>public/css/jquery.atAccordionOrTabs.css" rel="stylesheet">
    <?php } ?>
    <link rel="shortcut icon" href="<?php echo $baseUrl; ?>public/upload/<?php echo $stylecss; ?>images/favicon.ico">
    <link rel="preload" type="text/css" as="style" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/css/common.css?v=<?= $cssversion ?>">
    <link rel="preload" type="text/css" as="style" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/css/main.css?v=<?= $cssversion ?>">
    <link rel="preload" type="text/css" as="style" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/css/font-awesome.min.css?v=<?= $cssversion ?>">
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiAyp8kv8JHgFVrJJLmE0tDMPKzSQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiEyp8kv8JHgFVrJJfecg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiAyp8kv8JHgFVrJJLmE0tCMPI.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiAyp8kv8JHgFVrJJLmE0tDMPKzSQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiAyp8kv8JHgFVrJJLmE0tMMPKzSQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLBT5Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLBT5Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLBT5Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDD4Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDz8Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLFj_Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLFj_Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLFj_Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm21lVF9eO.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm21lVFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm21lVGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm81xVF9eO.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm81xVFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm81xVGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm111VF9eO.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm111VFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm111VGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmg1hVF9eO.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmg1hVFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmr19VF9eO.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmr19VFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmr19VGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmv1pVF9eO.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmv1pVFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmv1pVGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmy15VF9eO.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmy15VFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
    <!-- <link rel="preload" href="<?php echo $baseUrl ?>public/assets/js/jquery.min.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/assets/js/custom.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/js/custom.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/js/visa.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/js/checkrate_sendenquiry.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/js/common_function.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/js/custom_mangal.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/js/package_customize.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/assets/js/select2.full.min.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/countrycode/script.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/js/function.js?v=<?= $cssversion ?>" as="script" async defer>
        <link rel="preload" href="<?php echo $baseUrl ?>public/js/autocomplete.js?v=<?= $cssversion ?>" as="script" async defer>
        <script rel="preload" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB0G1HvaynGZ2BP71ciLjVKUMqDfFu8YUA&libraries=places" as="script" async defer></script>
        <script rel="preload" src="https://apis.google.com/js/api.js?v=<?= $cssversion ?>" as="script" async defer></script>
        <script rel="preload" src="https://apis.google.com/js/platform.js?v=<?= $cssversion ?>" as="script" async defer></script> -->

    <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/css/font-awesome.min.css?v=<?= $cssversion ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/css/common.css?v=<?= $cssversion ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/css/main.css?v=<?= $cssversion ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/css/style.css?v=<?= $cssversion ?>">
    <!-- <link rel="stylesheet" type="text/css" href="<? //php echo $baseUrl 
                                                        ?>public/upload/<? //php echo $stylecss 
                                                                        ?>/css/hotel_style.css?v=<//?= $cssversion ?>"> -->
    <script type='text/javascript' src='https://platform-api.sharethis.com/js/sharethis.js#property=61d2ec6acb125900193f457c&product=inline-share-buttons' async='async'></script>
    <script>
        var SITEURL = '<?php echo $baseUrl ?>';
        var stylecss = '<?php echo $stylecss ?>';
        var appmode = '<?php echo $options['appmode'] ?>';
        var UserLogin = '<?php (isset($session->session) && !empty($session->session)) ? true : false ?>';
        var actionArray = '<?php echo json_encode($actionArray) ?>';
        var dvc = '<?php echo ($mydevice == "mobile") ? "m" : "d" ?>';
    </script>
    <script type="text/javascript">
        var CONST_PACKAGE_TRAVELER_MAX_ROOM = '<?php echo CONST_PACKAGE_TRAVELER_MAX_ROOM ?>';
        var CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM = '<?php echo CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM ?>';
        var CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM = '<?php echo CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM ?>';
        var CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM = '<?php echo CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM ?>';
        var HOTEL_CATEGORY = {
            "Budget": [1],
            "Standard": [2],
            "Deluxe": [3],
            "Luxury": [4],
            "Premium": [5]
        };
    </script>
    <?php
    echo $seoContent = (isset($detailLayout['seoHcontent']) && $detailLayout['seoHcontent'] != '') ? $detailLayout['seoHcontent'] : '';
    ?>
</head>

<body ng-app="Farohar">

    <div id="page">
        <?php if ($stylecss == 'coxtrips') { ?>
            <!-- Google Tag Manager (noscript) -->
            <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MQGTWG6" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
            <!-- End Google Tag Manager (noscript) -->

        <?php } ?>
        <?php
        $data = [
            'baseUrl' => $baseUrl, 'AgencySysId' => $options['gtxagencysysid'], 'modulename' => $modulename,
            'CONST_PACKAGE_TRAVELER_MAX_ROOM' => CONST_PACKAGE_TRAVELER_MAX_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM,
            'POPUPCOOKIES' => $getMypopCookie,
            'tollfreenumber' => $tollfreenumber
        ];
        require_once(APPLICATION_PATH . '/sites/' . $stylecss . '/layouts/header.phtml');
        //echo $this->render("header.phtml");
        echo $this->partial('models/modal-enquiry.phtml', ['baseUrl' => $baseUrl, 'siteName' => $siteName, 'tollfreenumber' => $tollfreenumber, 'POPUPCOOKIESENQUIRY' => $getMypopCookie]);
        //echo $this->partial('models/modal-signin.phtml', ['baseUrl' => $baseUrl]);
        if (($modulename == 'tours') && ($controller == 'package') && ($action == 'index')) {
            echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
        }
        if (($modulename == 'detail') && ($controller == 'index') && ($action == 'index')) {
            echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
        }
        ?>

        <?php
        echo $this->layout()->content;
        require_once(APPLICATION_PATH . '/sites/' . $stylecss . '/layouts/footer.phtml');

        ?>
    </div>

    <script type="text/javascript">
        var hotel_enable_status = '<?php echo $this->check_hotel_enable; ?>';
    </script>
    <script type="text/javascript" src="public/upload/<?php echo $stylecss ?>/js/jquery.min.js?v=<?= $cssversion ?>"></script>

    <!-- manish test -->
    <script type="text/javascript" src="public/js/custom.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/upload/<?php echo $stylecss ?>/js/custom.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/visa.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/checkrate_sendenquiry.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/common_function.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/custom_mangal.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/package_customize.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/upload/<?php echo $stylecss ?>/js/select2.full.min.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/countrycode/script.js?v=<?= $cssversion ?>"></script>
    <script src="https://apis.google.com/js/api.js?v=<?= $cssversion ?>" async defer></script>
    <script src="https://apis.google.com/js/platform.js?v=<?= $cssversion ?>" async defer></script>
    <script type="text/javascript" src="public/js/login.js?v=<?= $cssversion ?>"></script>
    <!-- <script type="text/javascript" src="public/js/car.js?v=<?= $cssversion ?>"></script> -->
    <script type="text/javascript" src="public/js/function.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/autocomplete.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/autocompletesr.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/jquery.multi-select.js?v=<?= $cssversion ?>"></script>
    <script type="text/javascript" src="public/js/layoutScript.js?v=<?= $cssversion ?>"></script>
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB0G1HvaynGZ2BP71ciLjVKUMqDfFu8YUA&libraries=places"></script>



    <script>
        $('form').attr('autocomplete', 'off');
        $('input').attr('autocomplete', 'off');
        $(function() {
            // $('.flightsearch').disableAutoFill();
        });


        function BookingStatus() {
            var bookingid = $.trim($('#bookingid').val());
            var bookemail = $.trim($('#bookemail').val());
            var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
            if (bookingid === '') {
                alert('Please enter booking id.');
                $("#bookingid").focus();
                cont = false;
                return false;
            }
            if (!regex.test(bookemail)) {
                alert('Please enter valid email id.');
                $("#bookemail").focus();
                cont = false;
                return false;
            }
            $.ajax({
                type: "POST",
                url: "<?php echo $baseUrl; ?>flight/bookingstatus",
                dataType: 'json',
                data: {
                    bookingid: bookingid,
                    bookemail: bookemail,
                },
                beforeSend: function() {
                    $('.bookingstatus_').prop("disabled", true);
                    $(".bookingstatus_").html('Please wait..');
                },
                success: function(data) {
                    if (data.success) {
                        $('.bookingstatus_').prop("disabled", false);
                        $(".bookingstatus_").hide();
                        $(".printticker").show();
                        $('.printticker').attr('href', 'flight/e-ticket/' + data.BookingId + '?source=' + data.ICSourceSysId);
                        $('.mesg').html(data.message);
                    } else {
                        $('.bookingstatus_').prop("disabled", false);
                        $(".bookingstatus_").html('Check Status');
                        alert(data.message);
                        return false;
                    }

                }
            });
        }

        function onSignIn(googleUser) {
            var profile = googleUser.getBasicProfile();

            var familyname = profile.getFamilyName();
            var name = profile.getName();
            var image = profile.getImageUrl();
            var email = profile.getEmail();
            var gid = profile.getId();

            $.ajax({
                type: "POST",
                url: "<?php echo $baseUrl; ?>customer/loginwith-google",
                // dataType: 'html',
                data: {
                    name: name,
                    email: email,
                },
                success: function(data) {
                    console.log(data);

                }
            });


        }


        function signOut() {
            var auth2 = gapi.auth2.getAuthInstance();
            auth2.signOut().then(function() {
                console.log('User signed out.');
            });
        }
    </script>
    <script>
        function signOut() {
            var auth2 = gapi.auth2.getAuthInstance();
            auth2.signOut().then(function() {
                console.log('User signed out.');
            });
        }
    </script>

    <script>
        const myVideo = document.getElementById('my-video');

        // Not all browsers return promise from .play().
        const playPromise = myVideo.play() || Promise.reject('');
        playPromise.then(() => {
            // Video could be autoplayed, do nothing.
        }).catch(err => {
            // Video couldn't be autoplayed because of autoplay policy. Mute it and play.
            myVideo.muted = true;
            myVideo.play();
        });
    </script>


    <script type="text/javascript">
        $(document).on('click', '.ViewDetails', function() {
            var TraceId = $(this).attr('data');
            var journeyType = $(this).attr('journeyType');
            $('#myModalViewDetails').modal('show');
            $.ajax({
                type: "POST",
                url: "<?php echo $baseUrl; ?>flight/view-details",
                dataType: 'html',
                data: {
                    TraceId: TraceId,
                    journeyType: journeyType,
                },
                beforeSend: function() {
                    $("#ViewDetailsLoad").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
                },
                success: function(data) {
                    //                                    console.log(data);
                    $("#ViewDetailsLoad").html(data);
                }
            });

        });




        $(document).ready(function() {
            $('.flightsearch').on('submit', function(event) {
                //event.preventDefault();
                var paxHtm = $('#mobilecls').html();
                $('#modalPaxvalues').html(paxHtm);
                var source = $('.flightsearch input[name="source"]').val();
                var mytrip_city_from = $('.flightsearch input[name="mytrip_city_from"]').val();
                var mytrip_city_to = $('.flightsearch input[name="mytrip_city_to"]').val();
                var destination = $('.flightsearch input[name="destination"]').val();
                var source_city = $('.flightsearch input[name="source_city"]').val();
                var destination_city = $('.flightsearch input[name="destination_city"]').val();

                var route = $(".tripType:checked").val();
                var TotalPax = 0;
                $(".quantity").each(function() {
                    TotalPax += parseInt($(this).val());
                });
                if (TotalPax >= 10) {
                    alert("More than 9 Passenger's can not travel.");
                    return false;
                }
                if (route === '3') {
                    var returnvalue = true;

                    $(".countSectore").each(function(i, field) {
                        var ind = $(this).attr('counter');
                        var mytrip_city_from = $('#mytrip_city_from' + ind).val();
                        var mytrip_city_to = $('#mytrip_city_to' + ind).val();
                        var departure_dates = $('#departure_dates' + ind).val();
                        if (mytrip_city_from === '') {
                            alert('Please enter source city name');
                            returnvalue = false;
                            return false;
                        }
                        if (mytrip_city_to === '') {
                            alert('Please enter destination city name');
                            returnvalue = false;
                            return false;
                        }
                        if (departure_dates === '') {
                            alert('Please enter departure date');
                            returnvalue = false;
                            return false;
                        }
                    });
                    if (returnvalue) {
                        // $('.flightsearch').submit();
                    } else {
                        return false;
                    }
                    //console.log(returnvalue);

                } else {

                    // alert(destination);

                    if (mytrip_city_from === '') {
                        alert('Please enter from city name');
                        $('input[name="mytrip_city_from"]').focus();
                        return false;
                    } else if (mytrip_city_to === '') {
                        alert('Please enter to city name');
                        $('input[name="mytrip_city_to"]').focus();
                        return false;
                    } else if (source === '') {
                        alert('Please enter from city name');
                        $('input[name="source"]').focus();
                        return false;
                    } else if (destination === '') {
                        alert('Please enter to city name');
                        $('input[name="destination"]').focus();
                        return false;
                    } else if (source_city === '') {
                        alert('Please enter valif from city name');
                        $('input[name="source"]').focus();
                        return false;
                    } else if (destination_city === '') {
                        alert('Please enter valif to city name');
                        $('input[name="destination"]').focus();
                        return false;
                    } else if (mytrip_city_from == mytrip_city_to) {
                        alert('Source and destination can not be same');
                        return false;
                    }

                }

            });

            setTimeout(function() {


                $('.select2').select2();

                $.getJSON(SITEURL + 'flight/getsetcity', function(source) {

                    $(".airport_search").autocomplete({
                        minLength: 0,
                        autoFocus: true,
                        source: function(request, response) {
                            var term = $.ui.autocomplete.escapeRegex(request.term),
                                startsWithMatcher = new RegExp("^" + term, "i"),
                                startsWith = $.grep(source, function(value) {
                                    return startsWithMatcher.test(value.AirportCode || value.value || value);
                                }),
                                containsMatcher = new RegExp(term, "i"),
                                contains = $.grep(source, function(value) {
                                    return $.inArray(value, startsWith) < 0 &&
                                        containsMatcher.test(value.label || value.value || value);
                                });

                            response(startsWith.concat(contains).slice(0, 10));
                        },
                        response: function(e) {
                            //console.log(e);
                        },

                        select: function(event, ui) {
                            var index = $(this).attr('index');
                            var value = ui.item.value;

                            var dddd = value.split(',');
                            ui.item.value = dddd[0] + ' (' + ui.item.AirportCode + ')';
                            //alert(dddd[0]);
                            $('.apendn_' + index).val(dddd[0]);
                            $('.fromText_' + index).html(dddd[1]);
                            $('#mytrip_city_' + index).val(dddd[1]);
                            $('#FromToCIty_' + index).val(value);
                            $('#airport_search_' + index).val(ui.item.AirportCode);
                            $('#ContSysId_' + index).val(ui.item.ContSysId);
                            $(this).removeClass('extend_width');
                            // $("#bannerslider").removeClass("ss");
                            $(".search-box").removeClass("extend_width2");
                            // $(".formullist").removeClass("extend_width_list");
                            // $(".flight-search-flight1").removeClass("extend_width_list");
                            $(".flight-search-flight2").removeClass("extend_width2");
                            $(".apendn_2").removeClass("showsecond");
                            $(".formtitlecls").removeClass("showsecond");
                            // $(".formullist").removeClass("ss");
                            // $(".srch_form").removeClass("ss");
                            // $(".search-form-box").removeClass("extend_width");
                            // $(".formullist").removeClass("extend_width");
                            // $(".searchf1").removeClass("extend_width_input");
                            // $(".formtitlecls").removeClass("extend_width_formtitlecls");
                            $(".frmclose").removeClass("extend_width_frmclose");
                            // $(".ui-front").removeClass("extend_width_ui-front");
                            // $(".ui-front .ui-menu-item").removeClass("extend_width_ui-front_list");
                            // $(".formtitlecls").removeClass("extend_width_formtitlecls");
                            // $(".search-form-box").removeClass("extend_width_home-srch");
                            // $(".exchange_transfer").removeClass("frmhidesection");
                            $(".custom-nav").removeClass("frmhidesection");

                        }
                    }).focus(function() {
                        $(this).val('');
                        // debugger;
                        $(this).addClass("extend_width");
                        // $("#bannerslider").addClass("ss");
                        $(".search-box").addClass("extend_width2");
                        // $(".formullist").addClass("extend_width_list");
                        // $(".flight-search-flight1").addClass("extend_width_list");
                        $(".flight-search-flight2").addClass("extend_width2");
                        $(".apendn_2").addClass("showsecond");
                        $(".formtitlecls").addClass("showsecond");
                        // $(".formullist").addClass("ss");
                        // $(".srch_form").addClass("ss");
                        // $(".search-form-box").addClass("extend_width");
                        // $(".formullist").addClass("extend_width");
                        // $(".flight-search-flight1").addClass("extend_width_list");
                        // $(".searchf1").addClass("extend_width_input");
                        // $(".formtitlecls").addClass("extend_width_formtitlecls");
                        $(".frmclose").addClass("extend_width_frmclose");
                        // $(".ui-front").addClass("extend_width_ui-front");
                        // $(".ui-front .ui-menu-item").addClass("extend_width_ui-front_list");
                        // $(".formtitlecls").addClass("extend_width_formtitlecls");
                        // $(".search-form-box").addClass("extend_width_home-srch");
                        // $(".exchange_transfer").addClass("frmhidesection");
                        $(".custom-nav").addClass("frmhidesection");
                        // alert('manish');
                        $('html, body').animate({

                            scrollTop: $("#bannerslider").offset().top - 460
                        }, 200);


                        $(this).autocomplete('search');
                    });

                });
            }, 1000);



            $('.frmclose').click(function() {
                $(".frmclose").removeClass("extend_width_frmclose");
                $("#mytrip_city_from").removeClass("extend_width");
                $("#mytrip_city_to").removeClass("extend_width");
                // $("#bannerslider").removeClass("ss");
                $(".search-box").removeClass("extend_width2");
                $(".flight-search-flight2").removeClass("extend_width2");
                $(".apendn_2").removeClass("showsecond");
                $(".formtitlecls").removeClass("showsecond");
                // $(".formullist").removeClass("ss");
                $(".custom-nav").removeClass("frmhidesection");


            });

            // $('.apendn_1').keyup(function(e) {
            //     var valofrom = $(this).val();
            //    if(valofrom.length >= 3){
            //         $('#sourcesjd').hide();
            //    }else{
            //     $('#sourcesjd').show();
            //    }
            // });

            // $('.apendn_2').keyup(function(e) {
            //     var valofrom = $(this).val();
            //    if(valofrom.length >= 3){
            //         $('#destinjd').hide();
            //    }else{
            //     $('#destinjd').show();
            //    }
            // });


            $('.frmclose').click(function() {

                $('.flight-search-flight1').removeClass('mobile-as1');
                $('.flight-search-flight2').removeClass('mobile-as1');
                $('section.search-form-box').removeClass('mobile-asfrm');
                $('.blackbar').removeClass('mobile_head1');
                $('.custom-nav').removeClass('mobile_head1');
                $('.frmclose').removeClass('frmcloseshow');
            });









            $("#from, #to").datepicker({
                //defaultDate: "+1w",
                changeMonth: false,
                dateFormat: "d M yy",
                numberOfMonths: 2,
                minDate: 0,
                buttonImage: true,
                buttonImageOnly: true,
                beforeShow: function() {
                    if (this.id == 'to') {
                        // debugger;
                        var dateMin = $('#from').datepicker("getDate");
                        var TodateMin = $('#to').datepicker("getDate");
                        if (TodateMin === null) {
                            TodateMin = dateMin;
                        }

                        var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                        var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
                        var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate()); // Min Date = Selected + 1d
                        $('#to').datepicker("option", "minDate", rMin);
                        $('#to').datepicker("option", "maxDate", rMax);
                        $('#to').datepicker("setDate", c_out_date);
                        $('#RoundTrip').prop('checked', true);
                    }
                },
                onSelect: function(selectedDate, inst) {
                    var tripType = $('.tripType:checked').val(); // retrieve the value
                    if (this.id == 'from') {
                        var dateMin = $('#from').datepicker("getDate");
                        var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                        var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
                        var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 1); // Min Date = Selected + 1d
                        var theDate = new Date(Date.parse($(this).datepicker('getDate')));
                        var dateFormatted = $.datepicker.formatDate('DD', theDate);
                        var FromFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
                        $('.Departure').html(dateFormatted);
                        $('#departure_date').val(FromFormatted);
                        if (parseInt(tripType) === 2) {
                            $('#to').datepicker("option", "minDate", rMin);
                            $('#to').datepicker("option", "maxDate", rMax);

                            $('#to').datepicker("setDate", c_out_date);
                            $('.Return').html(dateFormatted);
                            $('#return_date').val($.datepicker.formatDate('dd/mm/yy', c_out_date));

                        }
                        //                            console.log(c_out_date);

                        ///$('#to').focus();return false;
                    } else {
                        var dateMin = $('#to').datepicker("getDate");
                        var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0);
                        var theDate = new Date(Date.parse(c_out_date));
                        var dateFormatted = $.datepicker.formatDate('DD', theDate);
                        var ToFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
                        $('.Return').html(dateFormatted);
                        $('#return_date').val(ToFormatted);
                        //                            console.log(ToFormatted);
                    }


                }
            });
            var tripType = $('.SelectClass:checked').val();
            var htmlval = $('#optionsRadios' + tripType).attr('data'); // retrieve the html value
            $('.TravellersClass').html(htmlval);
            $(document).on('click', '.onewayflight', function() {
                var index = $(this).attr('index');
                $('div.SingleSelect').removeClass("mobile_roundflight_active");
                $('#SingleSelect_' + index).addClass("mobile_roundflight_active");
            });
            $(document).on('click', '.twowayflight', function() {
                var index = $(this).attr('index');
                $('div.roundSelect').removeClass("mobile_roundflight_active");
                $('#roundSelect_' + index).addClass("mobile_roundflight_active");
            });
            var counter = 3;
            $(document).on('click', '.tripType', function() {

                var tripType = $(this).val();
                var from = $('#from').val();
                if (tripType == 2) {
                    $('.disableres').show();
                    $('.addSegment').hide();
                    $('.multitraveller').hide();
                    $('.block').hide();
                    $('#oneRound :input').prop("disabled", false);

                    var dateMin = $('#from').datepicker("getDate");
                    var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 1);
                    var theDate = new Date(Date.parse(c_out_date));
                    var dateFormatted = $.datepicker.formatDate('DD', theDate);
                    var ToFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
                    $('.Return').html(dateFormatted);
                    $('#return_date').val(ToFormatted);
                    $('#to').val($.datepicker.formatDate('d M yy', theDate));
                    $("#to").removeAttr("readonly", "readonly");
                    $("#to").removeClass("disabledcls");
                } else if (tripType == 3) {
                    <?php if ($IsTBOFlightAPI == 1) { ?>
                        alert('Coming soon...');
                        return false;
                    <?php } ?>
                    var countSectore = 0;
                    $(".countSectore").each(function(i, field) {
                        countSectore++;
                    });
                    $('.disableres').hide();
                    $('.multitraveller').show();
                    $('.block').show();
                    $('.addSegment').show();
                    //$(".addSegment").trigger('click');
                    //$(".addSegment").trigger('click');
                    $('#oneRound :input').prop("disabled", true);
                    if (countSectore == 2) {

                    } else {
                        $('.addSegment').show();
                        $(".addSegment").trigger('click');
                        $(".addSegment").trigger('click');
                    }


                    $("#to").attr("readonly", "readonly");
                } else {
                    $('.addSegment').hide();
                    $('.disableres').show();
                    $('.multitraveller').hide();
                    $('.block').hide();
                    $('#oneRound :input').prop("disabled", false);
                    $('#to').val('');
                    $('.Return').html('');
                    $('#return_date').val('');
                    $("#to").attr("readonly", "readonly");
                    $("#to").addClass("disabledcls");
                }

            });
            $('.addSegment').click(function() {
                var removeTag = ''
                if (counter == 3) {
                    var CurrentDate = "<?= date('d M Y') ?>";
                    var CurrentDate2 = "<?= date('Y/m/d') ?>";
                } else {
                    CurrentDate = '';
                }
                if (counter > 4) {
                    removeTag = `<li class="multicity_filghtremoveicon" id="removeDIV` + counter + `">
                                 <a href="javascript:void(0);" style="margin-top: 6px;" index="` + counter + `" class="multiremove removeSeg"><i class="fa fa-minus-circle" aria-hidden="true"></i></a>
                              </li>`
                }
                if (counter == 6) {
                    $('.addSegment').hide();
                }

                $('.block').append(`<div class="DeleteRow_` + counter + `"><li class="multicity_filght">
                                 <span class="formtitlecls" id="title_` + counter + `">Source city</span>
                                 <div class="searchf1 searchinput">
                                    <input class="form-control airport_search__ countSectore apendn_1` + counter + `"  index="1` + counter + `" type="text" name="mytrip_city_from[]" id="mytrip_city_from` + counter + `" placeholder="Type source city.." value="" counter="` + counter + `" autocomplete="off" autosuggestion="off" />
                                    <ul id="sourcesjd"></ul>
                                 </div>
                              </li>
                              <li class="multicity_filght ">
                                 <span class="formtitlecls" id="title_1` + counter + `">Destination city</span>
                                 <div class="searchinput">
                                    <input class="form-control airport_search__ apendn_2` + counter + `" index="2` + counter + `" type="text" name="mytrip_city_to[]" id="mytrip_city_to` + counter + `" placeholder="Type destination city.." value="" counter="` + counter + `" autocomplete="off" autosuggestion="off" />
                                    <ul id="destinjd"></ul>
                                 </div>
                              </li>

                              <li class="multicity_filghtdate">
                                 <span class="formtitlecls" id="title_2` + counter + `">Departure Date</span>
                                 <div class="date-parent searchinput">
                                    <input class="form-control" type="text" index="` + counter + `" name="departure_dates[]" id="departure_dates` + counter + `" value="` + CurrentDate + `" counter="` + counter + `" readonly />
                                 </div>
                              </li>
                              ` + removeTag + `
                                <input type="hidden" id="airport_search_1` + counter + `" name="source_city[]" value="">
                                <input type="hidden" id="ContSysId_1` + counter + `" name="ContSysId_1[]" value="" />
                                <input type="hidden" id="airport_search_2` + counter + `" name="destination_city[]" value="">
                                <input type="hidden" id="ContSysId_2` + counter + `" name="ContSysId[]" value="" />
                                <input type="hidden" id="FromToCIty_1` + counter + `" name="source[]" value="">
                                <input type="hidden" id="FromToCIty_2` + counter + `" name="destination[]" value="">
                                <input type="hidden" id="departure_date` + counter + `" name="departure_date[]" value="` + CurrentDate2 + `">
                                <input type="hidden" id="return_date` + counter + `" name="return_date[]" value="">
                                <input type="hidden" id="mytrip_city_1` + counter + `" name="from_mytrip_city[]" value="">
                                <input type="hidden" id="mytrip_city_2` + counter + `" name="to_mytrip_city[]" value="">
                              <div class="clearfix"></div>
                             </div> `);


                var mytrip_city_to = $('#mytrip_city_to' + (counter - 1)).val();
                var ContSysId_1 = $('#ContSysId_1' + (counter - 1)).val();
                var airport_search_2 = $('#airport_search_2' + (counter - 1)).val();
                var FromToCIty_2 = $('#FromToCIty_2' + (counter - 1)).val();
                var mytrip_city_2 = $('#mytrip_city_2' + (counter - 1)).val();

                $('#mytrip_city_from' + (counter)).val(mytrip_city_to);
                $('#ContSysId_1' + (counter)).val(ContSysId_1);
                $('#airport_search_1' + (counter)).val(airport_search_2);
                $('#FromToCIty_1' + (counter)).val(FromToCIty_2);
                $('#mytrip_city_1' + (counter)).val(mytrip_city_2);

                if (counter == 3) {
                    $('#title_' + counter).html('Source city');
                    $('#title_1' + counter).html('Destination city');
                    $('#title_2' + counter).html('Departure Date');
                } else { //&nbsp;
                    $('#title_' + counter).html('');
                    $('#title_1' + counter).html('');
                    $('#title_2' + counter).html('');
                }
                $('#removeDIV' + (counter - 1)).hide();
                $('#departure_dates' + counter).datepicker({
                    changeMonth: false,
                    dateFormat: "d M yy",
                    numberOfMonths: 2,
                    minDate: 0,
                    buttonImage: true,
                    buttonImageOnly: true,
                    beforeShow: function(ct, en) {
                        var index = $(this).attr('index');
                        var CheckIn = $("#departure_dates" + (index - 1)).val();
                        if (typeof CheckIn !== 'undefined') {
                            var dateMin = new Date(CheckIn);
                            var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate());
                            $('#departure_dates' + index).datepicker("option", "minDate", rMin);
                        }
                        //console.log($(this).attr('index'));
                    },
                    onSelect: function(selectedDate, inst) {
                        var index = $(this).attr('index');
                        var dateMin = new Date(selectedDate);
                        var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                        var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
                        var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                        var theDate = new Date(Date.parse($(this).datepicker('getDate')));
                        var FromFormatted = $.datepicker.formatDate('yy/mm/dd', theDate);
                        $('#departure_date' + (parseInt(index))).val(FromFormatted);
                    }
                });
                setTimeout(function() {
                    $.getJSON(SITEURL + 'flight/getsetcity', function(source) {
                        $(".airport_search__").autocomplete({
                            minLength: 0,
                            autoFocus: true,
                            source: function(request, response) {
                                var term = $.ui.autocomplete.escapeRegex(request.term),
                                    startsWithMatcher = new RegExp("^" + term, "i"),
                                    startsWith = $.grep(source, function(value) {
                                        return startsWithMatcher.test(value.AirportCode || value.value || value);
                                    }),
                                    containsMatcher = new RegExp(term, "i"),
                                    contains = $.grep(source, function(value) {
                                        return $.inArray(value, startsWith) < 0 &&
                                            containsMatcher.test(value.label || value.value || value);
                                    });

                                response(startsWith.concat(contains).slice(0, 10));
                            },
                            response: function(e) {
                                //console.log(e);
                            },

                            select: function(event, ui) {
                                var counter = $(this).attr('counter');
                                var name = $(this).attr('name');
                                var index = $(this).attr('index');
                                var value = ui.item.value;
                                console.log(index);
                                var dddd = value.split(',');
                                // ui.item.value = dddd[0] + ' (' + ui.item.AirportCode + ')';
                                ui.item.value = dddd[0];
                                //alert(dddd[0]);
                                $('.apendn_' + index).val(dddd[0]);
                                $('.fromText_' + index).html(dddd[1]);
                                $('#mytrip_city_' + index).val(dddd[1]);
                                $('#FromToCIty_' + index).val(value);
                                $('#airport_search_' + index).val(ui.item.AirportCode);
                                $('#ContSysId_' + index).val(ui.item.ContSysId);

                                $(this).removeClass('extend_width');
                                // $("#bannerslider").removeClass("ss");
                                $(".search-box").removeClass("extend_width2");
                                $(".flight-search-flight2").removeClass("extend_width2");
                                $(".apendn_2").removeClass("showsecond");
                                $(".formtitlecls").removeClass("showsecond");
                                // $(".formullist").removeClass("ss");
                                $(".frmclose").removeClass("extend_width_frmclose");
                                $(".custom-nav").removeClass("frmhidesection");

                                if (name === 'mytrip_city_to[]') {
                                    // var fromcity = dddd[0] + '(' + ui.item.AirportCode + ')';
                                    var fromcity = dddd[0];
                                    //console.log(fromcity);
                                    //$('#mytrip_city_from' + (parseInt(counter) + 1)).attr('readonly', true);
                                    //$('#mytrip_city_from' + (parseInt(counter) + 1)).removeClass('airport_search');

                                    $('.apendn_1' + (parseInt(counter) + 1)).val(dddd[0]);
                                    $('.fromText_1' + (parseInt(counter) + 1)).html(dddd[1]);
                                    $('#mytrip_city_1' + (parseInt(counter) + 1)).val(dddd[1]);
                                    $('#FromToCIty_1' + (parseInt(counter) + 1)).val(value);
                                    $('#airport_search_1' + (parseInt(counter) + 1)).val(ui.item.AirportCode);
                                    $('#ContSysId_1' + (parseInt(counter) + 1)).val(ui.item.ContSysId);
                                    $('#mytrip_city_from' + (parseInt(counter) + 1)).val(fromcity);

                                }
                            }
                        }).focus(function() {
                            //$(this).val('');
                            // debugger;
                            $(this).addClass("extend_width");
                            // $("#bannerslider").addClass("ss");
                            $(".search-box").addClass("extend_width2");
                            $(".flight-search-flight2").addClass("extend_width2");
                            $(".apendn_2").addClass("showsecond");
                            $(".formtitlecls").addClass("showsecond");
                            // $(".formullist").addClass("ss");
                            $(".frmclose").addClass("extend_width_frmclose");
                            $(".custom-nav").addClass("frmhidesection");
                            $('html, body').animate({
                                scrollTop: $("#bannerslider").offset().top - 460
                            }, 200);
                            $(this).autocomplete('search');
                        });
                    });
                }, 1000);
                counter++;
            });

            $('body').on('click', '.removeSeg', function() {
                var index = $(this).attr('index');
                $(".DeleteRow_" + index).remove();
                $('#removeDIV' + (index - 1)).show();
                $('.addSegment').show();
                counter--;
            });


            $(document).on('click', '.tripTypeRound', function() {
                $("#to").removeClass("disabledcls"); //  debugger;
                $("#to").datepicker("show");
                $("#RoundTrip").prop('checked', true);
            });

            $(".SelectClass") // select the radio by its id
                .change(function() { // bind a function to the change event
                    if ($(this).is(":checked")) { // check if the radio is checked
                        var val = $(this).val(); // retrieve the value
                        var htmlval = $(this).attr('data'); // retrieve the html value
                        $('.TravellersClass').html(htmlval);
                    }
                });

            function openSearch() {
                document.getElementById("mySidenavsearch").style.width = "100%";
            }

            function closeSearch() {
                document.getElementById("mySidenavsearch").style.width = "0";
            }

            $('.exchange_transfer,.exchange_transfer_searchflight').on('click', function() {
                var mytrip_city_from = $('#mytrip_city_from').val();
                var mytrip_city_to = $('#mytrip_city_to').val();
                $('#mytrip_city_from').val(mytrip_city_to);
                $('#mytrip_city_to').val(mytrip_city_from);

                var fromText_1 = $('.fromText_1').text();
                var fromText_2 = $('.fromText_2').text();
                $('.fromText_1').html(fromText_2);
                $('.fromText_2').html(fromText_1);

                var airport_search_1 = $('#airport_search_1').val();
                var airport_search_2 = $('#airport_search_2').val();
                $('#airport_search_1').val(airport_search_2);
                $('#airport_search_2').val(airport_search_1);

                var ContSysId_1 = $('#ContSysId_1').val();
                var ContSysId_2 = $('#ContSysId_2').val();
                $('#ContSysId_1').val(ContSysId_2);
                $('#ContSysId_2').val(ContSysId_1);

                var FromToCIty_1 = $('#FromToCIty_1').val();
                var FromToCIty_2 = $('#FromToCIty_2').val();
                $('#FromToCIty_1').val(FromToCIty_2);
                $('#FromToCIty_2').val(FromToCIty_1);

                var mytrip_city_1 = $('#mytrip_city_1').val();
                var mytrip_city_2 = $('#mytrip_city_2').val();
                $('#mytrip_city_1').val(mytrip_city_2);
                $('#mytrip_city_2').val(mytrip_city_1);
            });
        });

        function SetPaxData() {

            if ($('#modalPaxvalues').length > 0) {
                // debugger;
                $('#modalPaxvalues').html('');
                var paxHtm = $('#mobilecls').html();


                $('#modalPaxvalues').html(paxHtm);

                $('#mobilecls').html('');


                $('#mobilecls').show();
                //alert("Adult 3: "+$('input[name="adults"]').val());
            }


        }



        $(document).ready(function() {

            $('.sorting').click(function() {
                $(this).children('i').toggleClass('icon-angle-up icon-angle-down');
            });

            $('.sortingRound').click(function() {
                $(this).children('i').toggleClass('icon-angle-up icon-angle-down');
            });

            $('.sortingpoint').click(function() {
                $(this).children('i').toggleClass('fa-long-arrow-up fa-long-arrow-down');
            });



            $("#datepicker, #datepicker_return").datepicker({
                //defaultDate: "+1w",
                changeMonth: false,
                dateFormat: "d M yy",
                numberOfMonths: 2,
                minDate: 0,
                buttonImage: true,
                buttonImageOnly: true,
                beforeShow: function() {
                    if (this.id == 'datepicker') {
                        var dateMin = $('#datepicker').datepicker("getDate");
                        var TodateMin = $('#datepicker_return').datepicker("getDate");

                        var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                        var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
                        var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate()); // Min Date = Selected + 1d
                        $('#datepicker_return').datepicker("option", "minDate", rMin);
                        $('#datepicker_return').datepicker("option", "maxDate", rMax);
                        $('#datepicker_return').datepicker("setDate", c_out_date);
                    }
                },
                onSelect: function(selectedDate, inst) {
                    var tripType = $('.tripType:checked').val(); // retrieve the value
                    if (this.id == 'datepicker') {
                        var dateMin = $('#datepicker').datepicker("getDate");

                        var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                        var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
                        var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                        var theDate = new Date(Date.parse($(this).datepicker('getDate')));
                        var dateFormatted = $.datepicker.formatDate('DD', theDate);
                        var FromFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
                        $('.Departure').html(dateFormatted);
                        $('#departure_date').val(FromFormatted);
                        if (parseInt(tripType) === 2) {
                            $('#datepicker_return').datepicker("option", "minDate", rMin);
                            $('#datepicker_return').datepicker("option", "maxDate", rMax);

                            $('#datepicker_return').datepicker("setDate", c_out_date);
                            $('.date-parent').html(dateFormatted);

                        }
                        //                            console.log(c_out_date);

                        ///$('#to').focus();return false;
                    } else {
                        var dateMin = $('#datepicker_return').datepicker("getDate");
                        var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0);
                        var theDate = new Date(Date.parse(c_out_date));
                        var dateFormatted = $.datepicker.formatDate('DD', theDate);
                        var ToFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
                        $('.date-parent').html(dateFormatted);
                        $('#return_date').val(ToFormatted);
                        //                            console.log(ToFormatted);
                    }


                }
            });
            var tripType = $('.SelectClass:checked').val();
            var htmlval = $('#optionsRadios' + tripType).attr('data'); // retrieve the html value
            $('.TravellersClass').html(htmlval);
            $(document).on('click', '.onewayflight', function() {
                var index = $(this).attr('index');
                $('div.SingleSelect').removeClass("mobile_roundflight_active");
                $('#SingleSelect_' + index).addClass("mobile_roundflight_active");
            });
            $(document).on('click', '.twowayflight', function() {
                var index = $(this).attr('index');
                $('div.roundSelect').removeClass("mobile_roundflight_active");
                $('#roundSelect_' + index).addClass("mobile_roundflight_active");
            });




            // $(document).ready(function(){
            //     $('.down_count-cls1').click(function(e){
            //         var button_classes, value = +$('.counter1').val();
            //         button_classes = $(e.currentTarget).prop('class');
            //         if(button_classes.indexOf('up_count') !== -1){
            //             value = (value) + 1;
            //         } else {
            //             value = (value) - 1;
            //         }
            //         value = value < 1 ? 1 : value;
            //         $('.counter1').val(value);
            //     });
            //     $('.counter1, .counter2, .counter3').click(function(){
            //         $(this).focus().select();
            //     });
            // });

            // $(document).ready(function(){
            //     $('.down_count-cls2').click(function(e){
            //         var button_classes, value = +$('.counter2').val();
            //         button_classes = $(e.currentTarget).prop('class');
            //         if(button_classes.indexOf('up_count') !== -1){
            //             value = (value) + 1;
            //         } else {
            //             value = (value) - 1;
            //         }
            //         value = value < 0 ? 0 : value;
            //         $('.counter2').val(value);
            //     });
            //     $('.counter2').click(function(){
            //         $(this).focus().select();
            //     });
            // });

            // $(document).ready(function(){
            //     $('.down_count-cls3').click(function(e){
            //         var button_classes, value = +$('.counter3').val();
            //         button_classes = $(e.currentTarget).prop('class');
            //         if(button_classes.indexOf('up_count') !== -1){
            //             value = (value) + 1;
            //         } else {
            //             value = (value) - 1;
            //         }
            //         value = value < 0 ? 0 : value;
            //         $('.counter3').val(value);
            //     });
            //     $('.counter3').click(function(){
            //         $(this).focus().select();
            //     });
            // });



            // $('.ddSpinnerPlus').click(function() {
            //     //var totalpass = $('.TotalTravellers').html();
            //     var adult = $('.counter1').val();
            //     var child = $('.counter2').val();
            //     var totalpass = parseInt(adult) + parseInt(child);
            //     if (totalpass < 9) {
            //         if ($(this).prev().val() < 9) {
            //             $(this).prev().val(+$(this).prev().val() + 1);
            //             $('.counter1').val(+$(this).prev().val());
            //             $('.counter1').attr('value', +$(this).prev().val());
            //         }
            //         SumTravellers();
            //     } else {
            //         alert('Total Passanger (Adult and Child) Can not be more than 9');
            //     }
            // });

            // $('.ddSpinnerMinus').click(function() {
            //     var infants = $('#infants').val();
            //     var adult = $(this).next().val();
            //     if (infants > 1) {
            //         if (parseInt(infants) >= adult) {
            //             $('#infants').val(infants - 1)
            //         }
            //     }

            //     if ($('#adults').val() > 1) {
            //         $(this).next().val(+$(this).next().val() - 1);
            //         $('.counter1').val(+$(this).next().val());
            //         $('.counter1').attr('value', +$(this).next().val());
            //         $('.counter-int').attr('value', +$(this).next().val());
            //     }
            //     SumTravellers();
            // });

            // $('.chSpinnerPlus').click(function() {
            //     var adult = $('.counter1').val();
            //     var child = $('.counter2').val();
            //     var totalpass = parseInt(adult) + parseInt(child);
            //     if (totalpass < 9) {
            //         if ($(this).prev().val() < 9) {
            //             $(this).prev().val(+$(this).prev().val() + 1);
            //             $('.counter2').val(+$(this).prev().val());
            //             $('.counter2').attr('value', +$(this).prev().val());
            //         }
            //         SumTravellers();
            //     } else {
            //         alert('Total Passanger (Adult and Child) Can not be more than 9');
            //     }
            // });

            // $('.chSpinnerMinus').click(function() {

            //     //alert($(this).val());
            //     if ($(this).next().val() > 0) {
            //         if ($(this).next().val() > 0)
            //             $(this).next().val(+$(this).next().val() - 1);
            //         $('.counter2').val(+$(this).next().val());
            //         $('.counter2').attr('value', +$(this).next().val());
            //     }
            //     SumTravellers();
            // });

            // $('.infSpinnerPlus').click(function() {
            //     // var adult = $('.counter1').val();

            //     var adults = $('#adults').val();

            //     if (parseInt(adults) <= parseInt($(this).prev().val())) {
            //         alert('Number of infant can not be greater than adult');
            //         return false;
            //     } else {
            //         $(this).prev().val(+$(this).prev().val() + 1);
            //         $('.counter3').val(+$(this).prev().val());
            //         $('.counter3').attr('value', +$(this).prev().val());
            //         SumTravellers();
            //     }
            // });
            // $('.infSpinnerMinus').click(function() {

            //     if ($(this).next().val() > 0) {
            //         if ($(this).next().val() > 0)
            //             $(this).next().val(+$(this).next().val() - 1);
            //         $('.counter3').val(+$(this).next().val());
            //         $('.counter3').attr('value', +$(this).next().val());
            //     }
            //     SumTravellers();
            // });

            // function SumTravellers() {
            //     var a = 0;
            //     $(".quantity").each(function() {
            //         a += parseInt($(this).val());
            //     });
            //     $('.TotalTravellers').html(a);
            //     return a;
            // }

            // function ValidateInfant() {
            //     var a = 0;
            //     $(".quantity").each(function() {
            //         a += parseInt($(this).val());
            //     });
            //     $('.TotalTravellers').html(a);
            //     return a;
            // }


            $(".SelectClass") // select the radio by its id
                .change(function() { // bind a function to the change event
                    if ($(this).is(":checked")) { // check if the radio is checked
                        var val = $(this).val(); // retrieve the value
                        var htmlval = $(this).attr('data'); // retrieve the html value
                        $('.TravellersClass').html(htmlval);
                    }
                });

            $(document).mouseup(function(e) {
                if ($(e.target).closest(".hotelrooombox_main").length ===
                    0) {
                    $(".hotelrooombox_main").hide();
                }
            });



            function openSearch() {
                document.getElementById("mySidenavsearch").style.width = "100%";
            }

            function closeSearch() {
                document.getElementById("mySidenavsearch").style.width = "0";
            }

            // $('.exchange_transfer,.exchange_transfer_searchflight').on('click', function() {

            //     var mytrip_city_from = $('#mytrip_city_from').val();
            //     var mytrip_city_to = $('#mytrip_city_to').val();
            //     $('#mytrip_city_from').val(mytrip_city_to);
            //     $('#mytrip_city_to').val(mytrip_city_from);


            //     var fromText_1 = $('.fromText_1').text();
            //     var fromText_2 = $('.fromText_2').text();
            //     $('.fromText_1').html(fromText_2);
            //     $('.fromText_2').html(fromText_1);

            //     var airport_search_1 = $('#airport_search_1').val();
            //     var airport_search_2 = $('#airport_search_2').val();
            //     $('#airport_search_1').val(airport_search_2);
            //     $('#airport_search_2').val(airport_search_1);

            //     var ContSysId_1 = $('#ContSysId_1').val();
            //     var ContSysId_2 = $('#ContSysId_2').val();
            //     $('#ContSysId_1').val(ContSysId_2);
            //     $('#ContSysId_2').val(ContSysId_1);

            //     var FromToCIty_1 = $('#FromToCIty_1').val();
            //     var FromToCIty_2 = $('#FromToCIty_2').val();
            //     $('#FromToCIty_1').val(FromToCIty_2);
            //     $('#FromToCIty_2').val(FromToCIty_1);

            //     var mytrip_city_1 = $('#mytrip_city_1').val();
            //     var mytrip_city_2 = $('#mytrip_city_2').val();
            //     $('#mytrip_city_1').val(mytrip_city_2);
            //     $('#mytrip_city_2').val(mytrip_city_1);
            //     //alert("alph123a");
            //     //  console.log(mytrip_city_1);
            // });


        });

        $(document).ready(function() {
            $(" #travller_search").on("click", function() {
                $('.hotelserchcls').prop("disabled", false);
                <?php if ($mydevice == "desktop") { ?>
                    // alert('test');
                    $(".room_boxcls").show();
                    // plusdata();
                <?php } else { ?>
                    $('#mypopupsectionModal').modal('show');
                    $("#mypopupsectionModalHtml").html($("#mypopupsectiondata").html());
                    //plusdata();
                <?php } ?>






            });

        });

        // $("#car-Start_Date, #car-end-Date").datepicker({
        //     //defaultDate: "+1w",
        //     changeMonth: false,
        //     dateFormat: "d-M-yy",
        //     numberOfMonths: 2,
        //     minDate: 0,
        //     buttonImage: true,
        //     buttonImageOnly: true,
        //     beforeShow: function() {
        //         if (this.id == 'car-end-Date') {
        //             var dateMin = $('#car-Start_Date').datepicker("getDate");
        //             var TodateMin = $('#car-end-Date').datepicker("getDate");

        //             var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
        //             var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
        //             var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate()); // Min Date = Selected + 1d
        //             $('#car-end-Date').datepicker("option", "minDate", rMin);
        //             $('#car-end-Date').datepicker("option", "maxDate", rMax);
        //             $('#car-end-Date').datepicker("setDate", c_out_date);
        //         }
        //     },
        //     onSelect: function(selectedDate, inst) {
        //         var tripType = $('.tripType:checked').val(); // retrieve the value
        //         if (this.id == 'car-Start_Date') {
        //             var dateMin = $('#car-Start_Date').datepicker("getDate");

        //             var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
        //             var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
        //             var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
        //             var theDate = new Date(Date.parse($(this).datepicker('getDate')));
        //             var dateFormatted = $.datepicker.formatDate('DD', theDate);
        //             var FromFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
        //             $('.Departure').html(dateFormatted);
        //             $('#departure_date').val(FromFormatted);
        //             $('#car-end-Date').datepicker("option", "minDate", rMin);
        //             $('#car-end-Date').datepicker("option", "maxDate", rMax);

        //             $('#car-end-Date').datepicker("setDate", c_out_date);
        //             $('.Return').html(dateFormatted);
        //         }
        //     }
        // });
        <?php if (($modulename != 'hotels')) { ?>
            setTimeout(function() {
                $.getJSON('public/data/dynamic/package_destinations.json', function(destinations) {

                    $(".destinationBox").autocomplete({
                        minLength: 3,
                        source: destinations,
                        autoFocus: true,
                        select: function(event, ui) {
                            var code = ui.item.code;
                            var cityid = ui.item.id;
                            // console.log(cityid);
                            $(".cityid").val(cityid);
                            $(".hcode").val(code);
                        }
                    });
                });
            }, 1000);

            setTimeout(function() {
                $.getJSON('public/data/dynamic/package_destinations.json', function(visa) {

                    $(".visaSearchBox").autocomplete({
                        minLength: 3,
                        source: visa,
                        autoFocus: true,
                        select: function(event, ui) {
                            var code = ui.item.code;
                            var cityid = ui.item.id;
                            console.log(cityid);
                            $(".cityid").val(cityid);
                            $(".hcode").val(code);
                        }
                    });
                });
            }, 1000);

            setTimeout(function() {
                $.getJSON('public/data/dynamic/package_destinations.json', function(destinations) {

                    $(".activitiesBox").autocomplete({
                        minLength: 3,
                        source: destinations,
                        autoFocus: true,
                        select: function(event, ui) {
                            var code = ui.item.code;
                            var cityid = ui.item.id;
                            var activitiesBox = ui.item.value;
                            //console.log(cityid);
                            $(".cityid").val(cityid);
                            $(".hcode").val(code);
                            window.location.href = 'activities/' + getSeoName1(activitiesBox).toLowerCase();
                        }
                    });
                });
            }, 1000);

        <?php } ?>
    </script>


    <?php
    $scriptsAngular = $this->headScript(); // include the angular js here

    $scriptsAngular->appendFile($baseUrl . "public/js/ng/angular.min.js")
        ->appendFile($baseUrl . "public/js/ng/angular-route.min.js")
        ->appendFile($baseUrl . "public/js/ng/app.js")
        ->appendFile($baseUrl . "public/js/ng/ngfactory.js")
        ->appendFile($baseUrl . "public/js/ng/ngsortingorder.js")
        ->appendFile($baseUrl . "public/js/ng/filters.js");

    if (($modulename == 'tours') && ($controller == 'package') && ($action == 'index')) {
        $scriptsAngular->appendFile($baseUrl . "public/js/ng/package_search.js?=111");
    }
    if (($modulename == 'tours') && ($controller == 'activity') && ($action == 'index')) {
        $scriptsAngular->appendFile($baseUrl . "public/js/ng/activities_search.js?=111112222");
    }
    if (($modulename == 'hotels') && ($controller == 'index') && ($action == 'search-results')) {
        $scriptsAngular->appendFile($baseUrl . "public/js/ng/hotel-search-result.js?1112121");
    }
    // if (($modulename == 'car') && ($controller == 'index') && ($action == 'search-results')) {
    //     $scriptsAngular->appendFile($baseUrl . "public/js/ng/car-search-result.js?1112121");
    // }
    $scriptsAngular->appendFile($baseUrl . "public/js/ng/ng-infinite-scroll.min.js");
    $scriptsAngular->appendFile($baseUrl . "public/js/ng/ng-infinite-scroll.js");
    echo $scriptsAngular;
    ?>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular-sanitize.js"></script>
    <?php
    if (($modulename == 'detail') && ($controller == 'index') && ($action == 'index' || $action == 'index-ajax-data')) {
        $data = [
            'baseUrl' => $baseUrl, 'AgencySysId' => $options['gtxagencysysid'], 'modulename' => $modulename,
            'CONST_PACKAGE_TRAVELER_MAX_ROOM' => CONST_PACKAGE_TRAVELER_MAX_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM,
            'POPUPCOOKIES' => $getMypopCookie,
        ];
        echo $this->partial('models/send-enquiry-modal.phtml', $data);
        echo $this->partial('models/modal-change-options.phtml', ['baseUrl' => $baseUrl]);
        //                echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
        echo $this->partial('models/modal-hotel-view-and-options.phtml', ['baseUrl' => $baseUrl]);
        if ($mydevice == "mobile")
            $charlimit = 150;
        else
            $charlimit = 400;
    ?>
    <?php }
    ?>

    <?php
    if (($modulename == 'detail') && ($controller == 'index') && ($action == 'index' || $action == 'index-ajax-data')) {
        $data = [
            'baseUrl' => $baseUrl, 'AgencySysId' => $options['gtxagencysysid'], 'modulename' => $modulename,
            'CONST_PACKAGE_TRAVELER_MAX_ROOM' => CONST_PACKAGE_TRAVELER_MAX_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM,
            'CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM,
            'POPUPCOOKIES' => $getMypopCookie,
        ];
        echo $this->partial('models/send-enquiry-modal.phtml', $data);
        echo $this->partial('models/modal-change-options.phtml', ['baseUrl' => $baseUrl]);
        //                echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
        echo $this->partial('models/modal-hotel-view-and-options.phtml', ['baseUrl' => $baseUrl]);
        if ($mydevice == "mobile")
            $charlimit = 150;
        else
            $charlimit = 400;
    ?>
        <script type="text/javascript">
            trimcontent(<?php echo $charlimit; ?>);

            function openpopupModel(n, type) {
                var hotelId = n;
                var type = type;
                var categoryId = $("#categoryId").val();
                var packageId = $("#packageId").val();
                var gtxID = $("#gtxID").val();

                $.ajax({
                    type: "POST",
                    url: "<?php echo $baseUrl; ?>detail/index/get-hotel-detail",
                    async: true,
                    data: "type=" + type + "&hotelId=" + hotelId + "&categoryId=" + categoryId + "&packageId=" + packageId + "&gtxID=" + gtxID,
                    beforeSend: function() {
                        $("#myModa1hotelview").modal('show');
                        $('#hotelDetailViewList').html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
                    },
                    success: function(data) {
                        //console.log(data);
                        $("#hotelDetailViewList").html(data);
                        return false;
                    }
                });
            }

            $("#selectDestination").autocomplete({
                source: function(request, response) {
                    var query = $("#selectDestination").val();
                    var countryId = '';
                    $.getJSON("/index/autosuggest", {
                            query: query,
                            countryId: countryId
                        },
                        response);
                },
                minLength: 2,
                autoFocus: true,
                select: function(event, ui) {
                    var CityId = ui.item.CityId;
                    var CityName = ui.item.CityName;
                    $("#hidden_selected_hotel_cityid").val(CityId);
                    $("#hidden_selected_city_name").val(CityName);
                }
            });

            $('#travelerDatePicker').datepicker({
                dateFormat: 'dd/mm/yy',
                minDate: 0,
                numberOfMonths: 1,
            });
        </script>


    <?php }
    ?>
    <script>
        <?php if (($modulename != 'hotels')) { ?>
            setTimeout(function() {
                $.getJSON('public/data/dynamic/package_destinations.json', function(destinations) {

                    $(".destinationBox").autocomplete({
                        minLength: 3,
                        source: destinations,
                        autoFocus: true,
                        select: function(event, ui) {
                            var code = ui.item.code;
                            var cityid = ui.item.id;
                            var destinationBox = ui.item.value;
                            // console.log(cityid);
                            $(".cityid").val(cityid);
                            $(".hcode").val(code);
                            window.location.href = 'tour-destination/' + getSeoName1(destinationBox).toLowerCase() + '/';
                        }
                    });
                });
            }, 1000);

            setTimeout(function() {
                $.getJSON('public/data/dynamic/package_destinations.json', function(visa) {

                    $(".visaSearchBox").autocomplete({
                        minLength: 3,
                        source: visa,
                        autoFocus: true,
                        select: function(event, ui) {
                            var code = ui.item.code;
                            var cityid = ui.item.id;
                            console.log(cityid);
                            $(".cityid").val(cityid);
                            $(".hcode").val(code);
                        }
                    });
                });
            }, 1000);
        <?php } ?>
    </script>

    <script>
        $(document).ready(function() {
            $(".expanded").hide();

            $(".expanded a, .collapsed a").click(function(eve) {
                eve.preventDefault();
                $(".expanded, .collapsed").toggle();
            });



            $('#itenerary_click').on("click", function() {
                $('html, body').animate({
                    scrollTop: $("#itenary").offset().top - 250
                }, 200);

            });

            $('#termscondition_click').on("click", function() {
                $('html, body').animate({
                    scrollTop: $("#terms_condition").offset().top - 250
                }, 200);

            });
            $('.gotohotel').on("click", function() {

                $('html, body').animate({
                    scrollTop: $("#Hotelstab_slide").offset().top - 300
                }, 200);

            });

        });

        function activaTab(tab) {
            // alert(tab);
            $('.nav-tabs a[href="#' + tab + '"]').tab('show');
            $('html, body').animate({
                scrollTop: $("#Hotelstab_slide").offset().top - 460
            }, 200);
        }
    </script>

    <script>
        //        $('.showmore1').click(function(){
        //            $('.fl-checkbox_list1').animate({height:'400px'}, 500);
        //        });
        //
        //        $('.fa-minus').click(function(){
        //            $('.fl-checkbox_list1').animate({height:'0px'}, 500);
        //        });
        //
        //        $('.showmore2').click(function(){
        //            $('.fl-checkbox_list2').animate({height:'400px'}, 500);
        //        });
        //        $('.showmore3').click(function(){
        //            $('.fl-checkbox_list3').animate({height:'400px'}, 500);
        //        });
        //        $('.showmore4').click(function(){
        //            $('.fl-checkbox_list4').animate({height:'400px'}, 500);
        //        });
        //
        //
        //        $('.showmore1, .showmore2, .showmore3, .showmore4').on('click', function() {
        //            $(this).toggleClass('fa-plus fa-minus');
        //        });


        <?php
        // if (($modulename == 'car') && ($controller == 'index') && ($action == 'pay-now')) {
        ?>

        // function PayNowTicket() {
        //     var ApiResultIndex = $('#ApiResultIndex').val();
        //     var TraceId = $('#TraceId').val();

        //     $.ajax({
        //         type: "POST",
        //         url: "<?php echo $baseUrl; ?>car/pay-now/",
        //         dataType: 'json',
        //         data: {
        //             TraceId: TraceId,
        //             ApiResultIndex: ApiResultIndex
        //         },
        //         beforeSend: function() {
        //             $('.continue_btn').hide();
        //             $("#FareChangeData").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
        //         },
        //         success: function(response) {
        //             if (response.success) {
        //                 //console.log(response);
        //                 //return false;
        //                 var guid = response.guid;
        //                 var walletCode = response.walletCode;
        //                 var stringData = response.stringData;
        //                 var strReturnURL = response.strReturnURL;
        //                 var TPSysId = response.TPSysId;
        //                 var amount = response.amount;
        //                 var name = response.UserData.name;
        //                 var emailId = response.UserData.email;
        //                 //alert(emailId);
        //                 //return false;
        //                 var mobile = response.UserData.mobile;
        //                 var CustomerSysId = response.UserData.CustomerSysId;


        //                 $("#guid").val(guid);
        //                 $("#securecode").val(walletCode);
        //                 $("#returnURL").val(strReturnURL);
        //                 $("#errorURL").val(strReturnURL);
        //                 $("#stringData").val(stringData);
        //                 $("#premium_val").val(amount);

        //                 $("#custFirstname").val(name);
        //                 $("#custemail").val(emailId);
        //                 $("#custphone").val(mobile);
        //                 $("#CustomerSysId").val(CustomerSysId);
        //                 setTimeout(function() {
        //                     $("#paymentsubmit").submit();
        //                 }, 2000);

        //             } else {
        //                 alert(data.message);
        //                 window.location.href = 'car';
        //             }
        //         }
        //     });
        // }

        //alert('tests');
        //  PayNowTicket();
        <?php
        // }
        ?>
    </script>

    <?php
    if ((($modulename == 'default')) && (($controller == 'customer')) && ($action == 'login')) {
    ?>
        <script type="text/javascript">
            Continue_login();
        </script>
    <?php } ?>
    <?php
    if ((($modulename == 'default')) && (($controller == 'customer')) && ($action == 'loginfacebook')) {
    ?>
        <script type="text/javascript">
            Continue_loginfacebook();
        </script>
    <?php } ?>

    <?php if ($mydevice == "mobile") { ?>
        <script>
            function myFunction(id) {
                $(window).scrollTop($("." + id).offset().top);
            }
        </script>
    <?php } else { ?>
        <script>
            function myFunction(id) {

            }
        </script>
    <?php } ?>

    <script>
        $(document).ready(function() {
            <?php if($stylecss != 'pinnacletrip'){ ?>

                $('#hotel_travller_search').on("click", function() {
                    $('.hotelserchcls').prop("disabled", false);
                    $(".roomBoxMain").toggle("show_hiddenpart_hidden");
                });
            <?php } ?>

            $('#travller_search').on("click", function() {

                $(".roomBoxMain").toggle("show_hiddenpart_hidden");
            });
            $('#done_traveller').on("click", function() {
                $(".roomBoxMain").toggle("show_hiddenpart_hidden");
            });
            $('#done_travellerFlight').on("click", function() {
                $(".roomBoxMain").toggle("show_hiddenpart_hidden");
            });

            $('.flight_infotitle_dd').on("click", function() {

                $(".flight_information_details_content").toggle("show_hiddenpart_hidden");
            });

            $('#done_traveller2').on("click", function() {
                $(".hoteltarvller_main").hide("slow");
            });


        });

        function hotelselect(hotelId, optionId, count, roomcate, totalprice, mealbase) {
            $('.roomcatg').html(roomcate);
            $('.money').html(totalprice);
            $('.mealbasee').html(mealbase);
            $('.sleact').removeClass('active');
            $('#hotelID').val(hotelId);
            $('#optionID').val(optionId);
            $('.add' + count).addClass('active');

            $('html, body').animate({
                scrollTop: $(".hotel-leftborder").offset().top
            }, 500);
        }

        $('#hotelbook').on('click', function(e) {
            $('#hotel_review').submit();
        });

        // hotel submit section


        $('#Residence').on('change', function(e) {
            $('.hotelserchcls').prop("disabled", false);

        });
        $('.submithotel').on('click', function(e) {
            var cityId = $('form[name=hotelsearch] #hidden_selected_hotel_cityid').val();
            var nationality = $('form[name=hotelsearch] #hidden_selected_hotel_countryCode').val();
            var checkIn = $('form[name=hotelsearch] #Departure-Date').val();
            var checkout = $('form[name=hotelsearch] #Departure_dob').val();
            var residence = $('form[name=hotelsearch] #Residence').val();
            // var currency =  $('form[name=hotelsearch] #currency').val();

            //alert('test');
            if (cityId == '') {
                alert('please enter city name');
                return false;
            }

            if (checkIn == '') {
                alert('please select checkin date');
                return false;
            }
            if (checkout == '') {
                alert('please select checkout date');
                return false;
            }
            if (residence == '') {
                alert('please select nationality');
                return false;
            }
            /*if(currency == ''){
                                 alert('currency is not defined contact support');
                                 return false;
                                 }*/


            $('form[name=hotelsearch]').submit();
        });

        $('form[name=hotelsearch]').on('submit', function(e) {
            e.preventDefault();
            var cityId = $('#hidden_selected_hotel_cityid').val();
            var nationality = $('#hidden_selected_hotel_countryCode').val();
            var checkIn = $('form[name=hotelsearch] .Departure-Date').val();
            var checkout = $('form[name=hotelsearch] .Departure_dob').val();

            var data = $(this).serialize();

            $.ajax({
                type: "GET",
                url: SITEURL + "hotel/hotelsearchdata",
                data: data,
                dataType: 'json',
                success: function(result) {

                    window.location.href = SITEURL + 'hotel/search-results?' + result.url;
                }
            });



        });

        $(window).on('scroll', function() {
            if ($(window).scrollTop() + $(window).height() >= $(document).height() - 400) {
                $('.loadMoreNew').trigger('click');
                /// infinite-scroll="loadMoreNew()"
            }
        });
        $("#Departure-Date, #Departure_dob").datepicker({
            //defaultDate: "+1w",
            changeMonth: false,
            dateFormat: "d-M-yy",
            numberOfMonths: 2,
            minDate: 0,
            buttonImage: true,
            buttonImageOnly: true,
            beforeShow: function() {
                if (this.id == 'Departure_dob') {
                    // debugger;
                    var dateMin = $('#Departure-Date').datepicker("getDate");
                    var TodateMin = $('#Departure_dob').datepicker("getDate");
                    if (TodateMin === null) {
                        TodateMin = dateMin;
                    }

                    var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                    var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
                    var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate()); // Min Date = Selected + 1d
                    $('#Departure_dob').datepicker("option", "minDate", rMin);
                    $('#Departure_dob').datepicker("option", "maxDate", rMax);
                    $('#Departure_dob').datepicker("setDate", c_out_date);
                    $('#RoundTrip').prop('checked', true);
                    //console.log(c_out_date);
                }
            },
            onSelect: function(selectedDate, inst) {
                var tripType = $('.tripType:checked').val();
                $('.hotelserchcls').prop("disabled", false);
                if (this.id == 'Departure-Date') {
                    var dateMin = $('#Departure-Date').datepicker("getDate");

                    var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                    var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
                    var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
                    var theDate = new Date(Date.parse($(this).datepicker('getDate')));
                    var dateFormatted = $.datepicker.formatDate('DD', theDate);
                    var FromFormatted = $.datepicker.formatDate('dd-mm-yy', theDate);
                    $('.Departure').html(dateFormatted);
                    $('#departure_date').val(FromFormatted);
                    if (parseInt(tripType) === 2) {
                        $('#Departure_dob').datepicker("option", "minDate", rMin);
                        $('#Departure_dob').datepicker("option", "maxDate", rMax);

                        $('#Departure_dob').datepicker("setDate", c_out_date);
                        $('#return_date').val(FromFormatted);
                    }
                    var Departure_dob = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 1);
                    $('#Departure_dob').datepicker("setDate", Departure_dob);
                    $('.hotelserchcls').prop("disabled", false);
                    //console.log(dateMin);
                    //console.log(Departure_dob);

                    ///$('#to').focus();return false;
                } else {
                    var dateMin = $('#Departure_dob').datepicker("getDate");
                    var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0);
                    var theDate = new Date(Date.parse(c_out_date));
                    var dateFormatted = $.datepicker.formatDate('DD', theDate);
                    var ToFormatted = $.datepicker.formatDate('dd-mm-yy', theDate);
                    $('.hotelserchcls').prop("disabled", false);
                    //                            console.log(ToFormatted);
                }


            }
        });
        $('#datepicker , #datepicker1').datepicker({
        dateFormat: 'dd/mm/yy',
        numberOfMonths: 2,
        minDate: 0,
       
    });

        // setTimeout(function() {
        //     //$('.select2').select2();

        //     $.getJSON(SITEURL + 'hotel/hotel-city', function(source) {

        //         $(".hotel_name_search___ppp").autocomplete({
        //             minLength: 0,
        //             autoFocus: true,
        //             source: function(request, response) {
        //                 var term = $.ui.autocomplete.escapeRegex(request.term),
        //                     startsWithMatcher = new RegExp("^" + term, "i"),
        //                     startsWith = $.grep(source, function(value) {
        //                         return startsWithMatcher.test(value.CityName || value.value || value);
        //                     }),
        //                     containsMatcher = new RegExp(term, "i"),
        //                     contains = $.grep(source, function(value) {
        //                         return $.inArray(value, startsWith) < 0 &&
        //                             containsMatcher.test(value.label || value.value || value);
        //                     });

        //                 response(startsWith.concat(contains).slice(0, 15));
        //             },
        //             response: function(e) {},

        //             select: function(event, ui) {
        //                 var index = $(this).attr('index');
        //                 var value = ui.item.value;
        //                 $('.hotelserchcls').prop("disabled", false);
        //                 $('#hidden_selected_hotel_cityid').val(ui.item.TBBCityId);
        //             }
        //         }).focus(function() {
        //             $(this).val('');
        //             // $(this).addClass("extend_width");
        //             // $("#bannerslider").addClass("ss");
        //             // $(".search-box").addClass("extend_width2");
        //             // $(".flight-search-flight2").addClass("extend_width2");
        //             // $(".apendn_2").addClass("showsecond");
        //             // $(".formtitlecls").addClass("showsecond");
        //             // $(".formullist").addClass("ss");
        //             // $(".frmclose").addClass("extend_width_frmclose");
        //             // $(".custom-nav").addClass("frmhidesection");
        //             $(this).autocomplete('search');
        //         });

        //     });
        // }, 1000);






        <?php if (($modulename == 'hotels') && ($controller == 'index') && ($action == 'search-results')) { ?>

            function findrooms(data) {
                alert(data);
            }





        <?php } ?>
        $(document).on('change', '.MealBaseArr', function() {
            var value = $(this).val();
            if (value === 'All') {
                $('.MealBase_All').show();
            } else {
                $('.MealBase_' + value).removeClass('MealBase_All');
                $('.MealBase_' + value).show();
                $('.MealBase_All').hide();
                $('.MealBase_' + value).addClass('MealBase_All');

            }

        });

        <?php if (($modulename == 'hotels') && ($controller == 'index')) { ?>

            function hotelscancellationpolicy(hotelId, optionId, rid = null) {
                $('#cancelationPlolicy').modal('show');
                $.ajax({
                    type: "POST",
                    url: SITEURL + "hotel/hotel-cancelation-plolicy",
                    data: {
                        hotelId: hotelId,
                        optionId: optionId,
                        rid: rid,
                    },
                    beforeSend: function() {

                    },
                    success: function(result) {
                        $('#cancelationPlolicyDIV').html(result);
                    }
                });
            }

            function saveHotelPassengerDetails() {
                var b = 1;
                var cont = true;
                var leadMobile = $.trim($("#leadMobile").val());
                var leadEmail = $.trim($("#leadEmail").val());
                var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

                if (leadMobile === '') {
                    alert('Please enter lead pax mobile no.');
                    $("#leadMobile").focus();
                    cont = false;
                    return false;
                }
                if (leadMobile.length !== 10) {
                    alert('Mobile no. should be 10 digit.');
                    $("#leadMobile").focus();
                    cont = false;
                    return false;
                }
                if (leadEmail === '') {
                    alert('Please enter lead pax email id.');
                    $("#leadEmail").focus();
                    cont = false;
                    return false;
                }
                if (!regex.test(leadEmail)) {
                    alert('Please enter valid email id.');
                    $("#leadEmail").focus();
                    cont = false;
                    return false;
                }
                $(".familyNumber").each(function() {
                    var salution = $.trim($("#salution-" + b).val());
                    var firstname = $.trim($("#passenger-firstname-" + b).val());
                    var lastname = $.trim($("#passenger-lastname-" + b).val());
                    var PassportNationality = $.trim($("#PassportNationality-" + b).val());
                    var passportno = $.trim($("#passportno-" + b).val());
                    var passporIssue = $.trim($("#passporIssue-" + b).val());
                    var passportnoexpiry = $.trim($("#passportnoexpiry-" + b).val());
                    var panNumber = $.trim($("#passenger-panNumber-" + b).val());
                    var paxType = $.trim($("#paxType-" + b).val());
                    if (salution === '') {
                        alert('Please select title');
                        $("#salution-" + b).focus();
                        cont = false;
                        return false;
                    }
                    if (firstname === '') {
                        alert('Please enter first name');
                        $("#passenger-firstname-" + b).focus();
                        cont = false;
                        return false;
                    }
                    if (lastname === '') {
                        alert('Please enter first name');
                        $("#passenger-lastname-" + b).focus();
                        cont = false;
                        return false;
                    }
                    if ($("#PassportNationality-" + b).prop('disabled') === false && PassportNationality === '') {
                        alert('Please select Passport Nationality');
                        $("#PassportNationality-" + b).focus();
                        cont = false;
                        return false;
                    }
                    if ($("#passportno-" + b).prop('disabled') === false && passportno === '') {
                        alert('Please enter passport no.');
                        $("#passportno-" + b).focus();
                        cont = false;
                        return false;
                    }
                    if ($("#passporIssue-" + b).prop('disabled') === false && passporIssue === '') {
                        alert('Please enter passport issuse date');
                        $("#passporIssue-" + b).focus();
                        cont = false;
                        return false;
                    }
                    if ($("#passportnoexpiry-" + b).prop('disabled') === false && passportnoexpiry === '') {
                        alert('Please enter passport expiry date');
                        $("#passportnoexpiry-" + b).focus();
                        cont = false;
                        return false;
                    }

                    if ($("#passenger-panNumber-" + b).attr('disabled') || $("#passenger-panNumber-" + b).prop('disabled')) {} else {
                        if (paxType === '1' && panNumber === '') {
                            alert('Please enter pan number');
                            $("#passenger-panNumber-" + b).focus();
                            cont = false;
                            return false;
                        }

                        var regex = /[A-Z]{5}[0-9]{4}[A-Z]{1}$/;
                        if (!regex.test(panNumber) && paxType === '1') {
                            $("#passenger-panNumber-" + b).val("");
                            alert("Invalid PAN no");
                            $("#passenger-panNumber-" + b).focus();
                            cont = false;
                            return false;
                        }
                    }

                    b++;
                });
                if (cont === true) {
                    $('#hotel-traveller').submit();
                }
                //alert('test'); 

            }

            $('.passporIssue').datepicker({
                dateFormat: 'dd/mm/yy',
                maxDate: 0,
                numberOfMonths: 1,
            });
            $('.passportnoexpiry').datepicker({
                dateFormat: 'dd/mm/yy',
                minDate: 0,
                numberOfMonths: 1,
            });

            function Selectmember(data, paxType) {

                var checkedornot = $("#custMember" + data.value).prop('checked');
                var customerMember = JSON.parse(GetData('customerMember'));
                var obj = customerMember[data.value];
                //console.log(obj);
                var b = 1;
                $("#custMember" + data.value).attr('disabled', 'disabled');
                $(".familyNumber").each(function() {
                    var CustomerSysId = $.trim($("#CustomerSysId-" + b).val());
                    console.log(obj);
                    var firstname = $.trim($("#passenger-firstname-" + b).val());
                    if (firstname == '' || CustomerSysId == 0 || CustomerSysId == '') {
                        if (obj.paxType == 1) {
                            var paxTypes = 'Adult';
                        } else if (obj.paxType == 2) {
                            var paxTypes = 'Child';
                        } else {
                            var paxTypes = 'Infant';
                        }
                        var DOB = obj.dobday + '/' + obj.dobmonth + '/' + obj.dobyear;
                        console.log(obj);
                        $("#CustomerSysId-" + b).val(obj.CustomerMemberSysId);
                        $("#CRADULT-" + b).attr('value', obj.CustomerMemberSysId);
                        $("#CRADULT-" + b).show();

                        $("#passenger-firstname-" + b).val(obj.FirstName);
                        $("#passenger-lastname-" + b).val(obj.LastName);
                        $("#dobday" + b).val(obj.dobday);
                        $("#dobmonth" + b).val(obj.dobmonth);
                        $("#dobyear" + b).val(obj.dobyear);

                        $("#passenger-dob-" + b).val(DOB);

                        $("#PassportNationality-" + b).val(obj.PassportNation);
                        $("#relation-" + b).val(obj.Relation);
                        $("#salution-" + b).val(obj.SalutationTxt);
                        $("#passportno-" + b).val(obj.PassportNo);
                        $("#passportnoexpiry-" + b).val(obj.PassportExpiry);
                        $("#passporIssue-" + b).val(obj.passporIssue);
                        $("#passenger-address-" + b).val(obj.Address);
                        $("#passenger-city-name-1").val(obj.CityTitle);
                        $("#passenger-city-1").val(obj.CitySysId);
                        $("#passenger-country-1").val(obj.CountrySysId);
                        $("#passenger-address-" + b).val(obj.Address);
                        $("#passenger-panNumber-" + b).val(obj.panno);
                        return false;
                    } else {

                    }
                    b++;
                });
                return false;
            }

            $(document).on('click', '.removePax', function() {
                var CustomerSysId = $(this).attr('value');
                var b = $(this).attr('data');
                $("#custMember_" + CustomerSysId).removeAttr('disabled', 'disabled');
                $("#custMember_" + CustomerSysId).removeAttr('checked', 'checked');
                $("#CustomerSysId-" + b).val(0);
                $("#passenger-firstname-" + b).val('');
                $("#passenger-lastname-" + b).val('');

                $("#salution-" + b).val('');
                $("#relation-" + b).val(9);
                $("#passenger-dob-" + b).val('__/__/____');
                $("#passportno-" + b).val('');
                $("#passporIssue-" + b).val('__/__/____');
                $("#passportnoexpiry-" + b).val('__/__/____');
                $("#CRADULT-" + b).hide();

            });

        <?php } ?>

        <?php
        if (($modulename == 'hotels') && ($controller == 'index') && ($action == 'hotel-travellers')) {
        ?>
            var CheckMobile = $("#leadMobile").val();
            var leadEmail = $("#leadEmail").val();
            if (CheckMobile !== '') {
                getSearchCutomer();
            }
            $(document).ready(function() {
                localStorage.clear();
                var timer2 = localStorage.getItem('timer');
                if (timer2 === null) timer2 = "05:00";
                $('.countdown').html(timer2);

                var interval = setInterval(function() {
                    var timer = timer2.split(':');
                    var minutes = parseInt(timer[0], 10);
                    var seconds = parseInt(timer[1], 10);
                    --seconds;
                    minutes = (seconds < 0) ? --minutes : minutes;
                    if (minutes < 0) {
                        clearInterval(interval);
                        localStorage.removeItem('timer');
                        //$('#sessionexpired').modal('show');
                        //$('button').show();
                    } else {
                        seconds = (seconds < 0) ? 59 : seconds;
                        seconds = (seconds < 10) ? '0' + seconds : seconds;
                        $('.countdown').html(minutes + ':' + seconds);
                        timer2 = minutes + ':' + seconds;
                        localStorage.setItem('timer', timer2);
                    }
                }, 1000);
            });

            function getSearchCutomer() {
                $('#CustomerSysId-1').val('0');
                var leadMobile = $('#leadMobile').val();
                var leadEmail = $('#leadEmail').val();
                if (leadMobile === '') {
                    alert('Please enter mobile number');
                    $("#leadMobile").focus();
                    $("#leadEmail").val('');
                    return false;
                }
                $.ajax({
                    url: '<?php echo $baseUrl; ?>flight/searchcutomer',
                    data: {
                        leadEmail: leadEmail,
                        leadMobile: leadMobile,
                        modulename: '<?= $modulename ?>',
                    },
                    dataType: 'json',
                    type: 'POST',
                    error: function() {},
                    success: function(response) {
                        if (response.success) {
                            var leadPax = (response.leadPax);
                            $("#passenger-address-1").val(leadPax.Address);
                            $("#passenger-city-1").val(leadPax.CitySysId);
                            $("#passenger-country-1").val(leadPax.CountrySysId);
                            $("#passenger-city-name-1").val(leadPax.CityTitle);
                            // $("#companyname").val(leadPax.companyname);
                            // $("#gstnnumber").val(leadPax.gstnnumber);
                            // $("#gstaddress").val(leadPax.gstaddress);
                            // $("#gstcity").val(leadPax.gstcity);
                            // $("#gststate").val(leadPax.gststate);
                            // $("#gstpincode").val(leadPax.gstpincode);
                            if (JSON.stringify(response.data).length > 0) {
                                $('#savedtraveller').show();
                                var values = 0;
                                $("#relation-1 option[value='" + values + "']").css("display", "none");
                                $('#relation-1').val(1);
                            } else {
                                $('#savedtraveller').hide();
                            }
                            var data = (response.data);
                            SetData('customerMember', JSON.stringify(data));
                            var ind = 0;
                            var Listul = $('<div></div>');
                            $.each(data, function(index, obj) {

                                if (ind == 0) {
                                    var CustomerSysId = obj.CustomerSysId;
                                } else {
                                    var CustomerSysId = obj.CustomerMemberSysId;
                                }
                                if (obj.SalutationTxt) {
                                    var SalutationTxt = obj.SalutationTxt;
                                } else {
                                    var SalutationTxt = obj.Salutation;
                                }
                                //<span class="checkmark"></span>
                                Listul.append('<div class="gst_add_align2"><label class="checkboxcontainerreviewaddons_savedlist" style="width:100%;"><input id="custMember_' + CustomerSysId + '" name="cusmemberSelected[]" onclick="Selectmember(this,' + obj.paxType + ')" type="checkbox" value="_' + CustomerSysId + '"/> ' + SalutationTxt + ' ' + obj.FirstName + ' ' + obj.LastName + ' <br><span class="adult_listtitle">' + obj.paxTypeName + '</span></label></div>');
                                ind++;
                            });
                            var ListulMob = $('<div></div>');
                            $.each(data, function(index, obj) {
                                if (obj.SalutationTxt) {
                                    var SalutationTxt = obj.SalutationTxt;
                                } else {
                                    var SalutationTxt = obj.Salutation;
                                }
                                ListulMob.append(`<div class="customgst_savedlist gst_add_align2_mobile"><label class="checkboxcontainerreviewaddons_savedlist" for="custMember_` + obj.CustomerMemberSysId + `"><input type="checkbox" id="custMember_` + obj.CustomerMemberSysId + `" name="cusmemberSelected[]" onclick="Selectmember(this,` + obj.paxType + `)" value="` + obj.CustomerMemberSysId + `">` + SalutationTxt + ` ` + obj.FirstName + ` ` + obj.LastName + `<br> <span class="adult_listtitle">` + obj.RelationTxt + ` | ` + obj.paxTypeName + `</span> </label></div>`);
                            });
                            var lenght = Object.keys(data).length;
                            if (lenght > 0) {
                                $(".saved_btn").show();
                            }

                            $('#dynamic_div').html(Listul);
                            $('.RefreshTraveller').show();
                            $('#dynamic_div__k').html(ListulMob);
                            setTimeout(function() {
                                $('.RefreshTraveller').removeClass("fa-spin");
                            }, 2000);

                        } else {
                            var values = 0;
                            $("#relation-1 option[value='" + values + "']").css("display", "block");
                            $('#relation-1').val(0);
                            $('#savedtraveller').hide();

                        }
                    }
                });
                return false;
            }

            $.ajax({
                type: "POST",
                url: "<?php echo $baseUrl; ?>hotel/review-hotel",
                dataType: 'json',
                data: {},
                beforeSend: function() {
                    $('.travellerform').hide();
                    $("#PleaseWaitLoader").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
                    $("#loadtravellerdata").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
                },
                success: function(response) {
                    $("#loadtravellerdata").hide();

                    if (response.success == true) {
                        $('.travellerform').show();
                        $("#PleaseWaitLoader").html(response.bodyText);
                        //console.log(response);
                        //country = response.country.toLowerCase();
                        if (response.idIpr) {
                            $('.pannumber').show();
                            $('.inputDisabledPan').removeAttr("disabled");
                        }
                        if (response.isipm) {
                            //if (country != 'india') {
                            $('.pass').show();
                            $('.inputDisabled').removeAttr("disabled")
                            //}
                        }
                    } else {
                        alert('Session expired');
                        window.location.href = '/';
                    }
                }
            });

        <?php } ?>



        <?php
        if (($modulename == 'hotels') && ($controller == 'index') && ($action == 'pay-now')) {
        ?>

            function PayNowTicket() {
                var ApiResultIndex = $('#ApiResultIndex').val();
                var TraceId = $('#TraceId').val();
                //alert(TraceId);
                $.ajax({
                    type: "POST",
                    url: "<?php echo $baseUrl; ?>hotel/pay-now/" + TraceId,
                    dataType: 'json',
                    data: {
                        TraceId: TraceId,
                        ApiResultIndex: ApiResultIndex
                    },
                    beforeSend: function() {
                        $('.continue_btn').hide();
                        $("#FareChangeData").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
                    },
                    success: function(response) {
                        if (response.success) {
                            //console.log(response);
                            //return false;
                            var guid = response.guid;
                            var walletCode = response.walletCode;
                            var stringData = response.stringData;
                            var strReturnURL = response.strReturnURL;
                            var TPSysId = response.TPSysId;
                            var amount = response.amount;
                            var name = response.UserData.name;
                            var emailId = response.UserData.email;
                            //alert(emailId);
                            //return false;
                            var mobile = response.UserData.mobile;
                            var CustomerSysId = response.UserData.CustomerSysId;
                            var FLBookingID = response.FLBookingID;
                            var lastInsertId = response.lastInsertId;
                            //alert(strReturnURL);
                            //return false;
                            $("#guid").val(guid);
                            $("#securecode").val(walletCode);
                            $("#returnURL").val(strReturnURL);
                            $("#errorURL").val(strReturnURL);
                            $("#stringData").val(stringData);
                            $("#premium_val").val(amount);

                            $("#custFirstname").val(name);
                            $("#custemail").val(emailId);
                            $("#custphone").val(mobile);
                            $("#CustomerSysId").val(CustomerSysId);
                            $("#FLBookingID").val(FLBookingID);
                            $("#lastInsertId").val(lastInsertId);
                            setTimeout(function() {
                                $("#paymentsubmit").submit();
                            }, 2000);

                        } else {
                            alert(data.message);
                            window.location.href = 'hotels';
                        }
                    }
                });
            }

            //alert('tests');
            PayNowTicket();
        <?php } ?>

        // $(window).load(function() {

        if ($('#content_overviewm').length > 0) {
            var content_overviewHeight = $('#content_overviewm').height();
            //$('#content_overview').css('height',content_overviewHeight);
            if (content_overviewHeight < 88) {
                $('.readMore_overview').hide();
                $('.readLess_overview').hide();
            }
            var content_highlightm = $('#content_highlightm').height();
            //$('#content_overview').css('height',content_overviewHeight);
            if (content_highlightm < 88) {
                $('.readMore_highlight').hide();
                $('.readLess_highlight').hide();
            }

        }
        // $("div[id^='content_']").each(function (i) {
        //     $('.show_wrap_less').each(function(i, obj) {
        $('.show_wrap_less').each(function(i, obj) {
            //         debugger;
            //            alert(i);
            var index = formatted_string('00', parseInt(i) + 1, 'l');
            var content_h = $('#content_' + index).height();
            //         alert($(obj).html());
            // var index = parseInt(i) + 1;


            //         alert(index);
            //            alert(content_h);
            if (content_h < 62) {
                $('.readLess_' + index).hide();
                $('.readMore_' + index).hide();
                //                $(".viewbtn1211212").addClass("hideviewbtn");
            }
            var style1 = BrowserVal(2);

            $(this).addClass('show_wrap_less').css(style1);

        });

        function formatted_string(pad, user_str, pad_pos) {
            if (typeof user_str === 'undefined')
                return pad;
            if (pad_pos == 'l') {
                return (pad + user_str).slice(-pad.length);
            } else {
                return (user_str + pad).substring(0, pad.length);
            }
        }

        function SetData(key, value) {
            if (typeof(localStorage) != "undefined") {
                //ikinci �nce html5 localStorage destegi varmi ona bakilir
                try {
                    localStorage.setItem(key, value);
                    return true;
                } catch (e) {
                    return false;
                }

            } else {
                //son olarak cookie destegi varmi ona bakilir
                try {
                    $.cookie(key, value);
                    return true;
                } catch (e) {
                    return false;
                }
            }
        }

        function GetData(key) {
            // alert(key);
            var sonuc = "";
            if (typeof(localStorage) != "undefined") {
                //Ikinci html5 localStorage destegi varmi ona bakilir
                if (localStorage[key] != null) {
                    sonuc = localStorage[key];
                }
            } else {
                //son olarak cookie destegi varmi ona bakilir
                sonuc = $.cookie(key);
            }
            return sonuc;
        }




        //})
    </script>


    <?php
    echo $seoFContent = (isset($detailLayout['seoFcontent']) && $detailLayout['seoFcontent'] != '') ? $detailLayout['seoFcontent'] : '';
    echo $footerScript1;
    echo $footerScript2;
    echo $footerScript3;
    ?>
 
</body>




</html>

<script>
    $(function() {
        $('.cancellation-menu').on('click', function(event) {
            event.stopPropagation()
        })
    });
var actionData = JSON.parse(actionArray);
var modulename = actionData.modulename;
var controller = actionData.controller;
var action = actionData.action;
var baseUrl = SITEURL;
var UserLogin = UserLogin;
var stylecss = stylecss;
var mydevice = dvc;
    function countdownhotels(estimetedTime = null) {
  
        var timeH2 = localStorage.getItem('timeH');
        console.log(estimetedTime);
        if (timeH2 === null) timeH2 = (estimetedTime != null) ? estimetedTime : "14:00";;
        $('.countdownhotels').html(timeH2);

        var interval = setInterval(function () {
            var timeH = timeH2.split(':');
            var minutes = parseInt(timeH[0], 10);
            var seconds = parseInt(timeH[1], 10);
            --seconds;
            minutes = (seconds < 0) ? --minutes : minutes;
            if (minutes < 0) {
                clearInterval(interval);
                localStorage.removeItem('timeH');
                $('#sessionexpired').modal('show');
                //$('button').show();
            } else {
                seconds = (seconds < 0) ? 59 : seconds;
                seconds = (seconds < 10) ? '0' + seconds : seconds;
                $('.countdownhotels').html(minutes + ':' + seconds);
                timeH2 = minutes + ':' + seconds;
                localStorage.setItem('timeH', timeH2);
            }
        }, 1000);
    }
    if ((modulename == 'hotels') && (controller == 'index') && (action == 'hotel-review')) {
        countdownhotels(localStorage.getItem('timeH'));
    }
    if ((modulename == 'hotels') && (controller == 'index') && (action == 'hotel-travellers')) {

var CheckMobile = $("#leadMobile").val();
var leadEmail = $("#leadEmail").val();
if (CheckMobile !== '') {
    getSearchCutomer();
}
$.ajax({
    type: "POST",
    url: baseUrl + "hotel/review-hotel",
    dataType: 'json',
    data: {},
    beforeSend: function () {
        $('.travellerform').hide();
        $("#PleaseWaitLoader").html('<div style="text-align:center;padding-top:30px;"><img src="' + baseUrl + 'public/images/loader.gif"/></div>');
        $("#loadtravellerdata").html('<div style="text-align:center;padding-top:30px;"><img src="' + baseUrl + 'public/images/loader.gif"/></div>');
    },
    success: function (response) {
        $("#loadtravellerdata").hide();

        if (response.success == true) {
            $('.travellerform').show();
            localStorage.clear();
            countdownhotels(response.isSessionTime);
            $("#PleaseWaitLoader").html(response.bodyText);
            //console.log(response);
            //country = response.country.toLowerCase();
            if (response.idIpr) {
                $('.pannumber').show();
                $('.inputDisabledPan').removeAttr("disabled");
            }
            if (response.isipm) {
                //if (country != 'india') {
                $('.pass').show();
                $('.inputDisabled').removeAttr("disabled")
                //}
            }
        } else {
            alert('Session expired');
            window.location.href = '/';
        }
    }
});
}
</script>

<script>
        $('#from_hotel, #to_hotel, #datepicker ').datepicker({
        dateFormat: 'dd/mm/yy',
        numberOfMonths: 2,
        minDate: 0,

          beforeShow: function(input, inst) {
        var rect = input.getBoundingClientRect();
        var dpDivHeight = inst.dpDiv.height();
        function setDatePickerPosition() {
        var windowHeight = $(window).height();
        var spaceAbove = rect.top;
        var spaceBelow = windowHeight - rect.bottom;
        inst.dpDiv.css({
        top: (spaceBelow >= dpDivHeight) ? rect.bottom : rect.top - dpDivHeight,
        left: rect.left
        });
        }

      $(window).on('scroll resize', function() {
       rect = input.getBoundingClientRect();
       setDatePickerPosition();
    });

     setTimeout(setDatePickerPosition, 0);

        }
        // beforeShow: function(input, inst) {
        //     var rect = input.getBoundingClientRect();
        //     setTimeout(function() {
        //         inst.dpDiv.css({
        //             top: rect.top + 40,
        //             left: rect.left + 0
        //         });
        //     }, 0);
        // }
    });


</script>

<script>
$('#myModa1packageRateEnquiry').on('shown.bs.modal', function () {
    const captcha = document.getElementById('captcha_two');
    if (captcha) {
        captcha.src = '<?php echo $baseUrl; ?>public/captcha/captcha.php?' + Date.now();
    }
});

$('#myModa1Enquiry').on('shown.bs.modal', function () {
    const captcha = document.getElementById('captcha_three');
    if (captcha) {
        captcha.src = '<?php echo $baseUrl; ?>public/captcha/captcha.php?' + Date.now();
    }
});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit