<?php /* Smarty version Smarty-3.1.11, created on 2024-07-15 17:20:45
         compiled from "..\views\default\productview\catchilds.html" */ ?>
<?php /*%%SmartyHeaderCode:2791366953e4d95e581-11034551%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '84c69023e61de7124b89dba57522d8b8c5dfdc66' => 
    array (
      0 => '..\\views\\default\\productview\\catchilds.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2791366953e4d95e581-11034551',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'level' => 0,
    'catDataReport' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66953e4d98f5c0_92015534',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66953e4d98f5c0_92015534')) {function content_66953e4d98f5c0_92015534($_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 }} ?>