<?php /* Smarty version Smarty-3.1.11, created on 2025-02-20 09:03:25
         compiled from "../views/default/salesreportview/productsbills.html" */ ?>
<?php /*%%SmartyHeaderCode:42389075067b6d3bde10162-65001460%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a5429cea802beb83987a3346fed58cc5de2bddee' => 
    array (
      0 => '../views/default/salesreportview/productsbills.html',
      1 => 1740000151,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '42389075067b6d3bde10162-65001460',
  '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_67b6d3bde90f94_34538848',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67b6d3bde90f94_34538848')) {function content_67b6d3bde90f94_34538848($_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 }} ?>