

<?php $__env->startSection('content'); ?>

   <?php 
   $time = date("G");
    ?>
    <br/>
    <?php if(  $show_button == "yes"  ): ?>
    <a href="<?php echo e(url('endday/index')); ?>"  class="btn" style="background-color: #2C4E71;
    font-size: x-large;
    color: #FFF;
    position: absolute;
    top: 45%;
    left: 45%;
    width: 367px;
    font-weight: 700;">بدأ اليوم  </a><br/><br/>
    <?php else: ?>
	    
    

    
  







<div style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; direction: rtl; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #e1e8ed; margin: 20px; ">
  
            <div style="background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;">
              <h3 style="color: white; margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center;">
                  <span style="margin-left: 10px;">📋</span> الفواتير اليومية
              </h3>
              <span style="background: rgba(255,255,255,0.2); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px;">  <?php echo e(count($invoices)); ?></span>
            </div>
            
            
               
                
                 <table id="example10" class="table table-bordered">
                  <thead>
                  
                 <tr >
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> التاريخ    </th>

                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> رقم الفاتورة   </th>
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> العميل    </th>

                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> الخصم   </th>
                   
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> أجمالي السعر   </th>
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> الحالة   </th>
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> تفاصيل     </th>
                  

                 </tr>
                 </thead>
              <tbody>
                           
                <?php foreach( $invoices as $invoice ): ?>   
                 
                 

                 
                <tr>
                 
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" ><?php echo e($invoice->created_at); ?></td>
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" >#<?php echo e($invoice->id); ?></td>
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" ><?php echo e($invoice->client->name); ?></td>

                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" ><?php echo e($invoice->discount); ?></td>
                 
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" ><?php echo e($invoice->total_price); ?></td>
                <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" >

                <?php if($invoice->confirmed == "confirmed"): ?>
                
                <span style="
        background:#dcfce7;
        color:#166534;
        padding:6px 14px;
        border-radius:20px;
        font-weight:600;
        font-size:13px;
        display:inline-block;
    ">
                 ✔   
                   </span>
                
                <?php elseif( $invoice->confirmed == NULL ): ?> 
                <img src='<?php echo e(asset("theme/dist/img/waiting.png")); ?>' alt="Egwaste"  style="height:40px"   />
                <?php else: ?> 
                <img src='<?php echo e(asset("theme/dist/img/delet.png")); ?>' alt="Egwaste"  style="height:40px"   />
                <?php endif; ?>
                </td>

                <td style="text-align:center; width:50px;word-break: break-word;" > 
                  
                  <a   href='<?php echo e(url("invoice/details/{$invoice->id}")); ?>'> Details</a>
                   
                  
                </td>

                </tr>
               <?php endforeach; ?>
                </tbody>
                </table>
                
             
</div>



















                   
                   <div style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; direction: rtl; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #e1e8ed; margin: 20px; ">
  
            <div style="background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;">
              <h3 style="color: white; margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center;">
                  <span style="margin-left: 10px;">📋</span> 
                           شيكات مستحقة الدفع /التحصيل
              </h3>
              <span style="background: rgba(255,255,255,0.2); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px;">  <?php echo e(count($cheques)); ?></span>
            </div>
                   
                   
                   
                   
                   
                 <table id="example10" class="table table-bordered">
                   <thead>
                   
                  <tr >
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> السريال    </th>

                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> تاريخ نشأة الشيك    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> العميل   </th>

                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> نوع الشيك    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> الرقم    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> مسحوب علي    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> تاريخ استحقاق  الدفع    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> المبلغ    </th>          
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> الحالة   </th> 
 
                  </tr>
                  </thead>
               <tbody>
                            
                 <?php foreach( $cheques as $cheque ): ?>   
                  
                 <tr>
                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" ><?php echo e($cheque->id); ?> </td>
                  
                   <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" ><?php echo e($cheque->created_at); ?> </td>
                   <?php if($cheque->client_id): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($cheque->client->name); ?>    </th>
                   <?php elseif( $cheque->payment_voucher_id  && $cheque->payment_voucher->budget_id ): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($cheque->payment_voucher->budget->name); ?>    </th>
                   <?php elseif( $cheque->payment_voucher_id  && $cheque->payment_voucher->employee_id): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px">   <?php echo e($cheque->payment_voucher->employee->name); ?>  </th>
                   <?php elseif( $cheque->payment_voucher_id  && $cheque->payment_voucher->car_id): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px">   <?php echo e($cheque->payment_voucher->car_expense->name); ?>  </th>
                   <?php elseif($cheque->payment_voucher_id  && $cheque->payment_voucher->general_name ): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px">   <?php echo e($cheque->payment_voucher->general_name); ?>  </th>
                  <?php elseif(!$cheque->client_id ): ?>
<th style="text-align:center; word-break: break-word; font-weight:900; border-color:#0000003c; font-size:14px">
    <?php echo e($cheque->general_name); ?>

