<?php /* Smarty version Smarty-3.1.8, created on 2020-12-10 13:57:52
         compiled from "/home/agmc/beta/application/core/views/frontend/mini/AjaxCustomDetails.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12564732465e26c2406f1964-22744601%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bed0ae160439debf834b934ebc22ef76b7520bd6' => 
    array (
      0 => '/home/agmc/beta/application/core/views/frontend/mini/AjaxCustomDetails.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12564732465e26c2406f1964-22744601',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e26c2407293e2_58122194',
  'variables' => 
  array (
    'custOptionDet' => 0,
    'Ccust' => 0,
    'custname' => 0,
    'hidCustName' => 0,
    'language' => 0,
    'showCustName' => 0,
    'custOptionsArr' => 0,
    'custOptionsValue' => 0,
    'custCode' => 0,
    'custOptionID' => 0,
    'readOnlyVarCust' => 0,
    'attrOptCheckedCust' => 0,
    'view_public_path' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e26c2407293e2_58122194')) {function content_5e26c2407293e2_58122194($_smarty_tpl) {?><?php $_smarty_tpl->tpl_vars["Ccust"] = new Smarty_variable("0", null, 0);?>
                <?php $_smarty_tpl->tpl_vars["hidCustName"] = new Smarty_variable('', null, 0);?>
                <?php if (count($_smarty_tpl->tpl_vars['custOptionDet']->value)>0){?>
                    <?php  $_smarty_tpl->tpl_vars["custOptionsArr"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["custOptionsArr"]->_loop = false;
 $_smarty_tpl->tpl_vars["custname"] = new Smarty_Variable;
 $_from = (($tmp = @$_smarty_tpl->tpl_vars['custOptionDet']->value)===null||$tmp==='' ? array() : $tmp); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["custOptionsArr"]->key => $_smarty_tpl->tpl_vars["custOptionsArr"]->value){
$_smarty_tpl->tpl_vars["custOptionsArr"]->_loop = true;
 $_smarty_tpl->tpl_vars["custname"]->value = $_smarty_tpl->tpl_vars["custOptionsArr"]->key;
?>
                        <?php if ($_smarty_tpl->tpl_vars['Ccust']->value<=0){?>
                            <?php $_smarty_tpl->tpl_vars["hidCustName"] = new Smarty_variable($_smarty_tpl->tpl_vars['custname']->value, null, 0);?>
                        <?php }else{ ?>
                            <?php $_smarty_tpl->tpl_vars["hidCustName"] = new Smarty_variable((($_smarty_tpl->tpl_vars['hidCustName']->value).("~")).($_smarty_tpl->tpl_vars['custname']->value), null, 0);?>
                        <?php }?>
                        <div class="FltrSctn py-2 border-bottom ajax-cust">
                            <?php if (mb_strtolower($_smarty_tpl->tpl_vars['custname']->value, 'UTF-8')=='color'){?>
                                <?php $_smarty_tpl->tpl_vars["showCustName"] = new Smarty_variable(($_smarty_tpl->tpl_vars['language']->value['lblColor']), null, 0);?>
                            <?php }else{ ?>
                                <?php $_smarty_tpl->tpl_vars["showCustName"] = new Smarty_variable(($_smarty_tpl->tpl_vars['language']->value['lblUpholstery']), null, 0);?>
                            <?php }?>
                            
                            <h5 class="expand-clsps font-weight-bold m-0  pt-2"><span class="openListing spriteImg"></span><?php echo $_smarty_tpl->tpl_vars['showCustName']->value;?>
</h5>
                            <div class="list-wrap">
							<?php if (count($_smarty_tpl->tpl_vars['custOptionsArr']->value)>5){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"attrSearchCustFilter_".($_smarty_tpl->tpl_vars['custname']->value),'class'=>"attrSearchCustFilter form-control my-3 py-2",'rel'=>($_smarty_tpl->tpl_vars['custname']->value),'placeholder'=>$_smarty_tpl->tpl_vars['language']->value['lblRefine']),$_smarty_tpl);?>

							<?php }?>
        <div class="listMenu listMenuScroll slip scrollbox scrollbox_small">							
            <ul class="attrCustOptionList_<?php echo $_smarty_tpl->tpl_vars['custname']->value;?>
 list-unstyled mb-0">
            <?php  $_smarty_tpl->tpl_vars["custOptionsValue"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["custOptionsValue"]->_loop = false;
 $_from = (($tmp = @$_smarty_tpl->tpl_vars['custOptionsArr']->value)===null||$tmp==='' ? array() : $tmp); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["custOptionsValue"]->key => $_smarty_tpl->tpl_vars["custOptionsValue"]->value){
$_smarty_tpl->tpl_vars["custOptionsValue"]->_loop = true;
?>

                            <?php $_smarty_tpl->tpl_vars["custOptionID"] = new Smarty_variable(($_smarty_tpl->tpl_vars['custOptionsValue']->value[1]), null, 0);?>
                <li>
                    
                   <?php $_smarty_tpl->tpl_vars["readOnlyVarCust"] = new Smarty_variable('', null, 0);?>                  
                   <?php $_smarty_tpl->tpl_vars["attrOptCheckedCust"] = new Smarty_variable('', null, 0);?>

                     <?php if ((($tmp = @$_smarty_tpl->tpl_vars['custCode']->value)===null||$tmp==='' ? '' : $tmp)){?>
                        <?php if (in_array($_smarty_tpl->tpl_vars['custOptionID']->value,$_smarty_tpl->tpl_vars['custCode']->value)){?>
                            <?php $_smarty_tpl->tpl_vars["attrOptCheckedCust"] = new Smarty_variable("checked", null, 0);?> 
                        
                        <?php }?>                     
                     <?php }?>
                    
                    <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['custOptionID']->value;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['attrOptCheckedCust']->value;?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('disabled'=>($_smarty_tpl->tpl_vars['readOnlyVarCust']->value),'refinehead'=>$_smarty_tpl->tpl_vars['custname']->value,'refineval'=>($_smarty_tpl->tpl_vars['custOptionsValue']->value[0]),'id'=>"searchCustOptID_".($_smarty_tpl->tpl_vars['custOptionID']->value),'class'=>"searchCustOptID_".($_smarty_tpl->tpl_vars['custname']->value)." custsearch",'name'=>"searchCustOptID_".($_smarty_tpl->tpl_vars['custname']->value)."[]",'value'=>$_tmp1,'checked'=>$_tmp2,'rel'=>$_smarty_tpl->tpl_vars['custname']->value),$_smarty_tpl);?>

                    <label class="attributeSearchLabel font-weight-normal my-2" disabled="<?php echo $_smarty_tpl->tpl_vars['readOnlyVarCust']->value;?>
" id="searchCustLabel_<?php echo $_smarty_tpl->tpl_vars['custname']->value;?>
" for="searchCustOptID_<?php echo $_smarty_tpl->tpl_vars['custOptionID']->value;?>
">
                    <span class="d-flex">
                    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['custOptionsValue']->value[2])===null||$tmp==='' ? '' : $tmp)!=''){?>
                        <img src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/custom-option-variant/<?php echo $_smarty_tpl->tpl_vars['custOptionsValue']->value[2];?>
" width="87" height="32" alt="<?php echo $_smarty_tpl->tpl_vars['custOptionsValue']->value[0];?>
" class="img-fluid mr-2 pr-1"/>
                    <?php }?>
                    <?php echo $_smarty_tpl->tpl_vars['custOptionsValue']->value[0];?>
</span></label>
                </li>															
            <?php } ?>
            </ul>							
            </div>
                            </div>
                        </div>
                            <?php $_smarty_tpl->tpl_vars["Ccust"] = new Smarty_variable($_smarty_tpl->tpl_vars['Ccust']->value+1, null, 0);?>
                     <?php } ?>
                <?php }?>
                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidCustName",'value'=>$_smarty_tpl->tpl_vars['hidCustName']->value),$_smarty_tpl);?>
<?php }} ?>