<?php /* Smarty version Smarty-3.1.8, created on 2020-01-09 16:20:11
         compiled from "/home/agmc/public_html/beta/application/core/views/frontend/mini/catalog/default/Product.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3604947845e171a7bc1bfe8-58713342%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '27a03cff779104cc8a643e5bdd54ce41ea388a9a' => 
    array (
      0 => '/home/agmc/public_html/beta/application/core/views/frontend/mini/catalog/default/Product.tpl',
      1 => 1577772526,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3604947845e171a7bc1bfe8-58713342',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'SelCurrLanguage' => 0,
    'languageDirection' => 0,
    'commonMetaImage' => 0,
    'commonMetaTitle' => 0,
    'commonMetaDescription' => 0,
    'settingsCanonicalLink' => 0,
    'views_host_share' => 0,
    'resultProductProduct' => 0,
    'catalog' => 0,
    'commonMetaKeywords' => 0,
    'view_styles' => 0,
    'common_frontend_js' => 0,
    'colorCustID' => 0,
    'intCustID' => 0,
    'stripeCustID' => 0,
    'roofCustID' => 0,
    'language' => 0,
    'fromCart' => 0,
    'customOption' => 0,
    'po' => 0,
    'selectedProductID' => 0,
    'specificationDetails' => 0,
    'specs' => 0,
    'productDefaultCurrency' => 0,
    'currentCurrencyID' => 0,
    'pokeysumm' => 0,
    'pokey' => 0,
    'posumm' => 0,
    'view_public_path' => 0,
    'setdefaultimages' => 0,
    'resShowrooms' => 0,
    'resProductSummaryImages' => 0,
    'resBrandCategories' => 0,
    'resvariant' => 0,
    'downPaymentPercentage' => 0,
    'currencySymbol' => 0,
    'finance_term' => 0,
    'calulatorproduct' => 0,
    'vr' => 0,
    'common_frontend_js_path' => 0,
    'compiled_js_path' => 0,
    'processingFeesPercentage' => 0,
    'encodedCustomOption' => 0,
    'encodedCombinations' => 0,
    'resBreadcrumbs' => 0,
    'setdefaultimagecode' => 0,
    'cartToJsInit' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e171a7bd92c65_35001114',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e171a7bd92c65_35001114')) {function content_5e171a7bd92c65_35001114($_smarty_tpl) {?><!DOCTYPE html>
<html ng-app="myapp" lang="<?php echo $_smarty_tpl->tpl_vars['SelCurrLanguage']->value;?>
" dir="<?php echo $_smarty_tpl->tpl_vars['languageDirection']->value;?>
">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="image_src" href="<?php echo $_smarty_tpl->tpl_vars['commonMetaImage']->value;?>
" />
    <title><?php echo $_smarty_tpl->tpl_vars['commonMetaTitle']->value;?>
</title>
    <meta name="Description" content="<?php echo htmlspecialchars(htmlspecialchars_decode($_smarty_tpl->tpl_vars['commonMetaDescription']->value, ENT_QUOTES), ENT_QUOTES, 'UTF-8', true);?>
" />
    <meta name="viewport" content="width=device-width">
    <?php if ($_smarty_tpl->tpl_vars['settingsCanonicalLink']->value=='Yes'){?>
    <link rel="canonical" href="<?php echo $_smarty_tpl->tpl_vars['views_host_share']->value;?>
/<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['sef_path'][0][0]->getSefRequestPath($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productID'],'product',$_smarty_tpl->tpl_vars['catalog']->value);?>
"/>
    <?php }?>
    <meta name="Keywords" content="<?php echo htmlspecialchars(htmlspecialchars_decode($_smarty_tpl->tpl_vars['commonMetaKeywords']->value, ENT_QUOTES), ENT_QUOTES, 'UTF-8', true);?>
" />
    <meta property="og:title" content="<?php echo htmlspecialchars(htmlspecialchars_decode($_smarty_tpl->tpl_vars['commonMetaTitle']->value, ENT_QUOTES), ENT_QUOTES, 'UTF-8', true);?>
"/>
    <meta property="og:description" content="<?php echo htmlspecialchars(htmlspecialchars_decode($_smarty_tpl->tpl_vars['commonMetaDescription']->value, ENT_QUOTES), ENT_QUOTES, 'UTF-8', true);?>
"/>
    <meta property="og:image" content="<?php echo $_smarty_tpl->tpl_vars['commonMetaImage']->value;?>
"/>
    <meta property="og:url" content="<?php echo $_smarty_tpl->tpl_vars['views_host_share']->value;?>
/<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['sef_path'][0][0]->getSefRequestPath($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productID'],'product',$_smarty_tpl->tpl_vars['catalog']->value);?>
"/>
    <?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

    <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/productdetails.css" />
    <?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

     <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script(array('src'=>($_smarty_tpl->tpl_vars['common_frontend_js']->value)."/3deye-mini.js"),$_smarty_tpl);?>

     <script type="text/javascript">
         var colorCustID = '<?php echo $_smarty_tpl->tpl_vars['colorCustID']->value;?>
';
         var intCustID   = '<?php echo $_smarty_tpl->tpl_vars['intCustID']->value;?>
';
         var languageDir = '<?php echo $_smarty_tpl->tpl_vars['languageDirection']->value;?>
';
         var stripeCustID = '<?php echo $_smarty_tpl->tpl_vars['stripeCustID']->value;?>
';
         var roofCustID   = '<?php echo $_smarty_tpl->tpl_vars['roofCustID']->value;?>
';
     </script>
  </head>
  
  <body ng-controller="SearchCtrl" class="product-detail">
    <noscript>
      <div class="noscript-alert">
        <div class="alert-wrapper"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['msgJavascriptDisabled'];?>
 </strong><?php echo $_smarty_tpl->tpl_vars['language']->value['msgJavascriptEnable'];?>
</div>
      </div>
    </noscript>
    <div class="common_message" id="common_message"></div>  
 
    <div id="main" class="outer">
  
           <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
            
 
 <?php $_smarty_tpl->tpl_vars["productCurrency"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productDefaultCurrency'], null, 0);?>
  <?php $_smarty_tpl->tpl_vars["productDefaultCurrency"] = new Smarty_variable($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productDefaultCurrency'], null, 0);?>
  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"selectedProductOption",'value'=>$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionID']),$_smarty_tpl);?>

     <div class="content-wrapper" id="content-wrapper" ng-show="!query" >
       
        <div class="product-detail-head d-flex position-sticky top-0 bg-dark">
            <div class="container">
              <div class="row">
                <ul class="nav nav-tabs border-bottom-0 pl-3 text-uppercase" id="productdetailTab" role="tablist">
                  <li class="nav-item">
                    <a class="nav-link <?php if ((($tmp = @$_smarty_tpl->tpl_vars['fromCart']->value)===null||$tmp==='' ? '' : $tmp)!='Yes'){?> active <?php }?> custopts" id="Packages-tab" data-toggle="tab" href="#Packages" role="tab" aria-controls="Packages" aria-selected="true"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPackages'];?>
</a>
                  </li>
                  <?php  $_smarty_tpl->tpl_vars["po"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["po"]->_loop = false;
 $_smarty_tpl->tpl_vars["optkey"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['customOption']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["po"]->key => $_smarty_tpl->tpl_vars["po"]->value){
$_smarty_tpl->tpl_vars["po"]->_loop = true;
 $_smarty_tpl->tpl_vars["optkey"]->value = $_smarty_tpl->tpl_vars["po"]->key;
?>
                      <?php if ($_smarty_tpl->tpl_vars['po']->value['variants']){?>
                  <li class="nav-item">
                    <a class="nav-link custopts" rel='<?php echo $_smarty_tpl->tpl_vars['po']->value['customOptionID'];?>
' id="<?php echo $_smarty_tpl->tpl_vars['po']->value['customOptionName'];?>
-tab" href="#<?php echo $_smarty_tpl->tpl_vars['po']->value['customOptionName'];?>
" data-toggle="tab" role="tab" aria-controls="<?php echo $_smarty_tpl->tpl_vars['po']->value['customOptionName'];?>
" aria-selected="false"><?php echo $_smarty_tpl->tpl_vars['language']->value[("lbl").($_smarty_tpl->tpl_vars['po']->value['customOptionName'])];?>
</a> 
                  </li>
                  <?php }?>
                  <?php } ?>
                  <li class="nav-item">
                    <a class="nav-link custopts" id="Showroom-tab" data-toggle="tab" href="#Showroom" role="tab" aria-controls="Showroom" aria-selected="false"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowroom'];?>
</a>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link" id="Summary-tab" rel="<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionID'];?>
"  data-toggle="tab" href="#Summary" role="tab" aria-controls="Summary" aria-selected="false"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSummary'];?>
</a>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link <?php if ((($tmp = @$_smarty_tpl->tpl_vars['fromCart']->value)===null||$tmp==='' ? '' : $tmp)=='Yes'){?> active <?php }?>" id="Payment-tab" rel="<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionID'];?>
" data-toggle="tab" href="#Payment" role="tab" aria-controls="Payment" aria-selected="false"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPayment'];?>
</a>
                  </li>
                </ul>
              </div>
            </div>
        </div>
       
        <div class="product-detail mb-md-5 mb-3">
            <div class="tab-content" id="productdetailTabContent">
              <div class="tab-pane fade <?php if ((($tmp = @$_smarty_tpl->tpl_vars['fromCart']->value)===null||$tmp==='' ? '' : $tmp)!='Yes'){?> show active <?php }?>" id="Packages" role="tabpanel" aria-labelledby="Packages-tab">
               <div class="container">
                <div class="row detail-outer-block">
                  <div class="col-12 col-lg-7 col-xl-8 pr-lg-5" >
                    <h5 class="text-secondary font-weight-semibold pt-5 mb-3 product-title text-uppercase position-relative"><?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productTitle'];?>
</h5>
                  <div class="product-view-360 d-inline-block w-100 position-relative">
                    <div class="product-detail-container">
                      <div class="myCarPackages" rel='Packages'></div>
                    </div>
                  </div>
                 
                </div>
                  <div class="col-12 col-lg-5 col-xl-4 order-last mb-4 pt-5 border-left pl-lg-5  h-100">
                        <h4 class="text-secondary font-weight-semibold text-uppercase text-left"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSpecifications'];?>
</h4>
                      
                      <div class="pt-3 order-last poduct-detail-specification">
                        <ul class="list-unstyled p-0 poduct-detail-specification-list text-secondary font-weight-semibold mb-3 d-block">
							<?php  $_smarty_tpl->tpl_vars["specs"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["specs"]->_loop = false;
 $_smarty_tpl->tpl_vars["spkey"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['specificationDetails']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["specs"]->key => $_smarty_tpl->tpl_vars["specs"]->value){
$_smarty_tpl->tpl_vars["specs"]->_loop = true;
 $_smarty_tpl->tpl_vars["spkey"]->value = $_smarty_tpl->tpl_vars["specs"]->key;
?>
                            <?php if ($_smarty_tpl->tpl_vars['specs']->value['value']!='space'){?>  
								<?php if ($_smarty_tpl->tpl_vars['specs']->value['type']=='H'){?>
								<li class="pb-2"><?php echo $_smarty_tpl->tpl_vars['specs']->value['value'];?>
</li>
								<?php }else{ ?>
								<li class="pb-2"><span class="d-inline-block text-left mr-2"><?php echo $_smarty_tpl->tpl_vars['specs']->value['profileCode'];?>
</span><?php echo $_smarty_tpl->tpl_vars['specs']->value['value'];?>
</li>
								<?php }?>
							<?php }else{ ?>
								<li class="pb-2 my-2"></li>
							<?php }?>
							<?php } ?>
                        </ul>
                        <!-- <span class="d-inline-block text-left float-left">&nbsp;</span>-->
                        <div class="col-12 px-0">
                           <a href="" class="view-more-btn text-uppercase text-dark font-weight-bold py-2 d-inline-block d-lg-none mb-3"> <span class="more"><i class='bg-dark font-weight-bold font-xsmall icon-plus mr-2 rounded-circle text-center text-white'></i><?php echo $_smarty_tpl->tpl_vars['language']->value['lblViewmore'];?>
</span><span class="less"><i class='bg-dark font-weight-bold font-xsmall icon-minus mr-2 rounded-circle text-center text-white'></i><?php echo $_smarty_tpl->tpl_vars['language']->value['lblViewless'];?>
</span></a>
                        </div>
                      </div>
                  </div>
                </div>
               </div>
                <div class="align-items-center bg-white bottom-0 d-flex justify-content-end left-0 position-fixed product-detail-bottom px-4 px-md-5 py-3 text-right w-100">
                      <span class="d-inline-block font-weight-semibold h5 text-secondary mr-md-5 mr-3 mb-0 price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionProductPrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>

                        <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'])===null||$tmp==='' ? '0' : $tmp)>0){?>
					    <div class="font-base font-weight-light d-md-block d-none text-muted"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMI'];?>
 <span class="d-inline-block font-weight-semibold text-dark"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
</span> <i class="icon-info font-normal" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMIinfo'];?>
"></i></div>
					    <?php }?>
					    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'])===null||$tmp==='' ? '0' : $tmp)>0){?>
					    <div class="font-base font-weight-light text-muted d-md-block d-none"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMI'];?>
 <span class="d-inline-block d-inline-block font-weight-semibold text-dark"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
</span> <i class="icon-info font-normal" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMIinfo'];?>
"></i></div>
					    <?php }?>
                        </span>
                      <button class="btn btn-primary continue-btn px-4 font-weight-normal text-uppercase font-normal" rel="<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionID'];?>
"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContinue'];?>
</button>
                </div>
              </div> 
               <?php  $_smarty_tpl->tpl_vars["po"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["po"]->_loop = false;
 $_smarty_tpl->tpl_vars["pokey"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['customOption']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["po"]->key => $_smarty_tpl->tpl_vars["po"]->value){
$_smarty_tpl->tpl_vars["po"]->_loop = true;
 $_smarty_tpl->tpl_vars["pokey"]->value = $_smarty_tpl->tpl_vars["po"]->key;
?>
                   <?php if ($_smarty_tpl->tpl_vars['po']->value['variants']){?>
              <div class="tab-pane fade" id="<?php echo $_smarty_tpl->tpl_vars['po']->value['customOptionName'];?>
" role="tabpanel" aria-labelledby="<?php echo $_smarty_tpl->tpl_vars['po']->value['customOptionName'];?>
-tab">
               <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Upholstery'&&$_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Trim'){?><div class="container"><?php }?>
                <div class="row  detail-outer-block <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']=='Upholstery'||$_smarty_tpl->tpl_vars['po']->value['customOptionName']=='Trim'){?> m-0 <?php }?>">
                 <div class="col-12 col-lg-7 col-xl-8 <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']=='Upholstery'||$_smarty_tpl->tpl_vars['po']->value['customOptionName']=='Trim'){?>px-0<?php }else{ ?>pr-lg-5<?php }?> <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']=='Trim'){?>panoramaview<?php }?>" >
                  <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Upholstery'&&$_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Trim'){?>
                      <h5 class="text-secondary font-weight-semibold pt-5 mb-3 product-title text-uppercase position-relative"><?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productTitle'];?>
</h5>
                  <?php }?>
                  <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Upholstery'&&$_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Trim'&&$_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Stripe'&&$_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Roof'){?>
                      <?php echo $_smarty_tpl->getSubTemplate ('catalog/default/360degreeview.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
                   <?php }else{ ?>
                       <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']=='Trim'){?>
                           <?php echo $_smarty_tpl->getSubTemplate ('catalog/default/Panoramaimageview.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
                        <?php }else{ ?>
                            <?php echo $_smarty_tpl->getSubTemplate ('catalog/default/Singleimageview.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
                       <?php }?>
                   <?php }?>
                    </div>
                  <div class="col-12 col-lg-5 col-xl-4 mb-4 pt-5 border-left pl-lg-5  h-100  ">
                       <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']=='Upholstery'||$_smarty_tpl->tpl_vars['po']->value['customOptionName']=='Trim'){?>
                      <h5 class="text-secondary font-weight-semibold  mb-3 product-title text-uppercase position-relative"><?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productTitle'];?>
</h5>
                  <?php }?>
                       <div class="pb-lg-5 mb-lg-5 w-100 align-content-center flex-wrap h-100 d-flex">
                        <h4 class="text-secondary font-weight-semibold text-uppercase text-left"><?php echo $_smarty_tpl->tpl_vars['language']->value[("lbl").($_smarty_tpl->tpl_vars['po']->value['customOptionName'])];?>
</h4>
                           <ul class="border-bottom-0 mx-0 px-0 clearfix text-left list-unstyled mb-5 nav w-100 pb-5 position-relative specs-list  custopt_<?php echo $_smarty_tpl->tpl_vars['po']->value['customOptionID'];?>
" id="productdetailColorTab" role="tablist">
                            <?php echo $_smarty_tpl->getSubTemplate ('catalog/default/AjaxCustVariants.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
                           </ul>
                      </div>
                  </div>
                </div>
               <?php if ($_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Upholstery'&&$_smarty_tpl->tpl_vars['po']->value['customOptionName']!='Trim'){?></div><?php }?>
                <div class="product-detail-bottom w-100 position-fixed left-0 bottom-0 bg-white py-3 px-md-5 px-4">
                  <div class="row">
                    <div class="col-6 d-md-inline-block d-none">
                      <ul class="selected-specs-list d-flex h-100 list-unstyled p-0 m-0">
                          <?php  $_smarty_tpl->tpl_vars["posumm"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["posumm"]->_loop = false;
 $_smarty_tpl->tpl_vars["pokeysumm"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['customOption']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["posumm"]->key => $_smarty_tpl->tpl_vars["posumm"]->value){
$_smarty_tpl->tpl_vars["posumm"]->_loop = true;
 $_smarty_tpl->tpl_vars["pokeysumm"]->value = $_smarty_tpl->tpl_vars["posumm"]->key;
?>
                              <?php if ($_smarty_tpl->tpl_vars['pokeysumm']->value>$_smarty_tpl->tpl_vars['pokey']->value){?>
                                  <?php continue 1?>
                              <?php }?>    
                                <li class="d-flex flex-column">
                                  <label class="text-uppercase mb-2"><?php echo $_smarty_tpl->tpl_vars['language']->value[("lbl").($_smarty_tpl->tpl_vars['posumm']->value['customOptionName'])];?>
</label>
                                  <img src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/custom-option-variant/<?php echo $_smarty_tpl->tpl_vars['setdefaultimages']->value[$_smarty_tpl->tpl_vars['posumm']->value['customOptionID']]['image'];?>
" rel="<?php echo $_smarty_tpl->tpl_vars['setdefaultimages']->value[$_smarty_tpl->tpl_vars['posumm']->value['customOptionID']]['id'];?>
"  class="img-fluid sel_variant_<?php echo $_smarty_tpl->tpl_vars['posumm']->value['customOptionID'];?>
"/>
                                </li>
                            <?php } ?>
                      </ul>
                    </div>
                    <div class="col-md-6 col-12 text-right align-items-center d-flex justify-content-end">
                     <span class="d-inline-block font-weight-semibold h5 text-secondary mr-md-5 mr-3 mb-0 price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionProductPrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>

					    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'])===null||$tmp==='' ? '0' : $tmp)>0){?>
					    <div class="font-base font-weight-light d-md-block d-none text-muted"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMI'];?>
 <span class="d-inline-block font-weight-semibold text-dark"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
</span> <i class="icon-info font-normal" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMIinfo'];?>
"></i></div>
					    <?php }?>
					    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'])===null||$tmp==='' ? '0' : $tmp)>0){?>
					    <div class="font-base font-weight-light text-muted d-md-block d-none"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMI'];?>
 <span class="d-inline-block font-weight-semibold text-dark"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
</span> <i class="icon-info font-normal" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMIinfo'];?>
"></i></div>
					    <?php }?>
                        </span>
                      <button class="btn btn-primary continue-btn px-4 font-weight-normal text-uppercase font-normal"  rel="<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionID'];?>
"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContinue'];?>
</button>
                    </div>
                  </div>
                </div>
              </div>
                    <?php }?>
            <?php } ?>
              <div class="tab-pane fade" id="Showroom" role="tabpanel" aria-labelledby="Showroom-tab">
               <div class="container">
                <div class="row detail-outer-block">
                  <div class="col-12 col-lg-7 col-xl-8 pr-lg-5">
                    <h5 class="text-secondary font-weight-semibold pt-5 mb-3 product-title text-uppercase position-relative"><?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productTitle'];?>
</h5>
                 
                  <div class="product-view-360 order-lg-2 order-1 position-relative">
                    <div class="container product-detail-container">
                          <div class="myCarShowroom"></div>
                    </div>
                  </div>
                    </div>
                  <div class="col-12 col-lg-5 col-xl-4 order-last mb-4 pt-5  pl-lg-5 pt-lg-0  h-100 ">
                   <div class="pb-lg-5 mb-lg-5 w-100 align-content-center flex-wrap h-100 d-flex">
                        <h5 class="text-secondary font-weight-semibold pt-lg-5 mb-3 product-title text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectShowroom'];?>
</h5>
                        <p class="text-secondary mb-2 text-left font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectYourNearestShowroom'];?>
</p>
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('id'=>"showroom",'name'=>"showroom",'class'=>"form-control form-control-lg text-secondary",'options'=>$_smarty_tpl->tpl_vars['resShowrooms']->value),$_smarty_tpl);?>

                     
                      </div></div>
                </div>
               </div>
                <div class="product-detail-bottom w-100 position-fixed left-0 bottom-0 bg-white py-3 px-md-5 px-4">
                  <div class="row">
                    <div class="col-6 d-md-inline-block d-none">
                      <ul class="selected-specs-list d-flex h-100 list-unstyled p-0 m-0">
                         <?php  $_smarty_tpl->tpl_vars["posumm"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["posumm"]->_loop = false;
 $_smarty_tpl->tpl_vars["pokeysumm"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['customOption']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["posumm"]->key => $_smarty_tpl->tpl_vars["posumm"]->value){
$_smarty_tpl->tpl_vars["posumm"]->_loop = true;
 $_smarty_tpl->tpl_vars["pokeysumm"]->value = $_smarty_tpl->tpl_vars["posumm"]->key;
?>
                              <?php if ($_smarty_tpl->tpl_vars['pokeysumm']->value>$_smarty_tpl->tpl_vars['pokey']->value){?>
                                  <?php continue 1?>
                              <?php }?>    
                                <li class="d-flex flex-column">
                                 <label class="mb-2 text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value[("lbl").($_smarty_tpl->tpl_vars['posumm']->value['customOptionName'])];?>
</label>
                                  <img src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/custom-option-variant/<?php echo $_smarty_tpl->tpl_vars['setdefaultimages']->value[$_smarty_tpl->tpl_vars['posumm']->value['customOptionID']]['image'];?>
"  class="img-fluid sel_variant_<?php echo $_smarty_tpl->tpl_vars['posumm']->value['customOptionID'];?>
"/>
                                </li>
                            <?php } ?>
                      </ul>
                    </div>
                    <div class="col-md-6 col-12 text-right align-items-center d-flex justify-content-end">
                      <span class="d-inline-block font-weight-semibold h5 text-secondary mr-md-5 mr-3 mb-0 price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionProductPrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>

					    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'])===null||$tmp==='' ? '0' : $tmp)>0){?>
					    <div class="font-base font-weight-light d-md-block d-none text-muted"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMI'];?>
 <span class="d-inline-block font-weight-semibold text-dark"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
</span> <i class="icon-info font-normal" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMIinfo'];?>
"></i></div>
					    <?php }?>
					    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'])===null||$tmp==='' ? '0' : $tmp)>0){?>
					    <div class="font-base font-weight-light text-muted d-md-block d-none"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMI'];?>
 <span class="d-inline-block font-weight-semibold text-dark"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
</span> <i class="icon-info font-normal" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMIinfo'];?>
"></i></div>
					    <?php }?>
                        </span>
                      <button class="btn btn-primary continue-btn px-4 font-weight-normal text-uppercase font-normal"  rel="<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionID'];?>
"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContinue'];?>
</button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="tab-pane fade" id="Summary" role="tabpanel" aria-labelledby="Summary-tab">
                <div id="summury-main-blk">
                  <div class="container">
                   <div class="row detail-outer-block">
                     <div class="product-view-360 col-12 col-lg-7 col-xl-8">
                       <h5 class="text-secondary font-weight-semibold pt-5 mb-3 product-title text-uppercase position-relative"><?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productTitle'];?>
</h5>
                        <div class="align-items-center d-flex flex-wrap h-100 position-relative ">
						  <img src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/<?php echo $_smarty_tpl->tpl_vars['resProductSummaryImages']->value[0]['vehicleImage'];?>
" class="img-fluid summary-img"/>
                        </div>
                      </div>
                      <div class="col-12 col-lg-5 col-xl-4 order-last mb-4 pt-5 border-left pl-lg-5  h-100  ">
                            <h4 class="text-secondary font-weight-semibold text-uppercase text-left"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSummary'];?>
</h4>
                            <h6 class="text-secondary font-weight-semibold pt-3 mb-2  text-uppercase"><?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productTitle'];?>
</h6>
                             <div class="text-dark font-weight-semibold summary-price"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionProductPrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
</div>
                          <div class="summary-left">
                          <div class="text-left">
                              <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'])===null||$tmp==='' ? '0' : $tmp)>0){?>
							<span class="pt-2 d-md-block d-none px-0"><a href="" class="clearfix d-lg-block font-weight-light text-muted" id="finance-calculator"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMI'];?>
 <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblPermonth'];?>
 <i class="d-none d-lg-block  float-lg-right mt-1 icon-info  text-muted cursor-pointer font-normal" data-toggle="tooltip" data-placement="bottom" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMIinfo'];?>
"></i> <i class="float-lg-right icon-calculator mr-2 mt-1 text-info"></i><i class="d-lg-none  mt-1 icon-info  text-muted cursor-pointer" data-toggle="tooltip" data-placement="bottom" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMIinfo'];?>
"></i></a> </span>
                            <?php }?>
                            <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'])===null||$tmp==='' ? '0' : $tmp)>0){?>
							<span class="pb-2 d-md-block d-none px-0 mt-1"><a href="" class="clearfix d-lg-block font-weight-light text-muted" id="lease-calculator"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMI'];?>
 <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblPermonth'];?>
 <i class="d-none d-lg-block float-lg-right mt-1 icon-info text-muted cursor-pointer font-normal" data-toggle="tooltip" data-placement="bottom" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMIinfo'];?>
"></i> <i class="float-lg-right icon-calculator mr-2 mt-1  text-info"></i> <i class="d-lg-none mt-1 icon-info text-muted cursor-pointer" data-toggle="tooltip" data-placement="bottom" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMIinfo'];?>
"></i> </a> </span>
							<?php }?>
                          </div>
                          <div class="pt-3 poduct-detail-specification specification-summary">
                            
                          </div>
                          <div class="col-12 d-lg-none d-block btn-group mt-3">
						  
                            <div class="row">
                              <div class="col mb-3">
                          <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"test-drive.html",'target'=>"_blank",'class'=>"align-items-center btn btn-outline-primary d-inline-flex font-weight-bold font-xsmall  w-100 justify-content-center",'content'=>"<i class='icon-testdrive mr-2 h5 mb-0'></i>".($_smarty_tpl->tpl_vars['language']->value['lblBookATestDrive'])),$_smarty_tpl);?>

                                </div>
                              <div class="col mb-3">
                                <a href="" class="align-items-center btn btn-primary d-inline-flex font-weight-bold font-xsmall  w-100 justify-content-center" data-toggle="modal" data-target="#downloadproductinfo" onclick="refreshdownloadinfo();"><i class="icon-pdf mr-2 font-normal mb-0"></i><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDownloadProductInfo'];?>
</a>
                              </div>
                             <div class="col mb-3">
                                <a href="" class="align-items-center btn btn-outline-primary d-inline-flex font-weight-bold font-xsmall  w-100 justify-content-center" data-toggle="modal" data-target="#requestacallback"><i class="icon-telephone mr-2 h6 mb-0"></i><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRequestCallBack'];?>
</a>
                              </div>
                            </div>
                          </div>
                        
						</div>
						</div>
                      </div>
                    </div>
                  </div>
                  <div class="product-detail-bottom w-100 position-fixed left-0 bottom-0 bg-white pb-3 pt-md-3 pt-0 px-md-5 px-4">
                    <div class="row">
                      <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'])===null||$tmp==='' ? '0' : $tmp)>0){?>
					  <div class="col-12 py-2 d-md-none d-inline-block border-bottom">
                        <a href="" class=" d-flex font-weight-light text-muted" id="finance-calculator">
                          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMI'];?>
 <span class="font-weight-semibold ml-1 text-dark"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['monthlyInstallment'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblPermonth'];?>
</span>
                          <?php if ($_smarty_tpl->tpl_vars['languageDirection']->value=="ltr"){?>
                            <i class="icon-arrow-right ml-auto align-self-center text-dark"></i>
                          <?php }else{ ?>
                            <i class="icon-arrow-left ml-auto align-self-center text-dark"></i>
                          <?php }?>
                        </a>
                      </div>
					  <?php }?>
					  <?php if ((($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'])===null||$tmp==='' ? '0' : $tmp)>0){?>
                      <div class="col-12 py-2 d-md-none d-inline-block border-bottom">
                        <a href="" class="d-flex font-weight-light text-muted" id="lease-calculator">
                          <?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseEMI'];?>
 <span class="font-weight-semibold ml-1 text-dark"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['leasePrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblPermonth'];?>
</span>
                          <?php if ($_smarty_tpl->tpl_vars['languageDirection']->value=="ltr"){?>
                            <i class="icon-arrow-right text-dark ml-auto align-self-center"></i>
                          <?php }else{ ?>
                            <i class="icon-arrow-left text-dark ml-auto align-self-center"></i>
                          <?php }?>
                        </a>
                      </div>
					  <?php }?>
                      <div class="col-7 d-lg-inline-block d-none">
                        <ul class="row align-items-center h-100 list-unstyled p-0 m-0">
                          <li class="col-5">
                            <a href="" class="font-normal font-weight-bold text-primary d-inline-flex align-items-center" data-toggle="modal" data-target="#downloadproductinfo" onclick="refreshdownloadinfo();"><i class="icon-pdf mr-2 h4 mb-0"></i><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDownloadProductInfo'];?>
</a>
                          </li>
                           <li class="col-4">
                          <a href="" class="font-normal font-weight-bold text-primary d-inline-flex align-items-center" data-toggle="modal" data-target="#requestacallback"><i class="icon-telephone mr-2 h5 mb-0"></i><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRequestCallBack'];?>
</a>
                          </li>
                           <li class="col-3 pr-0">
                          <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"test-drive.html",'target'=>"_blank",'class'=>"font-normal font-weight-bold text-primary d-inline-flex align-items-center",'content'=>"<i class='icon-testdrive mr-2 h5 mb-0'></i>".($_smarty_tpl->tpl_vars['language']->value['lblBookATestDrive'])),$_smarty_tpl);?>

                          </li>
                        </ul>
                      </div>

                      <div class="col-lg-5 col-12 pt-md-0 pt-3 text-right align-items-center d-flex justify-content-end">
                        <span class="d-inline-block font-weight-semibold h5 text-secondary  mr-3 mb-0 summary-price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionProductPrice'],'',$_smarty_tpl->tpl_vars['productDefaultCurrency']->value,$_smarty_tpl->tpl_vars['currentCurrencyID']->value);?>

                        </span>
                        <button class="btn btn-primary continue-btn px-4 font-weight-normal text-uppercase font-normal"  rel="<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
-<?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionID'];?>
"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblReserveMINI'];?>
</button>
                      </div>
                    </div>
                  </div>
                
                <div id="finance-calculator-blk" class="d-none payment-outer-block">
                  <div class="container bottom-space">
                    <div class="row ">
                     <div class="col-12 col-lg-8 border-right pr-lg-4">
                     <button class="btn-outline-secondary continue-btn-calculator cursor-pointer float-right font-small mt-3 mt-md-5 px-3 py-2 text-uppercase"><i class="align-middle d-inline-block icon-arrow-left"></i> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblBacktoSummary'];?>
</button>
                        <h4 class="font-weight-semibold mb-1 text-uppercase mt-3 mt-md-5"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceCalculator'];?>
</h4>
                        <p class="font-normal mb-4 text-muted text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceInTwoStepsMini'];?>
</p>
                        <div class="finance-calculator-box form-blk">
                          <h6 class="font-weight-semibold mb-4"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStepOneSelectMini'];?>
</h6>
                          <div class="row">
                          <div class="col-12 col-md-4 mb-4 pb-1">
                            <label class="font-normal text-secondary mb-1 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblModel'];?>
</label>
                           <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"series",'class'=>"form-control",'options'=>($_smarty_tpl->tpl_vars['resBrandCategories']->value['productCategoryID'])."->".($_smarty_tpl->tpl_vars['resBrandCategories']->value['CategoryName']),'value'=>($_smarty_tpl->tpl_vars['resBrandCategories']->value['productCategoryID'])),$_smarty_tpl);?>
 
                          </div>
                          <div class="col-12 col-md-4 mb-4 pb-lg-2">
                            <label class="font-normal text-secondary mb-1 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShortDescription'];?>
</label>
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"shortDesc",'class'=>"form-control",'options'=>($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productShortDescription'])."->".($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productShortDescription']),'value'=>($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productShortDescription'])),$_smarty_tpl);?>
 
                          </div>
                          <div class="col-12 col-md-4 mb-4 pb-lg-2">
                            <label class="font-normal text-secondary mb-1 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblVariant'];?>
</label>
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"variant",'class'=>"form-control",'content'=>$_smarty_tpl->tpl_vars['resvariant']->value),$_smarty_tpl);?>
 
                          </div>
                         </div>
                        </div>
                       <div class="finance-calculator-box form-blk">
                      <h6 class="font-weight-semibold mb-4"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStepTwoSelectDownpayAndTerm'];?>
</h6>
						  <div class="col-12 p-0 mb-4">
							<label class="font-normal text-secondary mb-0 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDownpayment'];?>
 (<span id="downpaymentval"><?php echo $_smarty_tpl->tpl_vars['downPaymentPercentage']->value;?>
</span>%) </label>
							<div class="row align-items-center">
							  <div class="col-8 col-md-6 ">
                <div class="rangebox-outer">
                  <div id="donwpaymentrangeslider" class="mb-3 mt-4"></div>
                </div>
								<div class="clearfix">
								  <span class="flt-lft"><?php echo $_smarty_tpl->tpl_vars['downPaymentPercentage']->value;?>
%</span>
								  <span class="flt-rgt">100%</span>
								</div>
								
							  </div>
							  <div class="col-4 col-md-6">
								<div id="donwpaymentamount" class="h6 font-weight-bold m-0">0</div>
								<span class="font-normal"> <?php echo $_smarty_tpl->tpl_vars['currencySymbol']->value;?>
</span>
							  </div>
							</div>
						  </div>
						  <div class="col-12 p-0 mb-4">
							<label class="font-normal text-secondary mb-0 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTerm'];?>
</label>
							<div class="row align-items-center">
							  <div class="col-8 col-md-6">
                <div class="rangebox-outer">
                  <div id="termrangeslider" class="mb-3 mt-4"></div>
                </div>
								<div class="clearfix">
								  <span class="flt-lft"><?php echo $_smarty_tpl->tpl_vars['finance_term']->value;?>
</span>
                                                                  <span class="flt-rgt">6</span>
								</div>
							  </div>
							  <div class="col-4 col-md-6">
								<div id="termlength" class="h6 font-weight-bold m-0"></div>
								<span class="font-normal"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMonths'];?>
</span>
							  </div>
							</div>
						  </div>
						  <div class="col-sm-8 col-md-6 col-12 pl-0 mb-4">
							<label class="font-weight-semibold mb-1 text-secondary"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceRate'];?>
 <span class="mndty font-normal font-weight-normal">*</span></label>
							<input type="text" class="form-control"  id="finRate"  readonly="readonly"/>
						  </div>
						  <div class="col-12 p-3 mb-lg-5 mb-4 bg-light">
							<p class="f15 font-weight-light mb-0 text-muted"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMonthlyPayment'];?>
</p>
							<h5 class="text-secondary font-weight-semibold mb-4 h4" id="monthlyPayment"></h5>
							<p class="h4 text-secondary font-weight-semibold mt-2 mb-3 text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSpecialOffer'];?>
</p>
							<p id="detailedDesc" class="font-weight-light"></p>
							<p class="font-weight-light mb-0 text-muted"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSpecialOfferText'];?>
 <br/><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/contact.html",'class'=>"text-primary text-underline d-inline-block",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblLiveChatAgentNow'])),$_smarty_tpl);?>
</p>
						  </div>
						  <div class="col-12 p-0 mb-5">
							<p class="font-weight-light mb-0 text-muted"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceDisclaim'];?>
</p>
							<h5 class="text-secondary font-weight-semibold text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDisclaimer'];?>
</h5>
							<p class="font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDisclaimerText'];?>
</p>
						  </div>
						  <div class="col-12 p-0 mb-4">
							<button class="btn-primary continue-btn-calculator  px-4 btn font-normal text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContinue'];?>
</button>
						  </div>
						</div>
                        </div>
                        <div class="col-12 col-lg-4 mb-4 pl-lg-4">
							<img  src="" class="img-fluid summaryfinancelease"/>
							<h6  class="text-secondary font-weight-semibold mt-0 mb-3 summaryfinanceleasetitle"><?php echo $_smarty_tpl->tpl_vars['calulatorproduct']->value['productTitle'];?>
</h6>
							<h4 class="text-secondary font-weight-semibold mt-0 mb-3 h4 summaryfinanceleaseprice"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['calulatorproduct']->value['productOptionRegularPrice']);?>
</h4>
						   
						  </div>
                      </div>
                     
                    </div>
                  </div>
            
                <div id="lease-calculator-blk" class="d-none payment-outer-block">
                  <div class="container bottom-space">
                       <div class="row">
                       <div class="col-12 col-md-8 border-right pr-lg-4">
                        <button class="btn-outline-secondary continue-btn-calculator cursor-pointer float-right font-small mt-3 mt-md-5 px-3 py-2 text-uppercase"><i class="icon-arrow-left mr-1"></i> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblBacktoSummary'];?>
</button>
                        <h4 class="font-weight-semibold mb-1 text-uppercase mt-3 mt-md-5"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseCalculator'];?>
</h4>
                        <p class="font-normal mb-4 text-muted text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseInTwoStepsMini'];?>
</p>
                     
                        <div class="lease-calculator-box form-blk ">
                          <h6 class="font-weight-semibold mb-4"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStepOneSelectMini'];?>
</h6>
                          <div class="row">
                          <div class="col-12 col-md-4 mb-4 pb-1">
                            <label class="font-normal text-secondary mb-1 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblModel'];?>
</label>
                           
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"seriesLease",'class'=>"form-control",'options'=>($_smarty_tpl->tpl_vars['resBrandCategories']->value['productCategoryID'])."->".($_smarty_tpl->tpl_vars['resBrandCategories']->value['CategoryName']),'value'=>($_smarty_tpl->tpl_vars['resBrandCategories']->value['productCategoryID'])),$_smarty_tpl);?>
 
                          </div>
                          <div class="col-12 col-md-4 mb-4 pb-1">
                            <label class="font-normal text-secondary mb-1 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShortDescription'];?>
</label>
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"form-control",'name'=>"shortDescLease",'options'=>($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productShortDescription'])."->".($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productShortDescription']),'value'=>($_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productShortDescription'])),$_smarty_tpl);?>
 
                          </div>
                          <div class="col-12 col-md-4 mb-4 pb-1">
                            <label class="font-normal text-secondary mb-1 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblVariant'];?>
</label>
								<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"variantLease",'class'=>"form-control",'content'=>$_smarty_tpl->tpl_vars['resvariant']->value),$_smarty_tpl);?>
 							
                          </div>
                          </div>
						   
                          
						  
                        </div>
                     
                      
                      <h6 class="font-weight-semibold mb-4"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseStepTwoLeaseMileageMini'];?>
</h6>
                      <div class="lease-calculator-box form-blk col-md-9 col-12 p-0">
						  <div class="col-12 p-0 mb-4">
							<label class="text-secondary mb-0 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDurationOfLease'];?>
</label>
							<div class="row align-items-center">
							  <div class="col-8 col-md-6 ">
                <div class="rangebox-outer">
                  <div id="durationrangeslider" class="mb-3 mt-4"></div>
                </div>
								<div class="clearfix">
								  <span class="flt-lft">36</span>
                                                                  <span class="flt-rgt">12</span>
								</div>
							  </div>
							  <div class="col-4 col-md-6">
                <div id="duration" class="h6 font-weight-bold m-0"></div>
								<span class="font-normal"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMonths'];?>
</span>
							  </div>
							</div>
						  </div>
						  <div class="col-12 p-0 mb-4">
							<label class="text-secondary mb-0 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMileage'];?>
</label>
							<div class="row align-items-center">
							  <div class="col-8 col-md-6">
                <div class="rangebox-outer">
                  <div id="mileagerangeslider" class="mb-3 mt-4"></div>
                </div>
								<div class="clearfix">
								  <span class="flt-lft">10K</span>
								  <span class="flt-rgt">25K</span>
								</div>
							  </div>
							  <div class="col-4 col-md-6">
								<div id="mileage" class="h6 font-weight-bold m-0"></div>
								<span class="font-normal"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMileage'];?>
</span>
							  </div>
							</div>
						  </div>
						  <div class="col-12 p-0 mb-4">
							<label class="text-secondary mb-2 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTireChange'];?>
</label>
							<div class="row align-items-center">
							  <div class="col-auto">
								<input type="radio" id="yes" name="tirechange" value="yes" class="tirechange" checked="checked"/>
								<label for="yes" class="font-weight-light"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblYes'];?>
</label>
							  </div>
							  <div class="col-auto">
								<input type="radio" id="no" name="tirechange"  value="no"  class="tirechange"/>
								<label for="no" class="font-weight-light"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblNo'];?>
</label>
							  </div>
							</div>
						  </div>
						  <div class="col-sm-8 col-md-6 col-12 pl-0 mb-4">
							<label class="text-secondary mb-1 font-weight-semibold"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAmount'];?>
</label>
							<input type="text" class="form-control" id="leaseRate"  readonly="readonly"/>
						  </div>
						  <div class="col-12 p-0 mb-5">
							<h5 class="text-secondary font-weight-semibold text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDisclaimer'];?>
</h5>
							<p class="font-family-primary"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseDisclaimer'];?>
</p>
						  </div>
						  <div class="col-12 p-0 mb-4">
							<button class="btn-primary continue-btn-calculator  px-4 btn font-normal text-uppercase"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContinue'];?>
</button>
						  </div>
						</div>
                      </div>
                      <div class="col-12 col-md-4 mb-4 pl-lg-4">
							<img  src="" class="img-fluid summaryfinancelease"/>
							<h6  class="text-secondary font-weight-semibold mt-0 mb-3 summaryfinanceleasetitle"><?php echo $_smarty_tpl->tpl_vars['calulatorproduct']->value['productTitle'];?>
</h6>
							<div  class="text-secondary font-weight-semibold mt-0 mb-3 h4 summaryfinanceleaseprice t"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['calulatorproduct']->value['productOptionRegularPrice']);?>
</div>
						   
						  </div>
                      </div>
                    </div>
                  </div>
              </div>
			 
              <div class="tab-pane fade <?php if ((($tmp = @$_smarty_tpl->tpl_vars['fromCart']->value)===null||$tmp==='' ? '' : $tmp)=='Yes'){?> show active <?php }?> payment-outer-block" id="Payment" role="tabpanel" aria-labelledby="Payment-tab">
                <div class="container">
                  <div class="row ">
                  <div class="col-12 mt-4">
                      <div id="checkout_message" class="checkout_message"></div> </div>
                    <div class="col-12 col-lg-7 col-xl-8 pt-5">
                      <?php echo $_smarty_tpl->getSubTemplate ("catalog/default/PaymentTab1.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
                      <?php echo $_smarty_tpl->getSubTemplate ("catalog/default/PaymentTab2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
                      <?php echo $_smarty_tpl->getSubTemplate ("catalog/default/PaymentTab3.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
   
                    </div>
                    <div class="col-12 col-lg-5 col-xl-4 order-last pb-4 border-left pl-lg-5 ">
                      <div class="payment-summary overflow-hidden">
                        <?php echo $_smarty_tpl->getSubTemplate ("catalog/default/PaymentSummary.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
        </div>
     </div>
<?php  $_smarty_tpl->tpl_vars["po"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["po"]->_loop = false;
 $_smarty_tpl->tpl_vars["pokey"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['customOption']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["po"]->key => $_smarty_tpl->tpl_vars["po"]->value){
$_smarty_tpl->tpl_vars["po"]->_loop = true;
 $_smarty_tpl->tpl_vars["pokey"]->value = $_smarty_tpl->tpl_vars["po"]->key;
?>
    <?php  $_smarty_tpl->tpl_vars["vr"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["vr"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['po']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["vr"]->key => $_smarty_tpl->tpl_vars["vr"]->value){
$_smarty_tpl->tpl_vars["vr"]->_loop = true;
?>    
        <?php if ($_smarty_tpl->tpl_vars['vr']->value['isDefault']==1){?>
            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"selectedOptionVariant_".($_smarty_tpl->tpl_vars['po']->value['customOptionID']),'value'=>$_smarty_tpl->tpl_vars['vr']->value['customOptionVariantID']),$_smarty_tpl);?>

            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"selectedOptionVariantImage_".($_smarty_tpl->tpl_vars['po']->value['customOptionID']),'value'=>$_smarty_tpl->tpl_vars['vr']->value['variantThumbImage']),$_smarty_tpl);?>

        <?php }?>
    <?php } ?>
<?php } ?>
      </div>
    
    
    <!-- download product information modal -->
    <?php echo $_smarty_tpl->getSubTemplate ("catalog/default/DownloadProductInfoForm.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

    <!-- download product information modal -->

    <!-- request a call back modal -->
    <?php echo $_smarty_tpl->getSubTemplate ("catalog/default/CallBackRequestForm.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

    <!-- request a call back modal -->

    <!-- End : Outer Pane --> 
      <script src="<?php echo $_smarty_tpl->tpl_vars['common_frontend_js_path']->value;?>
/jquery.mobile-events.js" ></script>
    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('section'=>"Productreview",'id'=>"common_message"),$_smarty_tpl);?>

    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('section'=>"CheckoutSection",'id'=>"checkout_message"),$_smarty_tpl);?>

    <?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script_group_start(array('name'=>($_smarty_tpl->tpl_vars['compiled_js_path']->value)."/catalog.default.product.js"),$_smarty_tpl);?>

    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script(array('src'=>($_smarty_tpl->tpl_vars['common_frontend_js']->value)."/timer.plugin.js"),$_smarty_tpl);?>

        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script(array('src'=>($_smarty_tpl->tpl_vars['common_frontend_js']->value)."/buyNow.js"),$_smarty_tpl);?>

    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->script_group_end(array(),$_smarty_tpl);?>

	<script type="text/javascript">
$( function() {
          $( "#durationrangeslider" ).slider({
              range: 'min',
              min: -36,
              max: -12,
              start:[-36,-36],
              step: 12,
              slide: function(event, ui) {
				$( "#duration" ).html(Math.abs(ui.value));
				leaseCalculator();
              }
          });
          $( "#durationrangeslider" ).slider( "value", -36 )
          $( "#duration" ).html(36);
          $( "#mileagerangeslider" ).slider({
              range: 'min',
              min: 10,
              max: 25,
			  step: 5,
              slide: function(event, ui) {
				$( "#mileage" ).html((ui.value*1000));
				leaseCalculator();
              }
          });
          $( "#mileage" ).html($( "#mileagerangeslider" ).slider( "values", 1 )*1000);
		  
		leaseCalculator();
			
	  $('.tirechange').change(function(){ 
		leaseCalculator();
      });
});
function leaseCalculator() {
if($('#variantLease').val()!= '') {
	var duration 		= $( "#duration" ).text();
	var mileage  		= ($( "#mileage" ).text())/1000;
	var variantCode  	= $('#variantLease').val();
	var tyreChange		= $('input[name=tirechange]:checked').val();
	$.ajax({
		type: "POST",
		url: GLOBAL_BASE_PATH + "/leasecalculator/ajaxGetLeaseRate/",
		data: 'variantCode='+variantCode+'&duration='+duration+'&mileage='+mileage+'&tyreChange='+tyreChange,
		success: function (rate) 
		{   
			if(rate!='')		
			$( "#leaseRate" ).val($.getFormattedCurrency(rate));
			else 
			$( "#leaseRate" ).val('');
		}
	});
}
}
 var processingFeesPercentage 	= '<?php echo $_smarty_tpl->tpl_vars['processingFeesPercentage']->value;?>
';
 var downPaymentPercentage 		= '<?php echo $_smarty_tpl->tpl_vars['downPaymentPercentage']->value;?>
';
var selected_Product_id 		= '<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
';
var finance_term                    =   '<?php echo $_smarty_tpl->tpl_vars['finance_term']->value;?>
';
$( function() {
		  $( "#monthlyPayment" ).html($.getFormattedCurrency(0));
          $( "#donwpaymentrangeslider" ).slider({
              range: 'min',
              min: parseInt(downPaymentPercentage),
              max: 100,
              step: 1,
              slide: function(event, ui) {
				$( "#downpaymentval" ).html(ui.value);
				financeRateCalculator();
              }
          });
          $( "#termrangeslider" ).slider({
              range: 'min',
              min: -1*finance_term,
              max: -6,
              start:[-1*finance_term,-1*finance_term],
              step: 6,
              slide: function(event, ui) {
				$( "#termlength" ).html(Math.abs(ui.value));
				financeRateCalculator();
              }
          });
          //alert($( "#termrangeslider" ).slider( "values", 1 )+" dddd "+$( "#termrangeslider" ).slider( "values", 10 )+"pp"+finance_term);
        $( "#termrangeslider" ).slider( "value", -1*finance_term )  ;
        $( "#termlength" ).html(finance_term);//$( "#termrangeslider" ).slider( "values", 1 )
		  
			var variantCode 	= $('#variant option:selected').val(); 
			$.ajax({
			type: "POST",
			url: GLOBAL_BASE_PATH + "/financecalculator/ajaxGetFinanceRate/",
			data: 'variantCode='+variantCode,
			success: function (data) 
			{          		
				var obj = JSON.parse(data);
				$( "#detailedDesc" ).html(obj.detailedDescription);
				if(obj.financeRate!='')
				$( "#finRate" ).val(obj.financeRate+'%');
				financeRateCalculator();
			}
		});
			
  });
function financeRateCalculator() {
	var mainPrice 				= $('#variant option:selected').attr("price");
	if($('#variant').val()!= '' && mainPrice>0) {
	var downpaymentvalslider	= $( "#downpaymentval" ).text();
	var downPayment				= (mainPrice *  downpaymentvalslider)/100;
	var financeAmount			=  mainPrice - downPayment;
	<!-- if(financeAmount <  50000) { -->
		  <!-- var differenceValue 	= 50000 - financeAmount; -->
		  <!-- downPayment			= downPayment - differenceValue; -->
		  <!-- financeAmount			= financeAmount + differenceValue; -->
	 <!-- } -->
	var processingFees			= (financeAmount *  processingFeesPercentage)/100;
	if(processingFees >= 2500) {
		processingFees			= 2500 * 1.05; 
	} else if(processingFees <= 500) {
		processingFees			= 500 * 1.05; 
	}
	var totalFinanceAmount		= financeAmount + processingFees;
	var financeTerm				= $( "#termlength" ).text();
	var financeRate				= $( "#finRate" ).val();
	if(financeRate.indexOf("%")>= 0) {
		var array = financeRate.split('%');
		financeRate = array[0];
	}
	if(financeRate!='') 	{		
			financeRate		= financeRate/100;
		installment			= ((totalFinanceAmount*financeRate*financeTerm/12)+totalFinanceAmount+200)/financeTerm;
	} else
		installment 			= 0;
	installment			= Math.round(installment);	
	downPayment			= Math.round(downPayment);	
	$( "#monthlyPayment" ).html($.getFormattedCurrency(installment));
	$( "#donwpaymentamount" ).html(downPayment);
	}
}
</script>
    <script type="text/javascript">	
        var encodedCustomOption = <?php echo $_smarty_tpl->tpl_vars['encodedCustomOption']->value;?>
;
        var selectedProductID = <?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
;
        var productCurrency = <?php echo $_smarty_tpl->tpl_vars['productDefaultCurrency']->value;?>
;
        var encodedCombinations = <?php echo $_smarty_tpl->tpl_vars['encodedCombinations']->value;?>
;
        var categoryID ='<?php echo (($tmp = @$_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productCategoryID'])===null||$tmp==='' ? 0 : $tmp);?>
';
        var productID =<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
;
        var productOptionID =   <?php echo $_smarty_tpl->tpl_vars['resultProductProduct']->value[0]['productOptionID'];?>

        var selectedProductCategoryID ='<?php echo (($tmp = @$_smarty_tpl->tpl_vars['resBreadcrumbs']->value[0]['productCategoryID'])===null||$tmp==='' ? 0 : $tmp);?>
';
        var detailPageProductID ='<?php echo $_smarty_tpl->tpl_vars['selectedProductID']->value;?>
';
       
    </script>	
    <script type="text/javascript">
      $(document).on('click', '.view-more-btn', function(e){
        e.preventDefault();
            $(".poduct-detail-specification-list").toggleClass("active");
            $(this).toggleClass('active');
      });

      $( document ).ready(function() {
            <?php if ((($tmp = @$_smarty_tpl->tpl_vars['fromCart']->value)===null||$tmp==='' ? '' : $tmp)=='Yes'){?>
                    $('#Payment-tab').trigger('click');
            <?php }?>        
          $(".myCarPackages").vc3dEye({
		imagePath:"<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_<?php echo $_smarty_tpl->tpl_vars['setdefaultimagecode']->value;?>
_",
		totalImages:35,
		imageExtension:"jpeg"
	});
        
          //On clicking tab change 
            $('.custopts').click(function(){
                $(".pop_loader").removeClass('hide');
                        
                        if($(this).attr('aria-controls') != 'Upholstery' && $(this).attr('aria-controls') != 'Trim' && $(this).attr('aria-controls') != 'Stripe' && $(this).attr('aria-controls') != 'Roof' ){
                            var imageType   =   'extr';
                        }else{
                            if($(this).attr('aria-controls') == 'Trim'){
                                var imageType   =   'trim';
                            }else if($(this).attr('aria-controls') == 'Stripe'){
                                var imageType   =   'stripe';
                            }else if($(this).attr('aria-controls') == 'Roof'){
                                var imageType   =   'bonnet';
                            }else{
                                var imageType   =   'intr';
                            }
                        }
                        updatecarimages(imageType,$(this).attr('aria-controls'));
                        $(".pop_loader").addClass('hide');
                });
        });
        function updatecarimages(imageType,imageSection){
        
                        var sku =   products[0].optionSKU;
                        var skuarr  =   sku.split('-');
                        $('.custopts').each(function(){
                            if($(this).attr('rel')){
                               
                                
                                custoptids  =   $(this).attr('rel');
                                //console.log(custoptids);
                                //optiondetails   =   encodedCustomOption.filter(function (person) { return person.customOptionID == custoptids });
                                optiondetails   =   filterOpt(encodedCustomOption,'customOptionID',custoptids);
                                //vardetails  =   optiondetails[0].variants.filter(function (person) { return person.customOptionVariantID == $('#option_'+productID+'_'+custoptids).val() });
                               //  console.log($('#hidoption_'+productID+'_'+custoptids).val());
            if($('#hidoption_'+productID+'_'+custoptids).val()!='') {
                                    vardetails  =   filterOpt(optiondetails.variants,'customOptionVariantID',$('#hidoption_'+productID+'_'+custoptids).val())
                                   
                                    variantCode =   vardetails.variantCode;
                                    if(optiondetails.customOptionName!='Wheel' && optiondetails.customOptionName!='Trim')
                                        skuarr.push(variantCode);
                                }
                            }
                        });
                        var data = new Object();
                        data.imagecode = skuarr.join('_');
                        data.imagetype = imageType;
                        $(".pop_loader").removeClass('hide');
                        $.ajax({
                            url: GLOBAL_BASE_PATH + "/product/loadingProductImages/",
                            type: "POST",
                            cache: false,
                            async: true,
                            global: false,
                            data: data,
                            success: function (list) {
                                $(".pop_loader").addClass('hide');
                                setTimeout(commonSpriteUpdate(list,imageSection,skuarr.join('_')), 200000)
                            }
                        });
        }
        
        function commonSpriteUpdate(list,imageSection,imagecode){
            $(".myCarColor").css("background-image", "url(" + "<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_280.jpeg)");
            $(".myCarPackages").css("background-image", "url(" + "<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_280.jpeg)");
            $(".myCarWheel").css("background-image", "url(" + "<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_280.jpeg)");
            $(".myCarShowroom").css("background-image", "url(" + "<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_280.jpeg)");
            $('#summury-main-blk img').attr('src',"<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_30.jpeg");
            $('#payment-summary img').attr('src',"<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_30.jpeg");
            if(imageSection != 'Trim')
            $('#panotrim').attr('src',"product/standalone/?panorama=<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_panorama_"+imagecode+"_180.jpeg&autoLoad=true&preview=<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_trim_"+imagecode+"_180.jpeg")
        if(imageSection != 'Upholstery' && imageSection != 'Trim' && imageSection != 'Stripe' && imageSection != 'Roof')    
        {
            
            if($('a[href="#'+imageSection+'"]').hasClass("active")){
            $(".myCar"+imageSection).vc3dEye({
		imagePath:"<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_",
		totalImages:35,
		imageExtension:"jpeg"
            });
            
            }else{
               /*  $('a[href="#'+imageSection+'"]').on('shown.bs.tab', function (e) {
            console.log('system:'+"<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_");   
                $(".myCar"+imageSection).vc3dEye({
                    imagePath:"<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/large/image_extr_"+imagecode+"_",
                    totalImages:35,
                    imageExtension:"jpeg"
                });
            });*/
            }
            
            
        }else{
            
            $('.'+imageSection+'img').attr('style','background-image:url('+list+')');
        }
      }
     
      $(document).on('click', '#finance-calculator', function(e){
        e.preventDefault();
        $("#summury-main-blk").addClass("d-none");
        $("#finance-calculator-blk").removeClass("d-none");
      });
      $(document).on('click', '#lease-calculator', function(e){
        e.preventDefault();
        $("#summury-main-blk").addClass("d-none");
        $("#lease-calculator-blk").removeClass("d-none");
      });
      $(document).on('click', '#Summary-tab', function (e) {
        $("#finance-calculator-blk, #lease-calculator-blk").addClass("d-none");
        $("#summury-main-blk").removeClass("d-none");
      });
      $(document).on('input', '.otp-input-blk input', function () {
        if($(this).val().length == $(this).attr('maxlength')) {
          $(this).parent().next().find('input').focus();
        }
	    });
      $(document).on('keydown', '.otp-input-blk input', function(e) {
        if ((e.which == 8 || e.which == 46) && $(this).val() =='') {
            $(this).parent().prev().find('input').focus();
        }
      });
      $(document).on('change', 'input[name=payment]', function () {
        var selected = $(this).attr('id');
        $(".payment-type-blk").addClass("d-none");
        $("."+selected).removeClass("d-none");
      });
      $("#to-payment-screen-2").click(function(){
          $('#payUserName,#payUserEmail,#payUserPhone').blur();
            checkAgree(3);
            if($('.message_validation:visible').length>0){
                return false;
            }else{
               sendPayOTPData();
            }
      });
      $("#to-payment-screen-3").click(function(){
         if($('#payuserotp1').val()==''||$('#payuserotp2').val()==''||$('#payuserotp3').val()==''||$('#payuserotp4').val()==''){
              $('.otp_pay_validateion_error').removeClass('hide');
              return false;
          }
          else{
            checkSubmittedOTPPay();
        }
      });
      $(document).on("click", ".summary-btn", function() {
          $('html,body').animate({
              scrollTop: $(".payment-summary").offset().top - 100
              },'slow');
      });
      $('#payuserotp1,#payuserotp2,#payuserotp3,#payuserotp4').blur(function(){
          $('.otp_pay_validateion_error').addClass('hide');
      });