</th>
                 
                  <?php else: ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px">     </th>
                   <?php endif; ?>
 
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> 
                   <?php if($cheque->invoice_id): ?>
                   <span><a   href='<?php echo e(url("/invoice/details/$cheque->invoice_id")); ?>'  > # <?php echo e($cheque->invoice_id); ?> &nbsp;&nbsp; </a>    فاتورة &nbsp;&nbsp; </span>
                   <?php elseif( $cheque->payment_voucher_id  ): ?>
                   <span>  <?php echo e($cheque->payment_voucher->type); ?></span>
                   <?php else: ?>
                   <span>  سند  قبض عام </span>
                   <?php endif; ?>
                  </th>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px">
                       
                     <span><a   href='<?php echo e(url("/cheque/details/$cheque->id")); ?>'  > #<?php echo e($cheque->serial); ?>  </a>    </span>
                    </th>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($cheque->bank->name); ?>    </th>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($cheque->date); ?>    </th>
                   <th style="text-align:center; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($cheque->pay); ?>    </th>
                   
                   
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> 
                   
                  <?php if($cheque->status == Null): ?>
                  <span class="badge bg-warning"> Waiting... </span>
                  <?php elseif( $cheque->status == "Accepted" ): ?>
                  <span class="badge bg-success">  تم الصرف</span>
                  <?php else: ?>
                  <span class="badge bg-danger">  تم الرفض </span>
                  <?php endif; ?>

                  </th>
                  
                 </tr>
                 
                 
                  
                <?php endforeach; ?>
                 </tbody>
                 </table>
               </div>
               <!-- /.card-body -->
              
 
 
 
                 
                 
                  <div style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; direction: rtl; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #e1e8ed; margin: 20px; ">
  
            <div style="background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;">
              <h3 style="color: white; margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center;">
                  <span style="margin-left: 10px;">📋</span> 
                           سندات القبض اليومية
              </h3>
              <span style="background: rgba(255,255,255,0.2); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px;">  <?php echo e(count($receipts)); ?></span>
            </div>
                   
                
                 <table id="example10" class="table table-bordered">
                   <thead>
                   
                  <tr >
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> السريال    </th>

                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> تاريخ نشأة السند    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> العميل    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> الفاتورة    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> المبلغ    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> ايداعات/شيكات    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> الحسابات الاخري    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> التبويب    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> نظير    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> ملاحظات    </th>
                    
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> -    </th>
 
                  </tr>
                  </thead>
               <tbody>
                            
                 <?php foreach( $receipts as $receipt ): ?>   
                  
                  
 
                  
                 <tr>
                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" > 
    <a   href='<?php echo e(url("/receipt/edit/$receipt->id")); ?>'>  <?php echo e($receipt->id); ?>  </a>  
                 </td>
                  
                   <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" ><?php echo e($receipt->created_at); ?> </td>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($receipt->client_id ? $receipt->client->name:'تغذية خزنة /'); ?>

                   <?php echo e($receipt->general_name); ?>

                   </th>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> 
                   
                   <a   href='<?php echo e(url("/invoice/details/$receipt->invoice_id")); ?>'  > <?php echo e($receipt->invoice_id ? "#". $receipt->invoice_id:""); ?> </a>  
                      
                  </th>
                   <th style="text-align:center; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($receipt->pay); ?>   </th>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> 
                   <a   href=''  > <?php echo e($receipt->cheque_id ? "#".$receipt->cheque_id:""); ?> </a>    
                   
                     </th>
                     <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($receipt->safe_account ? $receipt->safe_account->payment_method->name ." -- ".$receipt->safe_account->branch->name  :""); ?>    </th>
                  
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px">  <?php echo e($receipt->tab_id ? $receipt->tab->name : ''); ?>   <br>  
                        <a   style="
    background:#cbd5e1;
    color:#0f172a;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    display:inline-block;
   "
 href='<?php echo e(url("/tab/tabulate_voucher/$receipt->id")); ?>'  target="_blank"   > 
 <i class="fas fa-edit"></i>
 </a>
                   </th>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($receipt->note1); ?>    </th>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($receipt->note2); ?>    </th>
                                    
                                    
                                    
                                    
                                     <td style="text-align:center;  font-weight:900;border-color:#0000003c;font-size:14px" >  <a   href='<?php echo e(url("/receipt/print/$receipt->id")); ?>'>  
                                     <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-printer" viewBox="0 0 16 16">
  <path d="M2.5 8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"/>
  <path d="M5 1a2 2 0 0 0-2 2v2H2a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h1v1a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-1h1a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-1V3a2 2 0 0 0-2-2zM4 3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2H4zm1 5a2 2 0 0 0-2 2v1H2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v-1a2 2 0 0 0-2-2zm7 2v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1"/>
