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


 
    
    <div class="card">
               
              <!-- /.card-header -->
              <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                  <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( $deposites as $deposite ): ?>   
                 
                 

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

                  <?php if($deposite->client_id): ?>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($deposite->client->name); ?>    </th>
                  <?php elseif( $deposite->payment_voucher_id  && $deposite->payment_voucher->budget_id ): ?>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($deposite->payment_voucher->budget->name); ?>    </th>
                  <?php elseif( $deposite->payment_voucher_id  && $deposite->payment_voucher->employee_id): ?>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px">   <?php echo e($deposite->payment_voucher->employee->name); ?>  </th>
                  <?php elseif($deposite->payment_voucher_id  &&  $deposite->payment_voucher->car_id): ?>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px">   <?php echo e($deposite->payment_voucher->car_expense->name); ?>  </th>
                  <?php elseif($deposite->payment_voucher_id  && $deposite->payment_voucher->general_name ): ?>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px">   <?php echo e($deposite->payment_voucher->general_name); ?>  </th>
                   <?php else: ?>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px">     </th>
                  <?php endif; ?>

                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> 
                  <a   href='<?php echo e(url("/invoice/details/$deposite->invoice_id")); ?>'  > #<?php echo e($deposite->invoice_id); ?> </a>  
                     
                 </th>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> #<?php echo e($deposite->serial); ?>    </th>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($deposite->bank->name); ?>    </th>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($deposite->date); ?>    </th>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($deposite->pay); ?>    </th>
                </tr>
               <?php endforeach; ?>
                </tbody>
                </table>
              </div>
              <!-- /.card-body -->
            </div>  

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

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