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

<section class="invoice" style="border: 0px solid #f4f4f4; padding:30px" dir="rtl" >

    <div class = "col-md-12" style="padding-bottom:20px"> 

        <div class = "col-md-6" style="font-size:25px; font-weight:bold">
        تقرير
        </div>
        <div class = "col-md-6" style="font-size:18px;">
        <?php echo e(\Carbon\Carbon::now()->toDateString()); ?> 
        </div>
    </div>

<div style="margin-right:30px; font-size:16px;font-weight:bold">
  
  تقرير شركة إعادة تدوير 
  |
<?php echo e($customer); ?>

 |
الفترة من&nbsp;  
<?php echo e($dateFrom); ?> 
&nbsp; الـي   &nbsp;
 <?php echo e($dateTo); ?>

 &nbsp;
</div>
<div style="margin-right:30px; font-size:16px; font-weight:bold; margin-top:10px">
<?php foreach($selected_suppliers as $supplier  ): ?>
        <?php echo e($supplier->name); ?> &nbsp; - &nbsp;  
<?php endforeach; ?>
 </div>
</section>

<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>
                  
            </tr>
            </thead>
            <tbody>
             
             
            <?php foreach( $mains as  $key=>$main ): ?>
                 <tr>
                  <td > <?php echo e($customer); ?> </td>
                   
                  <td > <?php echo e($main->waste->name); ?></td>
                  <td > <?php echo e($main->supplier->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; ?>
 
                 </tr>
                 <?php endforeach; ?>



                  
            </tbody>

            <tfoot>
              <tr>
              <td>  </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>
              
              </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(); ?>