<style>
    .myresult {
        -webkit-print-color-adjust: exact;
    }
    .hidden-borders td{
        border-right: 0px;
        border-left: 0px;
        background-color: transparent;
    }
    /*    table td,table th{
            text-align:right!important;
        }*/
</style>

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">التقارير</a></li>
            <li class="active">تقرير مرايه النقديه و البنوك </li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">تقرير مرايه النقديه و البنوك
                <a href="{$youtubes[120]->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">
                <form class="form-inline  hidden-print" action="mirrorReportOnCashAndBanks.php" method="post">
                    {if $userId == 1 || $userId==-1}
                    <!--                    <div class="form-group">
                                            <label class="sr-only">نوع المصروف</label>
                                            <select class="select2 "  name="expensetypeid" id="expensetypeid">
                                                <option></option>
                                                {foreach $expenseTypeLastLeaf as $data}
                                                <option value="{$data['expensestypeid']}">{$data['expensestypename']}</option>
                                                {/foreach}
                                            </select>
                                        </div>
                                        <br/>-->
                    {else}
                    <input type="hidden" name="expensetypeid" id="expensetypeid" value="0"/>
                    {/if}
                    <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">بحث</button>
                </form>
            </div>
            <div class="panel panel-default panel-m">
                <!-- Default panel contents -->
                <div class="panel-heading">{$message}</div>
                <div class="panel-body">
                    <hr/>
                    <table class="table">
                        <thead>
                            <tr>
                                <th>م</th>
                                <th>الوصف</th>
                                <th>المبلغ</th>

                                <th>م</th>
                                <th>الوصف</th>
                                <th>المبلغ</th>
                            </tr>
                        </thead>
                        <tbody>
                            {assign var=i value=1}
                            {assign var=totalRight value=0}
                            {assign var=totalLeft value=0}
                            {for $foo=0 to $count}
                            <tr>
                                {assign var=totalRight value=$totalRight+$rightArr[$foo]->val}
                                {assign var=totalLeft value=$totalLeft+$leftArr[$foo]->val}
                                <td>{$i} </td>
                                <td>{$rightArr[$foo]->name} </td>
                                <td>{$rightArr[$foo]->val}</td>

                                <td>{$i} </td>
                                <td>{$leftArr[$foo]->name} </td>
                                <td>{$leftArr[$foo]->val}</td>
                            </tr>
                            {assign var=i value=$i+1}
                            {/for}

                            <tr>
                                <td>{$i} </td>
                                <td>اجمالى</td>
                                <td>{$totalRight}</td>

                                <td>{$i} </td>
                                <td>اجمالى</td>
                                <td>{$totalLeft}</td>
                                {assign var=i value=$i+1}
                            </tr>
                            <tr>
                                <td>{$i} </td>
                                <td>الصافى</td>
                                <td>{$totalRight-$totalLeft}</td>

                                <td>{$i} </td>
                                <td></td>
                                <td></td>
                                {assign var=i value=$i+1}
                            </tr>
                            <tr>
                                <td>{$i} </td>
                                <td>صافى النقديه بالخزنه</td>
                                <td>{$netSaveVal}</td>

                                <td>{$i} </td>
                                <td></td>
                                <td></td>
                                {assign var=i value=$i+1}
                            </tr>
                            <tr>
                                <td>{$i} </td>
                                <td>صافى النقديه بالبنك</td>
                                <td>{$netBankVal}</td>

                                <td>{$i} </td>
                                <td></td>
                                <td></td>
                                {assign var=i value=$i+1}
                            </tr>

                            <tr class="hidden-borders">
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>

                                <td style="border-bottom: none">&nbsp;</td>
                                <td style="border-bottom: none">&nbsp;</td>
                                <td style="border-bottom: none">&nbsp;</td>
                            </tr>
                            <tr>
                                <td>{$i} </td>
                                <td>مبيعات اليوم</td>
                                <td>{$netSales}</td>

                                <td style="border: none"></td>
                                <td style="border: none"></td>
                                <td style="border: none"></td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="clearfix"></div>
                    <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  hidden-print">طباعة</button>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
