Edit File: 206f98f151902669562c104e3beb8bc344528a4a.php
<div class="col-12"> <div class="card"> <div class="card-header"> <h5 class=""><i class="fa fa-info-circle"></i> <?php echo e(__('admin.products')); ?> </h5> </div> <hr> <div class="card-content"> <div class="card-body"> <table class="table " id="tab"> <thead> <tr> <th><?php echo e(__('admin.product_name')); ?></th> <th><?php echo e(__('admin.category')); ?></th> <th><?php echo e(__('admin.quantity')); ?></th> <th><?php echo e(__('admin.unit_price')); ?></th> <th><?php echo e(__('admin.total')); ?></th> <th><?php echo e(__('admin.total_incl_addons')); ?></th> <th><?php echo e(__('admin.addons')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $order->orderItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($item?->product?->name); ?></td> <td><?php echo e($item?->product?->category?->name); ?></td> <td><?php echo e($item?->quantity); ?></td> <td><?php echo e($item?->unit_price); ?></td> <td><?php echo e($item?->total); ?></td> <td><?php echo e($item?->total_incl_addons); ?></td> <?php if($item->orderItemAddons->count() > 0): ?> <td> <button type="button" class="btn" data-toggle="collapse" data-target="#collapseRow<?php echo e($item?->id); ?>" aria-expanded="false"> <i class="fa fa-chevron-down"></i> </button> </td> <?php else: ?> <td><?php echo e(__('admin.no_addons')); ?></td> <?php endif; ?> </tr> <tr class="collapse out" id="collapseRow<?php echo e($item?->id); ?>"> <td colspan="7"> <table class="table table-striped" id="tab"> <thead> <tr> <th><?php echo e(__('admin.addon_name')); ?></th> <th><?php echo e(__('admin.quantity')); ?></th> <th><?php echo e(__('admin.unit_price')); ?></th> <th><?php echo e(__('admin.total')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $item->orderItemAddons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $addon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($addon?->addon?->name); ?></td> <td><?php echo e($addon?->quantity); ?></td> <td><?php echo e($addon?->unit_price); ?></td> <td><?php echo e($addon?->total); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> <?php /**PATH /home/thunderw/public_html/resources/views/admin/orders/details/products.blade.php ENDPATH**/ ?>
Back to File Manager