

<?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>
                  <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( $clients as $client ): ?>   
              
                <tr>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px">  <?php echo e($client->total_aleeh > $client->total_leeh ? $client->total_aleeh-$client->total_leeh:"0"); ?>    </th>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($client->total_leeh > $client->total_aleeh ? $client->total_leeh-$client->total_aleeh :"0"); ?>  </th>

                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px">  <?php echo e($client->total_aleeh ? $client->total_aleeh :"0"); ?>    </th>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($client->total_leeh ? $client->total_leeh  :"0"); ?>    </th>

                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($client->start_aleeh ? $client->start_aleeh :"0"); ?>    </th>
                  <th style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px"> <?php echo e($client->start_leeh ? $client->start_leeh :"0"); ?>    </th>
                  <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" ><?php echo e($client->name); ?> </td>
                  <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c;font-size:18px" ><?php echo e($client->id); ?> </td>
                   

                </tr>
               <?php endforeach; ?>
                </tbody>
                <tfoot>
                  <!-- <tr>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;">   <?php echo e($total_total_aleeh > $total_total_leeh ? $total_total_aleeh - $total_total_leeh :"0"); ?>   </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;">   <?php echo e($total_total_leeh > $total_total_aleeh ? $total_total_leeh - $total_total_aleeh :"0"); ?>   </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;"> <?php echo e($total_total_aleeh); ?>    </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;"> <?php echo e($total_total_leeh); ?>    </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;"> <?php echo e($total_start_aleeh); ?>    </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;"> <?php echo e($total_start_leeh); ?>    </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;">     </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;">      </th>
            
                  </tr>
                  -->
                  <tr>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;">   <?php echo e($sum_last_moda_aleeh); ?>   </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;">   <?php echo e($sum_last_moda_leeh); ?>   </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;"> <?php echo e($total_total_aleeh); ?>    </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;"> <?php echo e($total_total_leeh); ?>    </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;"> <?php echo e($total_start_aleeh); ?>    </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;"> <?php echo e($total_start_leeh); ?>    </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;">     </th>
                    <th style="text-align:center;vertical-align: middle;background-color:#4375aa;color:#FFF;border-color:#0000003c;border-width: 2px;">      </th>
            
                  </tr>
                </tfoot>
                </table>
              </div>
              <!-- /.card-body -->
            </div>  

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

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