<form action="MaintennanceSettlementController.php?do=closeout" method="post" id="mSettelment">
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default panel-m">
                <div class="panel-heading">
                    <h6 class="text-center"><strong> العملاء</strong> </h6>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">

                        <table class="table table-condensed table-black">
                            <thead>
                                <tr>
                                    <td><strong> العملاء</strong></td>
                                    <td>
                                        <select name="clientId" id="clientId" class="select2 aw_m1">
                                            <option value="-1">-- اختر العميل --</option>
                                            {foreach $clients as $myclient}
                                            <option value="{$myclient->clientid}">{$myclient->clientname}</option>
                                            {/foreach}
                                        </select>
                                    </td>
                                </tr>

                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>








    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default panel-m">
                <div class="panel-heading">
                    <h6 class="text-center"><strong> تسوية</strong> </h6>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">

                        <table class="table table-condensed table-black">
                            <thead>
                                <tr>
                                    <td><strong> فواتير العميل</strong></td>
                                    <td>
                                        <div id="loadMaintenanceReceipts">
                                            <select name="mMaintenanceReceiptId" id="mMaintenanceReceiptId" class="select2 aw_m1">
                                                <option value="-1">-- اختر العميل اولا --</option>
                                            </select>
                                        </div>
                                    </td>
                                    <td>
                                        <label id="selectedReciptTotalCostLbl1">الاجمالى : 0</label>
                                        <input name="selectedReciptTotalCostLbl1_hidden" id="selectedReciptTotalCostLbl1_hidden" type="hidden" value="" />
                                    </td>

                                </tr>


                            </thead>


                        </table>

                        <br/>

                        <table class="table table-condensed table-black" id="containerpros">
                            <thead>
                                <tr>
                                    <td><strong> الدفعات</strong></td>
                                    <td>

                                    </td>
                                    <td></td>

                                </tr>


                            </thead>

                            <tbody>
                                <tr id="row1" class="pay">
                                    <td>
                                        <a  class="newLink btn btn-primary btn-xs"  id="new1"  name="1">+</a>
                                    </td>
                                    <td>
                                        <div id="clientPayments1">
                                            <select name="payment1" id="payment1" class="select2 aw_m1">
                                                <option value="-1">-- اختر العميل اولا --</option>
                                            </select>
                                        </div>
                                    </td>

                                    <td>
                                        <button type="button" id="remove1" class="removeit close flt-none" aria-hidden="true">&times;</button>
                                    </td>
                                </tr>

                            </tbody>
                            <button class="btn btn-primary pull-left">  الباقى
                                <span class="badge wht-clo"><span id="remain">0</span></span>
                                <input name="remain_hidden" id="remain_hidden" type="hidden" value="0" />
                            </button>
                        </table>

                        <!-- <br/>

                         <hr />-->
                        <input name="hidden_itr" id="hidden_itr" type="hidden" value="1" />

                        <input name="hidden_ArrayOfIds" id="hidden_ArrayOfIds" type="hidden"/>


                        <br/>
                        <div align="center"><button type="submit" id="save" name="save" class="btn btn-primary"> تسوية </button></div>
                        <br/>


                    </div>
                </div>
            </div>
        </div>
    </div>

</form>



