<?php /* Smarty version Smarty-3.1.11, created on 2025-02-12 03:40:48
         compiled from "../views/default/productview/catchilds.html" */ ?>
<?php /*%%SmartyHeaderCode:151841100567abfc20071111-95588177%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7da68eb883b463e6a8214a510f3f28712a6deddf' => 
    array (
      0 => '../views/default/productview/catchilds.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '151841100567abfc20071111-95588177',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'level' => 0,
    'catDataReport' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67abfc200fa345_67515661',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67abfc200fa345_67515661')) {function content_67abfc200fa345_67515661($_smarty_tpl) {?><div >
    <label class="sr-only">تصنيف المنتج</label>
    <select class="select2 wdt300 productCatt" data-level="<?php echo $_smarty_tpl->tpl_vars['level']->value;?>
"  name="productCatId<?php echo $_smarty_tpl->tpl_vars['level']->value;?>
" id="productCatId<?php echo $_smarty_tpl->tpl_vars['level']->value;?>
" >
        <option value="-1">اختر تصنيف</option>
        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['catDataReport']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
        <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatId;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>
</option>
        <?php } ?>
    </select>
</div>

<script>
    var levelhere = $('#level').val();
    $('#productCatId' + levelhere).select2();
</script>
<?php }} ?>