

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">تسوية العهد  </a></li>
            <li><a href="#">تسوية </a></li>
            <li class="active">تسوية  عهدة  </li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title">تسوية  عهدة</h3>
            </div>
            <div class="panel-body">

                <!-- end box / title -->

                <form  method="post" id="bindSettleForm" action="?do=add" class="nameToBeChecked form-horizontal" >

                    <div id="printAll">
                        <div class="form-group">
                            <label class="col-lg-2 control-label"> الموظف   </label>
                            <div class="col-lg-4">
                                <select name="employee" id="employee" data-placeholder="اختر"  class="select2 wdt100" >
                                    <option value="-1"> اختر </option>
                                    {foreach $binds as $bind}
                                    <option value="{$bind->employeeid}">{$bind->employeeName} </option>
                                    {/foreach}
                                </select>
                                <span id="employeeError" class=" alert-block alert-danger fade in" style="padding: 5px 5px 5px 5px; display: none ;">اختر الموظف  أولا</span>
                            </div>

                            <label class="col-lg-2 control-label">قيمة العهدة  </label>
                            <div class="col-lg-4">
                                <p class="form-control-static mg-tp10" id="bindValueP">0</p>
                                <input class="form-control" name="bindValue" id="bindValue"   type="hidden" value="0"  />
                            </div>

                        </div>


                        <div class="form-group ">
                            <label class="col-lg-2 control-label">التسويات السابقة    </label>
                            <div class="col-lg-4">
                                <p class="form-control-static mg-tp10" id="bindSettlementValueP">0</p>
                                <input class="form-control" name="bindSettlementValue" id="bindSettlementValue"   type="hidden" value="0"  />
                            </div>

                            <label class="col-lg-2 control-label bg-yel color-white"> الصافى   </label>
                            <div class="col-lg-1 bg-yel">
                                <p class="form-control-static mg-tp10" id="bindValueNetP">0</p>
                                <input class="form-control" name="bindValueNet" id="bindValueNet"   type="hidden" value="0"  />
                            </div>
                        </div>
                        <div class="row">
                            <hr/>
                            <div class="col-lg-6">
                                <h4></h4>
                            </div>
                            <div class="col-lg-6">
                                <button type="button" name="addNewBindS" id="addNewBindS" class="btn btn-primary pull-left ft-nor"> اضافة جديد</button>
                            </div>
                        </div>
                        <input class="form-control" name="itr" id="itr"   type="hidden" value="1"  />
                        <div class="table-responsive bd-gr">
                            <table class="table billtable table-bordered table-black" >
                                <thead>
                                    <tr>
                                        <th>#  </th>
                                        <th>وسيلة التسوية </th>
                                        <th>تسوية من </th>
                                        <th>المشروع </th>
                                        <th>القيمة </th>
                                        <th>ملاحظات</th>
                                        <!--th class="hidden-print">حذف</th-->
                                    </tr>
                                </thead>
                                <tbody id="bindSettleTable">
                                    <tr>
                                        <td>
                                            1
                                        </td>
                                        <td>
                                            <select name="bindSettlement1" id="bindSettlement1" data-itr="1" data-placeholder="اختر"  class="select2 wdt100 bindSettlement" >
                                                <option value="-1"> اختر </option>
                                                <option value="1"> خزينة </option>
                                                <option value="0"> مصروفات </option>
                                            </select>
                                            <span id="bindSettlementError1" class=" alert-block alert-danger fade in" style="padding: 5px 5px 5px 5px; display: none ;">اختر مصروف  أولا</span>

                                        </td>
                                        <td>

                                            <div id="masroufDiv1" style="display: none;">
                                                <select name="expensestype1" id="expensestype1" data-placeholder="اختر"  class="select2" >
                                                    <option value="-1"> اختر </option>
                                                    {foreach $expensesType as $expense}
                                                    <option value="{$expense->expensestypeid}">{$expense->expensestypename} </option>
                                                    {/foreach}
                                                </select>
                                                <span id="expenseError1" class=" alert-block alert-danger fade in" style="padding: 5px 5px 5px 5px; display: none ;">اختر مصروف  أولا</span>


                                            </div>

                                            <div id="saveDiv1" style="display: none;">
                                                <select name="save1" id="save1" data-placeholder="اختر"  class="select2" >
                                                    <option value="-1"> اختر </option>
                                                    {foreach $saves as $save}
                                                    <option value="{$save->saveid}">{$save->savename} </option>
                                                    {/foreach}
                                                </select>
                                                <span id="saveError1" class=" alert-block alert-danger fade in" style="padding: 5px 5px 5px 5px; display: none ;">اختر الخزنة  أولا</span>


                                            </div>


                                        </td>
                                        <td>
                                            <select name="project1" id="project1" data-placeholder="اختر"  class="select2 wdt100" >
                                                <option value="-1"> اختر </option>
                                                {foreach $projects as $project}
                                                <option value="{$project->id}">{$project->name} </option>
                                                {/foreach}
                                            </select>

                                        </td>
                                        <td>
                                            <input name="value1" id="value1" type="text"  style="display: inline;"  class="form-control wds100 positivefloat" />
                                            <span id="valueError1" class=" alert-block alert-danger fade in" style="padding: 5px 5px 5px 5px; display: none ;"></span>
                                            <input class="form-control" name="oldValue1" id="oldValue1"   type="hidden" value="0"  />


                                        </td>
                                        <td>
                                            <textarea class="form-control" style="height: 100%;" rows="1" name="comment1" id="comment1"></textarea>
                                        </td>
                                        <!--td>
                                            <button type="button" id="remove1" class="removeproduct close flt-none" aria-hidden="true">&times;</button>
                                        </td-->
                                    </tr>
                                </tbody>
                            </table>
                        </div>


                        <div class="row">
                            <hr/>
                            <div class="col-lg-6">
                                <h4></h4>
                            </div>
                            <div class="col-lg-6">
                                <h4></h4>
                            </div>
                        </div>


                    </div>




                    <div class="form-group">
                        <div class="col-lg-12">
                            <span id="valueError0" class=" alert-block alert-danger fade in" style="padding: 5px 5px 5px 5px; display: none ;"></span>
                            <button type="button"   class="btn btn-primary pull-left saveBindSettle">حفظ  </button>
                        </div>

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

<!-- Modal -->








