<?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>
                  <th >سـعـر الـوحـدة</th>
                  <th >الأجـمالـي</th>
            </tr>
            </thead>
            <tbody>
             
             
            <?php foreach( $mains as  $key=>$main ): ?>

                 
                 <tr>
                 
                 <td><?php echo e($main->vehicle->vehicle_num); ?> </td>
                   <td><?php echo e($main->driver->name); ?> </td>
                   <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>

             

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



 
 



      
</section>




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

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