<?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:#0000003d;border-width: 2px;">  #  </th>
                  <th style="text-align:center;vertical-align: middle; background-color:#2C4E71; color:#FFF;border-color:#0000003d;border-width: 2px;">  Date  </th>
                  <th style="text-align:center;vertical-align: middle; background-color:#2C4E71;color:#FFF;border-color:#0000003d;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( $history as $hist ): ?>   
                 
                 

                 
                <tr>
                    
                    <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c" ><?php echo e($hist->id); ?> </td>
                 
                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c" ><?php echo e($hist->created_at); ?> </td>
                 
                 
                 <?php if($hist->main_id ): ?>
                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c" ><?php echo e($hist->main ? $hist->main->waste->name:''); ?>  &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;  num ( <?php echo e($hist->main_id); ?> ) &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; quantity ( <?php echo e($hist->main?$hist->main->quantity :''); ?> )</td>
                 <?php else: ?>
                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c" > Transfer/Feed </td>
                 <?php endif; ?>
                  <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c" ><?php echo e($hist->quantity_before); ?> </td>
                  
                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c" ><?php echo e($hist->quantity_after); ?></td>
                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c" ><?php echo e($hist->descreption); ?> </td>

                 <td style="text-align:center; word-break: break-word; font-weight:900;border-color:#0000003c" ><?php echo e($hist->sell_store->store->store_name); ?> -- <?php echo e($hist->sell_store->branch->name); ?> &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; num ( <?php echo e($hist->sell_store_id); ?> ) </td>

                  

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