<style>
    .paymentnetworks{
        display:none;
    }
    
    .bold {
    font-weight:bold;
}
.block {
    display:block;
}

body {
    background-color: #fff;
    font-family:"Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #696969;
}
/*
ul.myErrorClass, input.myErrorClass, textarea.myErrorClass, select.myErrorClass {
    border: 1px solid #cc0000 !important;
    background: #f3d8d8 url(http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/blitzer/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png) 50% 50% repeat !important;
}
*/
 a.myErrorClass, ul.myErrorClass, input.myErrorClass, textarea.myErrorClass, select.myErrorClass {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #cc0000 !important;
    background-color: #f3d8d8 !important;
    background-image: url(http://goo.gl/GXVcmC) !important;
    background-position: 50% 50% !important;
    background-repeat: repeat !important;
}

label.myErrorClass {
    color: red;
    font-size: 11px;
    /*    font-style: italic;*/
    display: block;
}
    
</style>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#"> سداد ديون عميل بصاريات</a></li>
            <li class="active">تقرير سداد ديون عميل بصاريات</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading"><span class="hidden-print"> اضافة سداد ديون عميل بصاريات</span><br />
                {if $message != ""}
                {$message}
                {/if}</div>
            <div class="panel-body">
                <form class="form-inline  hidden-print" action="clientPayedDeptBillsController.php" id="search_form" method="post">
                    <div class="form-group">
                        <label class="sr-only">اختر عميل</label>
                        <input  type="hidden" id="client_2" name="client"  class="wdt100"  />
                    </div>
                    <br />
                    <div class="form-group">
                        <label class="sr-only"> رقم الفاتورة</label>
                        <input  type="hidden" id="bill_no" name="bill_no"  class="wdt100"  />
                    </div>
                    <br />
                    <div class="form-group">
                        <label class="sr-only">من التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd"  name="from" id="datepicker_from" >
                    </div>
                    <div class="form-group">
                        <label class="sr-only">إلى التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd"  name="to" id="datepicker_to"  >
                    </div>

                    <button type="submit" class="btn btn-primary  hidden-print">بحث</button>
                </form>
            </div>
<!--            <div class="col-lg-offset-8 col-lg-4">
                <div class="well well-sm"><h4 class="text-center">الإجمالي:  {$sum} {$currency}</h4></div>
            </div>-->
            <div id="resultDiv"><!------ Start result --------->

                <hr/>
                <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>
                        {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>
                <br><br>
                <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>
            </div> <!------ End result --------->


         
            <input type="hidden" name="client_id" id="client_id" value="{$client_id}"/>
            <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: 10px;">سداد وطباعة</button>

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

    </div>
</div>


