{if count($productsData) > 0}
<div style="text-align: center;">
    {foreach $productsData as $data}
    <div style="float: left; width: 50%">
        <img src="../views/default/images/product_image/{$data->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;">{$data->productName} / {$data->productCatName}</h1>
        <br>
        <h1 style="color: #000;font-size: 150px;font:bolder;font-weight:bolder;" >{if $data->discounttype == 0 }{$data->productSellUnitPrice - $data->selldiscount}{elseif $data->discounttype == 1} {$data->productSellUnitPrice - ($data->productSellUnitPrice * $data->selldiscount /100)}{else}{$data->productSellUnitPrice}{/if}</h1>
        <br>
        <h1 style="color: #000;font-size: 50px;font:bolder;" >جنيه     </h1>
    </div>
    {/foreach}
</div>
<div style="clear: both;"></div>
<div style="float: left;">
    <span > G.M{if $data->discounttype == 0 }{$data->productSellAllPrice - $data->selldiscount}{elseif $data->discounttype == 1}{$data->productSellAllPrice - ($data->productSellAllPrice * $data->selldiscount /100)}{else}{$data->productSellAllPrice}  {/if}G.M  </span>
    <br>
    <span>N.G{if $data->discounttype == 0 }{$data->productSellHalfPrice - $data->selldiscount}{elseif $data->discounttype == 1}{$data->productSellHalfPrice - ($data->productSellHalfPrice * $data->selldiscount /100)}{else}{$data->productSellHalfPrice}  {/if}G.M </span>
</div>
<div style="float: right;">
    <span> PARCODE{$text} </span>
    <br>
    <span>PAR.ID{$data->parcode} / {$data->productId}</span>
    <br>
    <span>{$data->productDescription}</span>
</div>
<div style="clear: both"></div>
<div style="margin-top: 5px;"><!--background-color: #b179f9-->
    {foreach $storesQuantity as $stQ}
    <span style="padding: 3px;border: 3px solid #b179f9;border-radius: 25px;">{$stQ->storeName} : <b>{$stQ->productquantity}</b></span>
    {/foreach}
</div>

{else}
<div style="text-align: center;">
    {foreach $Programs as $data}
    <div  >
        <img src="../views/default/images/upload/productbycodeimage/{$data->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>
    {/foreach}
    {/if}
</div>