<div class="container">
    <div class="bill-mobile ">
        <ol class="breadcrumb">
            <li><a href="#">ادارة الفواتير</a></li>
            <li><a href="billTemplateController.php?do=show">الفواتير المحفوظة</a></li>
            <li class="active">الفواتير المحفوظة</li>
        </ol>
        <h3>اضافة فاتورة محفوظة</h3>

        <div id="addunit" style="display:none"> </div>
        <input type="hidden" id="searchvalue" value="{$Programsettingdata->searchvalue}">
        <form class="form-horizontal " role="form" action="billTemplateController.php?do=add" method="post" id="billTemplateForm">
            <div class="">
                <div class="form-group">
                    <div class="col-lg-6">
                        <label class="sr-only">الاسم </label>
                        <input type="text" class="form-control" name="name" id="name" value="">
                    </div>
                </div>
            </div>

            <!-- end of hidden ===============================-->


            <div class="" {if {$billsettingsData[14]->billsettingsvalue} eq 0}  {else} style="display:none !important"  {/if}>
                <div class="row mobile-p">
                    <hr/>
                    <div class="col-lg-6 col-sm-4">
                        <h4 id="header4Sell">فاتورة المبيعات</h4>
                    </div>
                    <div class="col-lg-6 col-sm-8">
                        <button type="button" id="addpro" class="btn btn-primary pull-left ft-nor">اضافة جديد</button>
                    </div>
                </div>
                <!-- end of title row-->
                <div class="table-responsive bd-gr">
                    <table class="table billtable table-bordered  table-black" id="containerpros">
                        <thead>
                            <tr>
                                <th class="wdt120">الرقم</th>
                                <th class="wdt120 check_tr_parcode">الباركود</th>
                                <th class="wdt400">المنتج</th>
                                <th class="wdt100n check_tr_unit hidden">الوحدة</th>
                                <th class="wdt100n check_tr_quantity" >الكمية</th>
                                <th class="wdt120">
                                    حذف
                                    <input name="hidden_itr" id="hidden_itr" type="hidden" value="0" />
                                </th>
                            </tr>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>
                </div>
            </div>

            <!-- end of second row-->

            <div class="" {if {$billsettingsData[0]->billsettingsvalue} eq 0}  {else} style="display:none !important"  {/if}>
                <div class="row">
                    <hr/>
                    <div class="col-lg-6">
                        <h4 id="header4retSell">مردودات المبيعات</h4>
                    </div>
                    <div class="col-lg-6">
                        <button type="button" id="addreturn" class="btn btn-primary pull-left ft-nor">اضافة جديد</button>
                    </div>
                </div>
                <!-- end of title row-->
                <div class="table-responsive bd-rd">

                    <table class="table billtable table-bordered table-black" id="containerReturn">
                        <thead>

                            <tr>
                                <th class="wdt120">الرقم</th>
                                <th class="wdt120 check_tr_parcode">الباركود</th>
                                <th class="wdt400">المنتج</th>
                                <th class="wdt100n check_tr_unit hidden">الوحدة</th>
                                <th class="wdt100n check_tr_quantity" >الكمية</th>
                                <th class="wdt120">
                                    حذف
                                    <input name="returnhidden_itr" id="returnhidden_itr" type="hidden" value="0" />
                                </th>
                            </tr>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>
                </div>
            </div>

            <!-- end of third row-->
            <div class="clearfix"></div>
            <!-- end of fourth row-->
            <div class="row text-center">
                <button type="button" id="saveBill" class="btn btn-primary">حفظ</button>
            </div>
            <br/>

        </form>
    </div>
</div>
<!-- end of container-->
<!------------------------Client Model----------------------------->
<!-- Modal -->
<div class="modal fade" id="productDetailsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content bg-modal">
            <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="productDetailsForm" class="form-horizontal">

                </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>
<!-- /.modal -->
<!-- ============================================= -->