if ($(window).width() > 1024) {
     function contentHeight(){
         var detailOuterHeight = $(window).outerHeight() - $("header").outerHeight() - 140;
         var paymentOuterBlock = $(window).outerHeight() - $("header").outerHeight() - $(".product-detail-head").outerHeight();
         $(".detail-outer-block").css('height',detailOuterHeight);
         $(".myCarPackages,.myCarColor,.myCarWheel,.myCarShowroom").css('height',detailOuterHeight-150);
         $(".product-detail-container").css('height',detailOuterHeight-150);
         $(".poduct-detail-specification-list").css('height',detailOuterHeight-200);
         $(".summary-left").css('height',detailOuterHeight-100);
         $(".payment-outer-block").css('height',paymentOuterBlock);
     }
    $(document).ready(contentHeight);
    $(window).on('resize',contentHeight);
    $('.poduct-detail-specification-list').mCustomScrollbar({
        theme: "rounded-dark",
        
        scrollButtons: {
            enable: false,
        }
    });  
    $('.summary-left').mCustomScrollbar({
        theme: "rounded-dark",
        
        scrollButtons: {
            enable: false,
        }
    });
}
             $(".img-outer-block img:first").addClass("first");
             
             function filterOpt(mainarr,customVariable,searchres){
                 for(i=0;i<mainarr.length;i++){
                     if(mainarr[i][customVariable] == searchres){
                         return mainarr[i];
                     }
                }
             }
    </script>
    <?php echo $_smarty_tpl->tpl_vars['cartToJsInit']->value;?>

  </body>
</html>

<?php }} ?>