</svg>
                                     </a> </td>

                 </tr>
                <?php endforeach; ?>
                 </tbody>
                 </table>
               </div>
               






 
                   
                    <div style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; direction: rtl; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #e1e8ed; margin: 20px;  ">
  
            <div style="background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;">
              <h3 style="color: white; margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center;">
                  <span style="margin-left: 10px;">📋</span> 
                           سندات الصرف اليومية
              </h3>
              <span style="background: rgba(255,255,255,0.2); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px;">
                  <?php echo e(count($payment_vouchers)); ?></span>
            </div>
                 <table id="example10" class="table table-bordered">
                   <thead>
                   
                  <tr >
                  <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> السريال    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> تاريخ نشأة السند    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> النوع    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> المبلغ    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> ايداعات/شيكات    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> الحساب    </th>
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> مصروف لـ    </th>
                   
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;">التبويب</th>
                   
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> نظير    </th>

                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> ملاحظات    </th>
                   
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> Approved by    </th>
                   
                   <th style="text-align:center;vertical-align: middle;background-color:#2C4E71;color:#FFF;border-color:#0000003c;border-width: 2px;"> -</th>
 
                  </tr>
                  </thead>
               <tbody>
                            
                 <?php foreach( $payment_vouchers as $voucher ): ?>   
                  
                  
 
                  
                 <tr>
                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" > 
                 
                 <a   href='<?php echo e(url("/payment_voucher/edit/$voucher->id")); ?>'>  <?php echo e($voucher->id); ?>  </a>
                 </td>

                   <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" ><?php echo e($voucher->created_at); ?> </td>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->type); ?>    </th>
                   
                   <th style="text-align:center; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->pay); ?>    </th>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> 
                   <a   href=''  > <?php echo e($voucher->cheque_id ? "#".$voucher->cheque_id:""); ?> </a>
                   
                   </th>
                   
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->safe_account ? $voucher->safe_account->payment_method->name ." -- ".$voucher->safe_account->branch->name  :""); ?>    </th>
                   
                   <?php if($voucher->type == 'سند صرف عام'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->general_name); ?>    </th>
                   <?php elseif($voucher->type == 'سند صرف موظفين'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->employee->name); ?>    </th>
                   <?php elseif($voucher->type == 'سند صرف ميزانية'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->general_name); ?>    </th>
                   <?php elseif($voucher->type == 'سند صرف سيارات'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->general_name); ?>    </th>
                   <?php elseif($voucher->type == 'سند صرف عهدة غير مربوطة بمبلغ'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->general_name); ?>     </th>
                   <?php elseif($voucher->type == 'سند صرف عهدة مربوطة بمبلغ'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->general_name); ?>    </th>
                   <?php endif; ?>
                   
 <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px">  <?php echo e($voucher->tab_id ? $voucher->tab->name : ''); ?>   <br>  
                        <a style="
    background:#cbd5e1;
    color:#0f172a;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    display:inline-block;
   " href='<?php echo e(url("/tab/tabulate_payment_voucher/$voucher->id")); ?>'  target="_blank"  > 
   <i class="fas fa-edit"></i>
   </a>
                   </th>
                   
                   <?php if($voucher->type == 'سند صرف عام'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->note1); ?>    </th>
                   <?php elseif($voucher->type == 'سند صرف موظفين'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->note1); ?>    </th>
                   <?php elseif($voucher->type == 'سند صرف ميزانية'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->budget->name); ?>    </th>
                   <?php elseif($voucher->type == 'سند صرف سيارات'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->car->num); ?>    </th>
                   <?php elseif($voucher->type == 'سند صرف عهدة غير مربوطة بمبلغ'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->trust->name); ?>     </th>
                   <?php elseif($voucher->type == 'سند صرف عهدة مربوطة بمبلغ'): ?>
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->trust->name); ?>    </th>
                   <?php endif; ?>
                   
                   
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> <?php echo e($voucher->note2); ?>    </th>
                   
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px"> 
                   <span style="
        background:#dcfce7;
        color:#166534;
        padding:6px 14px;
        border-radius:20px;
        font-weight:600;
        font-size:13px;
        display:inline-block;
    ">
                 ✔  <?php echo e($voucher->admin->name); ?>   
                   </span>
                   </th>
                   
                   <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:14px" > 
                         <?php if( $voucher->approve == "Approved" || $voucher->approve == "Rejected" ): ?>
                 <a   href='<?php echo e(url("/payment_voucher/print/$voucher->id")); ?>'> 
                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-printer" viewBox="0 0 16 16">
  <path d="M2.5 8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"/>
  <path d="M5 1a2 2 0 0 0-2 2v2H2a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h1v1a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-1h1a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-1V3a2 2 0 0 0-2-2zM4 3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2H4zm1 5a2 2 0 0 0-2 2v1H2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v-1a2 2 0 0 0-2-2zm7 2v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1"/>
</svg>
                 </a> 
                 <?php endif; ?>
                 </th>
                 </tr>
                   
                
                  </tr>
                <?php endforeach; ?>
                 </tbody>
                 </table>
               </div>
                 

<br><br><br><br><br><br><br><br><br>

 <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.masterHome2', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>