

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

<!-- Content wrapper scroll start -->
<div class="content-wrapper-scroll">

<!-- Content wrapper start -->
<div class="content-wrapper">
<div class="col-xl-4 col-lg-4 col-md-6 col-sm-6 col-12">
        <figure class="user-card">
            <figcaption>
                <h5>REPORT BY CATEGORY - <?php echo e(@strtoupper(request('branch'))); ?></h5>
                <ul class="list-group">
                    <li class="list-group-item"><span>Date: </span><?php echo e(request('date')); ?></li>
                    <li class="list-group-item"><span>Total Quantity: </span><?php echo e($itemsQuantity); ?></li>
                    <li class="list-group-item"><span>Total Cash: </span><?php echo e(empty($app->currency) ? "GHS" : $app->currency); ?><?php echo number_format($itemsPrice, 2); ?></li>
                </ul>
            </figcaption>
        </figure>
    </div>
    <!-- Row start -->
    <div class="row gutters">
        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
            
            <div class="card">
                <div class="card-body">
                    <div class="table-responsive">
                    <table id="copy-print-csv" class="table v-middle">
                            <thead>
                                <tr>
                                  <th>Products</th>
                                  <th>Quantity</th>
                                  <th>Total</th>
                                  <th>Action</th>													  
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                  <td>
                                      <div class="media-box">
                                          <div class="media-box-body">
                                              <a href="#" class="text-truncate"><?php echo e(@strtoupper($item->name)); ?></a>
                                          </div>
                                      </div>
                                  </td>
                                  <td>
                                  <?php echo e($item->quantity); ?>

                                  </td>
                                  <td>
                                  GH₵<?php echo number_format($item->total, 2); ?>
                                  </td>		
                                  <td>
                                    <form action="<?php echo e(route('showDepartmentItemDate')); ?>" method="get">
                                        <input type="text" name="name" value="<?php echo e(@strtoupper($item->name)); ?>" hidden>
                                        <input type="text" name="date" value="<?php echo e(request()->date); ?>"hidden >
                                        <?php if(request()->branch == null): ?><?php else: ?>
                                        <input type="text" name="branch" value="<?php echo e(request()->branch); ?>" hidden>
                                        <?php endif; ?>
                                        <button class="btn btn-outline-primary btn-sm"> <i class="icon-eye1"></i> </button>
                                    </form>
                                  </td>											  
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                               
                            </tbody>
                    </table>
                    </div>

                </div>
            </div>

        </div>
    </div>
    <!-- Row end -->

</div>
<!-- Content wrapper end -->


<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/morttacy/morttsonsposfiles/resources/views/department-summary-all-using-date.blade.php ENDPATH**/ ?>