
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">فرن عيش </a></li>
            <li><a href="tamweenbill.php?do=show">فاتورة الصرف</a></li>
            <li class="active">عرض الفواتير</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">عرض الفواتير <br />
                {if $message != ""}
                {$message}
                {/if}
                <a href="{$youtubes[258]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
            </div>
            <div class="panel-body">

                <div id="outputString" class="alert alert-block alert-success fade in hidden-print" 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>
                <form class="form-inline hidden-print" action="tamweenbill.php?do=show" method="post">
                    <div class="form-group">
                        <label class="sr-only"> اسم العميل </label>
                        <select class="select2 wdt100" name="clientid" id="clientid" >
                            <option value="-1">اختر عميل </option>
                            <option value="-2"> كل العملاء</option>
                            {foreach $alldata as $data }
                            <option value="{$data->clientid}">{$data->clientname}</option>
                            {/foreach}
                        </select>
                    </div>
                    <div class="form-group">
                        <label class="sr-only">مسلسل العميل</label>
                        <input type="text" class="form-control" name="clientCode" id="clientCode">
                    </div>
                    <div class="form-group">
                        <label class="sr-only">تليفون العميل</label>
                        <input type="text" class="form-control" name="clientPhone" id="clientPhone">
                    </div>
                    <div class="form-group">
                        <label class="sr-only">موبايل العميل</label>
                        <input type="text" class="form-control" name="clientMobile" id="clientMobile">
                    </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" id="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" id="to">
                    </div>
                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
            </div>

            <hr/>



            <table class="table table-black">
                <thead>
                    <tr>

                        <th>العميل</th>
                        <th>الكمية</th>
                        <th>التاريخ</th>
                        <th class="noprint">تعديل</th>
                        <th class="hidden-print ">حذف</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $bills as $one}
                    <tr>
                        <td>{$one->clientname}</td>
                        <td>{$one->quantity}</td>
                        <td>{$one->billdate}</td>
                        <td class="noprint">
                            <a href="tamweenbill.php?do=edit&id={$one->id}" class="btn btn-default btn-lg editicon"></a>
                        </td>
                        <td class="hidden-print ">
                            <a href="tamweenbill.php?do=delete&id={$one->id}" type="button" class="btn btn-default btn-lg removeicon"></a>
                        </td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>





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



        </div>

    </div>
</div>
