<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->

                                    <!--      شيكات العملاء -->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="{$path}/assets/css/print.css" rel="stylesheet">

    </head>
    <body>
        <style>
            table , tr >th , tr > td {
             border: 1px solid #000 !important ;
            }
            tr >th {
                padding: 8px !important;
 
            }
            tr > td {
                text-align: center !important;
                padding: 10px !important;

            }
        </style>
         <h3 class="panel-heading " >  شيكات العملاء        </h3>
        <table class="table table-black dataTableClass">
              <thead>
                  <tr>
                       <th class="hidden-print">الفرع</th>

                        <th>شركة التأمين</th>

                        <th>مكان  الاضافه </th>

                        <th class="hidden-print">المستخدم</th>

                        <th>التاريخ</th>

                        <th>إجمالي الفاتورة</th>

                        <th>رقم الفاتورة</th>

                        <th>اسم العميل</th>

                        <th>رقم المسلسل</th>

                  </tr>
              </thead>
              <tbody>
                  {if count($approvedBills) > 0}
                  {assign var=i value=1}
                  {foreach $approvedBills as $data}
                  {if {$data->deleted} eq 1}
                  <tr class="danger"> {elseif {$data->deleted} eq 0}
                  <tr> {/if}
                      <td class="hidden-print">{$data->branchid}</td>
                      
                        <td>{$data->insurancecompanyid}</td>

                        <td>{if $data->offline == 1 }محليا   {else}  على السيرفر الرئيسى مباشرة  {/if}</td>

                        <td class="hidden-print">{$data->username}</td>

                        <td>{$data->billdate}</td>

                        <td>{$data->finalnetbillvalue}</td>

                        <td>{$data->billno}</td>

                        <td> {$data->clientname} </td>

                        <td>{$i}</td>

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

                  {else}
                  <tr>
                      <td colspan="7" style="text-align: center;"><label>لا توجد بيانات  </label></td>
                  </tr>

                  {/if}
              </tbody>

          </table>
    </body>
</html>
