

<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">إدارة الفواتير</a></li>
            <li><a href="reportQuotation.php"> تقرير عرض الاسعار</a></li>

        </ol>




        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">تقرير عرض الاسعار</div>
            <div class="panel-body">


                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>

                    <p id="outputStringValue">{$outputString}</p>

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



            </div>

            <form class="form-inline hidden-print" method="post" action="reportQuotation.php">
                    
                     <div class="form-group" style="width: 300px;" >
                        <label class="sr-only">العملاء</label>
                            <select class="select2 wdt100" name="clientid" id="clientid" >
                                <option value="-1" >اختر </option>
                                {foreach $clientsData as $data }
                                <option value="{$data->clientid}" data-mobile="{$data->clientmobile}">{$data->clientname}</option>
                                {/foreach}
                            </select>
                    </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" >
                    </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" >
                    </div>
                    <button type="submit" class="btn btn-primary hidden-print">بحث</button>
                </form>
            <hr/>



            <table class="table table-black">
                <thead>
                    <tr>
                        <th style="width:50px;">م</th>
                        <th>العميل</th>
                        <th> التاريخ</th>
                        <th> الاجمالى</th>
                        <th class="noprint">تعديل</th>
                        <th class="noprint">تفاصيل</th>
                        <th class="noprint">------------</th>
                        <th class="noprint">تعديل قبل</th>
                    </tr>
                </thead>
                <tbody>



                    {assign var=i value=1}
                    {foreach $alldata as $data}

                    <tr {if $data->conditions eq 1} class="danger" {/if}>

                        <td>{$i}</td>
                        <td>{$data->clientname}</td>
                        <td>{$data->sellbillsysdate}</td>
                        <td>{$data->sellbilltotalpayed}</td>

                        <td class="noprint">
                            <a href="reportQuotation.php?do=edit&id={$data->sellbillid}" type="button" class="btn btn-default btn-lg editicon"></a>
                        </td>
                        <td class="noprint">
                            <a href="reportQuotation.php?do=detail&id={$data->sellbillid}" type="button" class="btn btn-default btn-lg editicon"></a>
                        </td>
                        <td class="noprint">
                            <a href="reportQuotation.php?do=edit&id={$data->sellbillid}" type="button" class="btn btn-default btn-lg editicon"></a>
                        </td>
                        <td class="noprint">
                            <a href="reportQuotation.php?do=edit&id={$data->sellbillid}" type="button" class="btn btn-default btn-lg editicon"></a>
                        </td>





                    </tr>
                    {capture assign=i}{$i+1}{/capture}
                    {/foreach}


                </tbody>
            </table>





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


            <hr />

            <div  class="noprint">
                <div class="col-lg-12">


                    <div class="form-group">
                        <div class="col-lg-4">
                            <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة</button>
                        </div>
                    </div>

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






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


        </div>



    </div>

</div>





<!-- Modal -->
<div class="modal fade" id="small" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content bg-modal">
            <div class="modal-header">
                <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">تأكيد حذف المشروع</h4>
            </div>
            <div class="modal-body">
                <label> هل تريد حذف هذا المشروع؟</label>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">لا</button>
                <button type="button" class="btn btn-primary deleteit">نعم</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->





<!-- Modal -->
<div class="modal fade" id="finishsmall" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content bg-modal">
            <div class="modal-header">
                <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">تأكيد  انهاء المشروع</h4>
            </div>
            <div class="modal-body">
                 <label> هل تريد حذف هذا المشروع؟</label>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">لا</button>
                <button type="button" class="btn btn-primary finishit">نعم</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
