 <input type="hidden" name="oldoffer"  value="{$offerClient->id}">

    <div class="row" >
        <div style="text-align: center;padding: 10px"  >
            <input type="email" style="width: 300px;height: 30px;border-radius: 5px;text-align: center" value="{$clientname}" readonly>
            <label  > العميل</label>
        </div>
        <div style="text-align: center" >
            <input type="email" style="width: 300px;height: 30px;border-radius: 5px;text-align: center" value="{$offerClient->mydate}" readonly>
            <label  >التاريخ</label>
        </div>


        <div class="row">
            <div class="row">
                <hr>
                <div class="col-lg-6">
                    <h4>شراء المنتجات</h4>
                </div>
                <div class="col-lg-6">
                </div>
            </div>
            <!-- end of title row-->
            <div class="table-responsive bd-gr">
                <table class="table billtable table-bordered  table-black" id="containerpros">
                    <thead>
                    <tr>
                        <th  style="width: 40px">صورة المنتج</th>
                        <th class="wdt400">اسم المنتج</th>
                        <th class="wdt100n check_tr_quantity ">العدد المطلوب</th>
                        <th class="wdt100n check_tr_quantity ">العدد بالمخزن</th>
                        <th class="wdt100n check_tr_quantity ">العدد المتاح</th>
                        <th class="wdt100n check_tr_quantity ">العدد الناقص</th>
                        <th class="wdt100n">السعر</th>
                        <th class="wdt100n">الاجمالى</th>
                    </tr>
                    </thead>
                    <tbody id="added">
                    <input type="hidden" id="itr" name="itr" value="1">
                    {assign var=i value=1}
                    {foreach $offerProduct as $offerPro}
                    <tr>
                        <td >
                            <output type="button"  data-toggle="modal" data-target=".bs-example-modal-lg" > <img style="width: 44px;height: 20px" src="../views/default/images/product_image/{$offerPro->prologo}"  class="image" ></output>
                        </td>
                        <td>
                            <output>{$offerPro->proname}</output>
                        </td>
                        <td>
                            <output>{$offerPro->quantity}</output>
                        </td>
                        <td>
                            <output>{$offerPro->storequant}</output>
                        </td>
                        <td>
                            <output>{$offerPro->availablequant}</output>
                        </td>
                        <td>
                            <output>{$offerPro->miunquant}</output>
                        </td>
                        <td>
                            <output>{$offerPro->price}</output>
                        </td>
                        <td>
                            <output>{$offerPro->total}</output>
                        </td>
                    </tr>
                    {assign var=i value=$i+1}
                    {/foreach}

                    </tbody>
                </table>
            </div>
            <button type="button" class="btn btn-primary pull-left ft-nor " >
                اجمالى العرض <span class="badge wht-clo total " id="total">
                        <div id="sellbilltotal totals">{$offerClient->alltotal}</div>
                    </span>
                <input type="hidden" name="alltotal" id="tal" class="totall" value="0">
            </button>
        </div>

        <table class="table" style="margin-top: 20px">
            <thead>
            <tr>
                <th  style="text-align: center" colspan="2">المطلوب</th>
                <th  style="text-align: center" colspan="2">المخزن</th>
                <th  style="text-align: center" colspan="2">المتاح</th>
                <th  style="text-align: center" colspan="2">الناقص</th>
            </tr>
            </thead>
            <tbody  >
            <tr style="text-align: center">
                <td  style="color: blue;width: 12.5%" >الكميه <span class="allquantity" style="color: #000;padding-left:10px" >{$offerClient->allquantity}</span></td>
                <input type="hidden" name="allquantity"  class="allquantity" value="0">
                <td  style="color: blue;width: 12.5%" >السعر <span class="total"   style="color: #000;padding-left:10px" >{$offerClient->alltotal}</span></td>
                <td  style="color: blue;width: 12.5%" >الكميه <span class="allquantstore" style="color: #000;padding-left:10px" >{$offerClient->allquantstore}</span></td>
                <input type="hidden" name="allquantstore"  class="allquantstore" value="0">
                <td  style="color: blue;width: 12.5%" >السعر <span class="pricestore" style="color: #000;padding-left:10px" >{$offerClient->pricestore}</span></td>
                <input type="hidden" name="pricestore"  class="pricest" value="0">
                <td  style="color: blue;width: 12.5%" >الكميه <span class="allquantavailable" style="color: #000;padding-left:10px" >{$offerClient->allquantavailable}</span></td>
                <input type="hidden" name="allquantavailable"  class="allquantavailable" value="0">
                <td  style="color: blue;width: 12.5%" >السعر <span class="priceavailable" style="color: #000;padding-left:10px" >{$offerClient->priceavailable}</span></td>
                <input type="hidden" name="priceavailable"  class="priceavailable" value="0">
                <td  style="color: blue;width: 12.5%" >الكميه <span class="allquantminus" style="color: #000;padding-left:10px" >{$offerClient->allquantmiun}</span></td>
                <input type="hidden" name="allquantminus"  class="allquantminus" value="0">
                <td  style="color: blue;width: 12.5%" > السعر<span class="pricestminus" style="color: #000;padding-left:10px" >{$offerClient->pricemiun}</span></td>
                <input type="hidden" name="pricestminus" class="pricestminus" value="0">
            </tr>
            </tbody>
        </table>
    </div>
    <!-- end of second row-->
    <div style="clear: both"></div>
 <div  class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" >
     <div  style="width:500px;height:500px" class="modal-dialog modal-lg" role="document" data-dismiss="modal">
         <div class="modal-content" >
             <div >
                 <img style="width:100%;height:100%;border: 1px solid #000" src="" id="image" >
             </div>
         </div>
     </div>
 </div>

    <div class="row" style="padding-top: 30px;text-align: center">
        <button class="btn btn-primary"><a href="offerorder.php?do=show" >رجوع</a></button>

        {if $offerClient->oldorder > 0}
        <button class="btn btn-success"><a href="offerorder.php?do=detail&id={$offerClient->oldorder}" target="_blank">الشراء المعدل</a></button>
        {/if}
        {if $offerClient->oldoffer > 0 }
        <button class="btn btn-success"><a href="offerclient.php?do=detail&id={$offerClient->oldoffer}" target="_blank"> العرض</a></button>
        {/if}
    </div>