<?php /* Smarty version Smarty-3.1.11, created on 2025-02-20 00:11:37
         compiled from "../views/default/productview/catUnits.html" */ ?>
<?php /*%%SmartyHeaderCode:571998223679925845e6940-28362349%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7db5324397efb68c9573e59d26b00b7ad54e54e4' => 
    array (
      0 => '../views/default/productview/catUnits.html',
      1 => 1740000155,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '571998223679925845e6940-28362349',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6799258465c800_11547478',
  'variables' => 
  array (
    'unitItr' => 0,
    'catUnitsData' => 0,
    'productItr' => 0,
    'j' => 0,
    'unitsData' => 0,
    'unit' => 0,
    'cat' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6799258465c800_11547478')) {function content_6799258465c800_11547478($_smarty_tpl) {?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['unitItr']->value;?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_tmp1, null, 0);?>

<?php  $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cat']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['catUnitsData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value){
$_smarty_tpl->tpl_vars['cat']->_loop = true;
?>
<tr>
    <td>
        <div>
            <label class="control-label">وحدة القياس</label>
            <select name="productunit<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="productunit<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" data-placeholder="اختر"  class="select2 wdt100 chosenproduct" >
                <option value="-1">اختر وحدة القياس</option>
                <?php  $_smarty_tpl->tpl_vars['unit'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['unit']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['unitsData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['unit']->key => $_smarty_tpl->tpl_vars['unit']->value){
$_smarty_tpl->tpl_vars['unit']->_loop = true;
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['unit']->value->unitId;?>
" <?php if ($_smarty_tpl->tpl_vars['cat']->value->unitid==$_smarty_tpl->tpl_vars['unit']->value->unitId){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['unit']->value->unitName;?>
</option>
                <?php } ?>
            </select>
        </div>
    </td>
    <td>
        <div>
            <label class="control-label">عدد الوحدات</label>
            <input name="productnumber<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="productnumber<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="text" class="form-control numberinput" value="<?php echo $_smarty_tpl->tpl_vars['cat']->value->productnumber;?>
" />
        </div>
    </td>
    <td>
        <div>
            <label class="control-label">الباركود</label>
            <input name="proUnitParcode<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="proUnitParcode<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="text" class="form-control numberinput positiveNo" value="" data-unit-itr="<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" data-unitid-itr="<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" onblur="checkUnitbarcodewithid(this.value, $(this).data('unitid-itr'), $(this).data('unit-itr'));"/>
        </div>
    </td>
    <td>
        <div>
            <label class="control-label">سعر الشراء</label>
            <input name="proUnitBuyPrice<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="proUnitBuyPrice<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="text" class="form-control positivefloat" value=""/>
        </div>
    </td>
    <td>
        <div>
            <label class="control-label">سعر الجملة</label>
            <input name="proUnitSellAllPrice<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="proUnitSellAllPrice<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="text" class="form-control positivefloat" value=""/>
        </div>
    </td>
    <td>
        <div>
            <label class="control-label">سعر نص جملة</label>
            <input name="proUnitSellHalfPrice<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="proUnitSellHalfPrice<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="text" class="form-control positivefloat" value=""/>
        </div>
    </td>
    <td>
        <div>
            <label class="control-label">سعر قطاعى</label>
            <input name="proUnitSellUnitPrice<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="proUnitSellUnitPrice<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" type="text" class="form-control positivefloat" value=""/>
        </div>
    </td>
    <td><a id="remove<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" onClick="removeUnits(<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
, <?php echo $_smarty_tpl->tpl_vars['j']->value;?>
);" class="removeUnits">X</a>

    </td>
</tr>
<?php $_smarty_tpl->_capture_stack[0][] = array('default', 'j', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['j']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
<?php } ?>
<input type="hidden" id="hidden_unitItr<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
"  name="hidden_unitItr<?php echo $_smarty_tpl->tpl_vars['productItr']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['j']->value-1;?>
" />
<?php }} ?>