<?php /* Smarty version Smarty-3.1.11, created on 2025-09-07 10:45:26
         compiled from "..\views\default\salesreportview\productsbills.html" */ ?>
<?php /*%%SmartyHeaderCode:482268bd38169b7a59-68449458%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b4af3ad9252c8f809f6200d61d237325e4677a04' => 
    array (
      0 => '..\\views\\default\\salesreportview\\productsbills.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '482268bd38169b7a59-68449458',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'itr' => 0,
    'catData' => 0,
    'products' => 0,
    'data' => 0,
    'aw_i' => 0,
    'tabindexnum' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_68bd3816bb93e5_74230871',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_68bd3816bb93e5_74230871')) {function content_68bd3816bb93e5_74230871($_smarty_tpl) {?>
<div id="productIdDiv_<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" style="display: inline">
    <input type="hidden" name="proIsOptic_<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" id="proIsOptic_<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" value=""/>
    <select class="select2 wdt300 productchange" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" name="product<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" id="product<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
">
        <?php if ($_smarty_tpl->tpl_vars['catData']->value->isOptic==2){?>
        <option value="-1">اختر مقاس/لون</option>
        <?php }else{ ?>
        <option value="-1">اختر منتج</option>
        <?php }?>

        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['products']->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->productId;?>
" data-optic="<?php echo $_smarty_tpl->tpl_vars['data']->value->isOptic;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value->productName;?>
</option>
        <?php } ?>
    </select>
    <div id='tobedel'>
        <input type="hidden" name="current_itr" id="current_itr" value="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
"/>
    </div>
    <input type="hidden" name="aw_i_f_<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" id="aw_i_f_<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['aw_i']->value;?>
"/>
    <input type="hidden" name="tabindexnum_f_<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" id="tabindexnum_f_<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['tabindexnum']->value;?>
"/>


</div>

<script>
    var rowitr = $('#current_itr').val();
    $('#tobedel').remove();
    $('#product' + rowitr).select2();

</script>
<?php }} ?>