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



<section class="invoice" style="border: 0px solid #f4f4f4;" >
      <!-- title row -->

     


       
     

       

      <!-- Table row -->
      <div class="row">
        <div class="col-xs-12 table-responsive">
          <table class="table table-striped">
            <thead>
            <tr>
                  <th> تاريخ و سـاعـة الـوصـول</th>
                  
                  
                  <th >المـورد</th>
                  <th >الـصنـف</th>
                  <th >الـكـمـيـة / كـجـم</th>
                  <th >الـكـمـيـة / عـدد</th>
                  <th >سـعـر الـوحـدة</th>
                  <th >الأجـمالـي</th>
            </tr>
            </thead>
            <tbody>
             
             
            <?php foreach( $mains as  $key=>$main ): ?>

                 
                 <tr>
                 
                   <td><?php echo e($main->created_at); ?> </td>
                   <td > <?php echo e($main->supplier->name); ?> </td>
                  <td > <?php echo e($main->waste->name); ?></td>
                   
                   <?php if( $main->waste->unit == "كجم"): ?>
                   <td > <?php echo e($main->quantity); ?>  </td>
                   <?php else: ?>
                   <td > </td>
                   <?php endif; ?>
                   <?php if( $main->waste->unit == "عدد"): ?>
                   <td > <?php echo e($main->quantity); ?>  </td>
                   <?php else: ?>
                   <td > </td>
                   <?php endif; ?>
 
                   <td ><?php echo e($main->price ? $main->price : ''); ?> </td>
                 <td  ><?php echo e($main->price ? $main->price * $main->quantity: ''); ?> </td>

                   
                 </tr>
                 <?php endforeach; ?>



                  
            </tbody>

            <tfoot>
              <tr>
              
              <td>  <div style="text-align:center;font-weight:bold;color: #000;padding: 10px;border: solid 3px green;">
                    عدد الكارتات :
                  <span style="font-size:18px;font-weight:bold"> <?php echo e(count($mains)); ?> <span>
                </div> </td>
              <td>  </td>
                <td style="font-weight: bold;font-size: 20px;">  الأجـمـالـي</td>
                <td style="font-weight: bold;font-size: 20px;"> <?php echo e($sum_kg); ?>   كـجـم</td>
                <td style="font-weight: bold;font-size: 20px;"> <?php echo e($sum_num); ?>    عدد </td>
                <td>  </td> 
                <td style="font-weight: bold;font-size: 20px;" > <?php echo e($total_price); ?> جـ </td>
              </tr>
            </div>

          </table>
        </tfoot>
        <!-- /.col -->
      </div>
       
    



 
 



      
</section>




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

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