<?php /* Smarty version Smarty-3.1.11, created on 2025-02-24 06:59:40
         compiled from "../views/default/productbycode/result.html" */ ?>
<?php /*%%SmartyHeaderCode:59375968767bbfcbc674b92-11753880%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '541973a09666f8262071035f1e308b3200b3d277' => 
    array (
      0 => '../views/default/productbycode/result.html',
      1 => 1740000156,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '59375968767bbfcbc674b92-11753880',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'productsData' => 0,
    'data' => 0,
    'text' => 0,
    'storesQuantity' => 0,
    'stQ' => 0,
    'Programs' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67bbfcbc7d3003_24209282',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67bbfcbc7d3003_24209282')) {function content_67bbfcbc7d3003_24209282($_smarty_tpl) {?><?php if (count($_smarty_tpl->tpl_vars['productsData']->value)>0){?>
<div style="text-align: center;">
    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['productsData']->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;
?>
    <div style="float: left; width: 50%">
        <img src="../views/default/images/product_image/<?php echo $_smarty_tpl->tpl_vars['data']->value->logo;?>
" style="width: 400px;max-height: 450px;border:2px solid #000;border-radius: 4px" />
    </div>
    <div style="float: left;width: 50%">
        <h1 style="color: #000; margin-top: 60px;"><?php echo $_smarty_tpl->tpl_vars['data']->value->productName;?>
 / <?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>
</h1>
        <br>
        <h1 style="color: #000;font-size: 150px;font:bolder;font-weight:bolder;" ><?php if ($_smarty_tpl->tpl_vars['data']->value->discounttype==0){?><?php echo $_smarty_tpl->tpl_vars['data']->value->productSellUnitPrice-$_smarty_tpl->tpl_vars['data']->value->selldiscount;?>
<?php }elseif($_smarty_tpl->tpl_vars['data']->value->discounttype==1){?> <?php echo $_smarty_tpl->tpl_vars['data']->value->productSellUnitPrice-($_smarty_tpl->tpl_vars['data']->value->productSellUnitPrice*$_smarty_tpl->tpl_vars['data']->value->selldiscount/100);?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['data']->value->productSellUnitPrice;?>
<?php }?></h1>
        <br>
        <h1 style="color: #000;font-size: 50px;font:bolder;" >جنيه     </h1>
    </div>
    <?php } ?>
</div>
<div style="clear: both;"></div>
<div style="float: left;">
    <span > G.M<?php if ($_smarty_tpl->tpl_vars['data']->value->discounttype==0){?><?php echo $_smarty_tpl->tpl_vars['data']->value->productSellAllPrice-$_smarty_tpl->tpl_vars['data']->value->selldiscount;?>
<?php }elseif($_smarty_tpl->tpl_vars['data']->value->discounttype==1){?><?php echo $_smarty_tpl->tpl_vars['data']->value->productSellAllPrice-($_smarty_tpl->tpl_vars['data']->value->productSellAllPrice*$_smarty_tpl->tpl_vars['data']->value->selldiscount/100);?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['data']->value->productSellAllPrice;?>
  <?php }?>G.M  </span>
    <br>
    <span>N.G<?php if ($_smarty_tpl->tpl_vars['data']->value->discounttype==0){?><?php echo $_smarty_tpl->tpl_vars['data']->value->productSellHalfPrice-$_smarty_tpl->tpl_vars['data']->value->selldiscount;?>
<?php }elseif($_smarty_tpl->tpl_vars['data']->value->discounttype==1){?><?php echo $_smarty_tpl->tpl_vars['data']->value->productSellHalfPrice-($_smarty_tpl->tpl_vars['data']->value->productSellHalfPrice*$_smarty_tpl->tpl_vars['data']->value->selldiscount/100);?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['data']->value->productSellHalfPrice;?>
  <?php }?>G.M </span>
</div>
<div style="float: right;">
    <span> PARCODE<?php echo $_smarty_tpl->tpl_vars['text']->value;?>
 </span>
    <br>
    <span>PAR.ID<?php echo $_smarty_tpl->tpl_vars['data']->value->parcode;?>
 / <?php echo $_smarty_tpl->tpl_vars['data']->value->productId;?>
</span>
    <br>
    <span><?php echo $_smarty_tpl->tpl_vars['data']->value->productDescription;?>
</span>
</div>
<div style="clear: both"></div>
<div style="margin-top: 5px;"><!--background-color: #b179f9-->
    <?php  $_smarty_tpl->tpl_vars['stQ'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['stQ']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['storesQuantity']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['stQ']->key => $_smarty_tpl->tpl_vars['stQ']->value){
$_smarty_tpl->tpl_vars['stQ']->_loop = true;
?>
    <span style="padding: 3px;border: 3px solid #b179f9;border-radius: 25px;"><?php echo $_smarty_tpl->tpl_vars['stQ']->value->storeName;?>
 : <b><?php echo $_smarty_tpl->tpl_vars['stQ']->value->productquantity;?>
</b></span>
    <?php } ?>
</div>

<?php }else{ ?>
<div style="text-align: center;">
    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['Programs']->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;
?>
    <div  >
        <img src="../views/default/images/upload/productbycodeimage/<?php echo $_smarty_tpl->tpl_vars['data']->value->productbycodeimage;?>
" style="width: 100%;max-height: 400px;border:2px solid #000;border-radius: 4px" />
    </div>
    <div style="clear: both;"></div>
    <div >
        <h1 style="color: #000;font-size: 70px;font:bolder;font-weight:bolder;" > اظهار المنتج بالباركود    </h1>

    </div>
    <?php } ?>
    <?php }?>
</div><?php }} ?>