

<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="billForm" 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">
                                <input type="hidden" id="billno" name="billno"  class="wdt100"  data-placeholder="اختر فاتورة" />
                            </div>

                            {if $userdata->userstoreid  eq 0}
                            <label class="col-lg-1 control-label">المخزن </label>
                            <div class="col-lg-4">
                                <select class="select2 wdt100" name="storeid" id="storeid">
                                    {foreach $storeData as $store}
                                    <option value="{$store->storeId}">{$store->storeName}</option>
                                    {/foreach}
                                </select>
                            </div>

                            {else}
                            <input name="storeid" id="storeid"  type="hidden" value="{$userdata->userstoreid}" />
                            {/if}
                        </div>


                        <div id="billDetails">

                        </div>





                    </div>




                    <div class="form-group">
                        <div class="col-lg-12">
                            <input name="new" id="new" type="hidden" value="0" />
                            <button type="button"   class="btn btn-primary pull-left saveBillReturn">تسجيل  </button>
                        </div>

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

<!-- Modal -->
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close pull-left savemodel2" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">تعليمات شركة التأمين </h4>
            </div>
            <div class="modal-body">
                <form id="clientInfo" action="#" method="post" class="form-horizontal">
                    <div class="form-group">
                        <label for="newclientName" class="col-lg-4 control-label">اسم الشركة </label>
                        <div class="col-lg-4">
                            <p id="companyName"></p>
                        </div>
                    </div>




                    <div class="form-group">
                        <label for="clientaddress" class="col-lg-4 control-label">التعليمات</label>
                        <div class="col-lg-4">
                            <p id="instructionP"></p>
                        </div>
                    </div>



                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">اغلاق </button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>







