<table class="table table-black" id="client_dept_bills">
    <thead>
        <tr>
            <th> <center>   رقم الفاتورة</center></th>
            <th><center>  قيمة الفاتورة</center></th>
            <th class="hidden-print"><center>   تفاصيل الفاتورة </center></th>
            <th><center>  قيمة الدين</center></th>
            <th><center> القيمة المسددة من قبل</center></th>
            <!--<th><center> طريقة السداد السابقة</center></th>-->
            <th><center> قيمة السداد </center></th>
            <th ><center>  نوع الدفع </center></th>
        </tr>
    </thead>
    <tbody class="pre-scrollable">
        {foreach $client_bills as $data}

            <tr class="gradeA " id="bill_tr_{$data.billno}">

                <td><center>{$data.billno}</center></td>
                <td><center>  {$data.finalnetbillvalue}  </center></td>
                <td class="hidden-print"><center> <a href="bills.php?do=details&id={$data.id}" type="button" class="btn btn-default btn-lg notesicon"></a> </center></td>
                <td><center> <span id='waitvalue_{$data.billno}'>{$data.waitvalue}</span></center></td>

                <td><center>
                    {$data.total_payed}    
                 </center>
                </td>

                <td><center><input type="text" name="" class='bill_pay positivefloat' data-id='{$data.billno}' id="" /></center></td>

                <td class="paytype_radio" id="paytype_radio_{$data.billno}"><center> 
                    <input type="radio"  class="paytype"  data-id="{$data.billno}" id="paytype_{$data.billno}"  name="paytype_{$data.billno}" value="cashe" checked> كاش
                    <input type="radio"  class="paytype"  data-id="{$data.billno}" id="paytype_{$data.billno}"  name="paytype_{$data.billno}" value="shbka"> شبكة
                    <input type="hidden" id="paymentnetworks_{$data.billno}" name="paymentnetworks_{$data.billno}"  class="wdt50 paymentnetworks"  data-placeholder="اختر نوع شبكة " />
                </center></td>

                <td class="hide paytype_text" id="paytype_text_{$data.billno}"><center> 
                    <span></span>
                </center></td>
            </tr>



        {/foreach}


    </tbody>

</table>

<div class="col-lg-offset-8 col-lg-4">
    <div class="well well-sm"><h4 class="text-center">اجمالى الفواتير المسددة : <span id='total_value'>0</span> </h4> </div>
    <input type="hidden" name="total_value_h" id="total_value_h" />

</div>

<input type="hidden" name="client_id" id="client_id" value="{$client_id}"/>
<input type="hidden" name="bills" id="bills" value="yes"/>

<div class="clearfix"></div>
<hr />
<div  class=" hidden-print">
    <div class="col-lg-12">
        <div class="form-group">
            <div class="col-lg-4">
                <button type="button" data-print='no'  class="btn btn-success pull-right save_payment">سداد </button>
                <button type="button" data-print='yes'  class="btn btn-success pull-right save_payment" style="margin-right: 5px;">سداد وطباعة</button>
                <button type="button"  class="btn btn-danger" data-dismiss="modal" style="margin-right: 5px;">لا</button>
            </div>

        </div>
    </div>
    <div class="clearfix"></div>
</div>