<div class="pull-left">
    <input type="text" class="positiveNo" id="priceOfferId" value="" />
    <input type="button" class="btn btn-success" id="addOfferData" value="إدراج" />
</div>
<table class="table table-black">
    <thead>
        <tr>
            <th>اسم العميل</th>
            <th>القيمة</th>
            <th>التاريخ</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lastOffers as $offer}
        <tr>
            <td>
                <a href="javascript:;" class="slctOffer" data-offerId="{$offer.id}">{$offer.clientname}</a>
                {foreach $productsArr as $key=>$value}
                {if $key == $offer.id}
                <input type="hidden" id="offerProCount_{$offer.id}" value="{count($value)}" />
                {assign var="i" value=1}
                {foreach $value as $pro}
                <input type="hidden" id="offerproid_{$i}_{$offer.id}" value="{$pro.productid}" />
                <input type="hidden" id="offerproname_{$i}_{$offer.id}" value="{$pro.productname}" />
                <input type="hidden" id="offerprice_{$i}_{$offer.id}" value="{$pro.sellprice}" />
                <input type="hidden" id="offerpronumber_{$i}_{$offer.id}" value="{$pro.pronumber}" />
                <input type="hidden" id="offertotalprice_{$i}_{$offer.id}" value="{$pro.totalprice}" />
                {assign var="i" value=$i+1}
                {/foreach}
                {/if}
                {/foreach}
            </td>
            <td>{$offer.realtotalprice}</td>
            <td>{$offer.sysdate}</td>
        </tr>
        {/foreach}
    </tbody>
</table>