<?php /* Smarty version Smarty-3.1.8, created on 2019-12-24 15:24:56
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/frontend/mini/AjaxPriceRanges.tpl" */ ?>
<?php /*%%SmartyHeaderCode:13062759965da71b6be01358-27136541%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dca055111716aa168477d5810993cb3bfb33c315' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/frontend/mini/AjaxPriceRanges.tpl',
      1 => 1577180532,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13062759965da71b6be01358-27136541',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da71b6be62225_84655706',
  'variables' => 
  array (
    'priceRanges' => 0,
    'emiRanges' => 0,
    'priceRangeEnabled' => 0,
    'language' => 0,
    'priceMinQueryString' => 0,
    'priceMaxQueryString' => 0,
    'emiRangeEnabled' => 0,
    'emiMinQueryString' => 0,
    'emiMaxQueryString' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da71b6be62225_84655706')) {function content_5da71b6be62225_84655706($_smarty_tpl) {?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['priceRanges']->value['MAXIMUM'])===null||$tmp==='' ? '' : $tmp)!=(($tmp = @$_smarty_tpl->tpl_vars['priceRanges']->value['MINIMUM'])===null||$tmp==='' ? '' : $tmp)){?>
    <?php $_smarty_tpl->tpl_vars["priceRangeEnabled"] = new Smarty_variable("1", null, 0);?>
<?php }?> 
<?php if ((($tmp = @$_smarty_tpl->tpl_vars['emiRanges']->value['MAXIMUM'])===null||$tmp==='' ? '' : $tmp)!=(($tmp = @$_smarty_tpl->tpl_vars['emiRanges']->value['MINIMUM'])===null||$tmp==='' ? '' : $tmp)){?>
    <?php $_smarty_tpl->tpl_vars["emiRangeEnabled"] = new Smarty_variable("1", null, 0);?>
<?php }?> 
<?php if ((($tmp = @$_smarty_tpl->tpl_vars['priceRangeEnabled']->value)===null||$tmp==='' ? '' : $tmp)=='1'){?> 
	 <div class="FltrSctn py-2 border-bottom priceRangeDiv">
	<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('caption'=>$_smarty_tpl->tpl_vars['language']->value['lblReset'],'class'=>"clearPriceRange float-right mt-2"),$_smarty_tpl);?>

	<h5 class="expand-clsps font-weight-bold pb-1">
	<span class="openListing"></span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPriceRange'];?>
						
	</h5>
	<div class="list-wrap wrap mt-2">

        <p class="font-xsmall font-weight-bold mb-4 pb-2 text-muted d-flex flex-wrap align-items-center"><span class="text-capitalize mr-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFrom'];?>
</span><span class="text-primary mr-1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['priceRanges']->value['MINIMUM']);?>
</span><span class="mr-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTo'];?>
</span><span class="text-primary mr-1"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency($_smarty_tpl->tpl_vars['priceRanges']->value['MAXIMUM']);?>
</span></p>

	<div class="pricerange-bx">
		<div align="center">
			<!-- <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"price-amount",'disabled'=>"disabled"),$_smarty_tpl);?>
 -->
            <div id="price-amount" class="hide"></div>
			<?php if (isset($_smarty_tpl->tpl_vars['priceMinQueryString']->value)&&$_smarty_tpl->tpl_vars['priceMinQueryString']->value){?>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('refinehead'=>$_smarty_tpl->tpl_vars['language']->value['lblPriceRange'],'name'=>"price-amount-min",'value'=>floor($_smarty_tpl->tpl_vars['priceMinQueryString']->value)),$_smarty_tpl);?>

			<?php }else{ ?>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('refinehead'=>$_smarty_tpl->tpl_vars['language']->value['lblPriceRange'],'name'=>"price-amount-min",'value'=>(($tmp = @floor($_smarty_tpl->tpl_vars['priceRanges']->value['MINIMUM']))===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

			<?php }?>
			<?php if (isset($_smarty_tpl->tpl_vars['priceMaxQueryString']->value)&&$_smarty_tpl->tpl_vars['priceMaxQueryString']->value){?>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('refinehead'=>$_smarty_tpl->tpl_vars['language']->value['lblPriceRange'],'name'=>"price-amount-max",'value'=>ceil($_smarty_tpl->tpl_vars['priceMaxQueryString']->value)),$_smarty_tpl);?>

			<?php }else{ ?>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('refinehead'=>$_smarty_tpl->tpl_vars['language']->value['lblPriceRange'],'name'=>"price-amount-max",'value'=>(($tmp = @ceil($_smarty_tpl->tpl_vars['priceRanges']->value['MAXIMUM']))===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

			<?php }?>
		</div>
		<div id="price-range" class="mx-1"></div>
		<div class="d-flex justify-content-between my-4">
            <div id="price-range-min" class="text-muted font-xsmall font-weight-bold "></div>
            <div id="price-range-max" class="text-muted font-xsmall font-weight-bold"></div>
        </div>
	</div>
	</div>
	</div>
	<?php }?>
	<?php if ((($tmp = @$_smarty_tpl->tpl_vars['emiRangeEnabled']->value)===null||$tmp==='' ? '' : $tmp)=='1'){?> 
    <div class="FltrSctn py-2 border-bottom priceRangeDiv"> 
        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('caption'=>$_smarty_tpl->tpl_vars['language']->value['lblReset'],'class'=>"clearPriceEmiRange float-right mt-2"),$_smarty_tpl);?>

        <h5 class="expand-clsps font-weight-bold pb-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinance'];?>
</h5>
 <div id="emi-amount" class="hide"></div>
<?php if (isset($_smarty_tpl->tpl_vars['emiMinQueryString']->value)&&$_smarty_tpl->tpl_vars['emiMinQueryString']->value){?>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('refinehead'=>$_smarty_tpl->tpl_vars['language']->value['lblFinance'],'name'=>"emi-amount-min",'value'=>floor($_smarty_tpl->tpl_vars['emiMinQueryString']->value)),$_smarty_tpl);?>

			<?php }else{ ?>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('refinehead'=>$_smarty_tpl->tpl_vars['language']->value['lblFinance'],'name'=>"emi-amount-min",'value'=>(($tmp = @floor($_smarty_tpl->tpl_vars['emiRanges']->value['MINIMUM']))===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

			<?php }?>
			<?php if (isset($_smarty_tpl->tpl_vars['emiMaxQueryString']->value)&&$_smarty_tpl->tpl_vars['emiMaxQueryString']->value){?>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('refinehead'=>$_smarty_tpl->tpl_vars['language']->value['lblFinance'],'name'=>"emi-amount-max",'value'=>ceil($_smarty_tpl->tpl_vars['emiMaxQueryString']->value)),$_smarty_tpl);?>

			<?php }else{ ?>
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('refinehead'=>$_smarty_tpl->tpl_vars['language']->value['lblFinance'],'name'=>"emi-amount-max",'value'=>(($tmp = @ceil($_smarty_tpl->tpl_vars['emiRanges']->value['MAXIMUM']))===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

			<?php }?>
        <div class="list-wrap wrap mt-2">
            <p class="font-xsmall font-weight-bold mb-4 pb-2 text-muted d-flex align-items-center flex-wrap"><span class="text-capitalize mr-1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEmiPerMonth'];?>
</span><i class="icon-info" data-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceEMIinfo'];?>
"></i></p>
            <div class="pricerange-bx">
                <div id="financerangeslider" class="mx-1"></div>
                <div class="d-flex justify-content-between mt-4">
                    <div id="emi-range-min" class="text-muted font-xsmall font-weight-bold font-family-secondary"></div>
                    <div id="emi-range-max" class="text-muted font-xsmall font-weight-bold font-family-secondary"></div>
                </div>
            </div>
        </div>
    </div>
<?php }?>
<script type="text/javascript">
    
         <?php if ((($tmp = @$_smarty_tpl->tpl_vars['priceRanges']->value['MINIMUM'])===null||$tmp==='' ? '' : $tmp)&&(($tmp = @$_smarty_tpl->tpl_vars['priceRanges']->value['MAXIMUM'])===null||$tmp==='' ? '' : $tmp)){?>	
         var __priceRangeMin = <?php echo floor($_smarty_tpl->tpl_vars['priceRanges']->value['MINIMUM']);?>
;
         var __priceRangeMax = <?php echo ceil($_smarty_tpl->tpl_vars['priceRanges']->value['MAXIMUM']);?>
;	
         var __priceRangeMinCustom = '';
         var __priceRangeMaxCustom = '';
         <?php if ($_smarty_tpl->tpl_vars['priceMinQueryString']->value){?>
         __priceRangeMinCustom = <?php echo $_smarty_tpl->tpl_vars['priceMinQueryString']->value;?>
;
         <?php }?>
         <?php if ($_smarty_tpl->tpl_vars['priceMaxQueryString']->value){?>
         __priceRangeMaxCustom = <?php echo $_smarty_tpl->tpl_vars['priceMaxQueryString']->value;?>
;
         <?php }?>
         <?php }?>
             
         <?php if ((($tmp = @$_smarty_tpl->tpl_vars['emiRanges']->value['MINIMUM'])===null||$tmp==='' ? '' : $tmp)!=''&&(($tmp = @$_smarty_tpl->tpl_vars['emiRanges']->value['MAXIMUM'])===null||$tmp==='' ? '' : $tmp)){?>	
         var __emiRangeMin = <?php echo floor($_smarty_tpl->tpl_vars['emiRanges']->value['MINIMUM']);?>
;         
         var __emiRangeMax = <?php echo ceil($_smarty_tpl->tpl_vars['emiRanges']->value['MAXIMUM']);?>
;	
         var __emiRangeMinCustom = '';
         var __emiRangeMaxCustom = '';
         <?php if ($_smarty_tpl->tpl_vars['emiMinQueryString']->value){?>
         __emiRangeMinCustom = <?php echo $_smarty_tpl->tpl_vars['emiMinQueryString']->value;?>
;
         <?php }?>
         <?php if ($_smarty_tpl->tpl_vars['emiMaxQueryString']->value){?>
         __emiRangeMaxCustom = <?php echo $_smarty_tpl->tpl_vars['emiMaxQueryString']->value;?>
;
         <?php }?>
         <?php }?>
</script><?php }} ?>