Viewing file: 98cba03b93749feb9463c7f363a19254dad63eec.php (8.67 KB) -rwxrwxr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.order_details')); ?>
<?php $__env->startSection('main-content'); ?>
<div class="row"> <div class="col-lg-12"> <div class="pull-right"> <button class="btn btn-sm btn-info" id="print" type="button"><?php echo e(trans('layout.print')); ?></button> <button class="btn btn-sm btn-info" id="pdf" type="button"><?php echo e(trans('layout.pdf')); ?></button> </div> </div> </div> <div class="row" id="printableSection"> <div class="col-lg-12">
<div class="card mt-3"> <div class="card-header"> <?php echo e(trans('layout.details')); ?> <strong><?php echo e(trans('layout.order')); ?>
#<?php echo e($order->id); ?></strong> <span class="float-right"> <strong><?php echo e(trans('layout.status')); ?>:</strong> <?php echo e($order->status); ?></span></div> <div class="card-body"> <div class="row mb-5"> <div class="mt-4 col-xl-3 col-lg-3 col-md-6 col-sm-12"> <h6><?php echo e(trans('layout.customer')); ?>:</h6> <div><strong><?php echo e($order->name); ?></strong></div> <?php if($order->user): ?> <div><?php echo e(trans('layout.email')); ?>: <?php echo e($order->user->email); ?></div> <?php endif; ?> <div><?php echo e(trans('layout.phone')); ?>: <?php echo e($order->phone_number); ?></div> <?php if($order->type=='delivery'): ?> <div><?php echo e(trans('layout.delivery_address')); ?>: <?php echo e($order->address); ?></div> <?php endif; ?> </div>
</div> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th class="center">#</th> <th><?php echo e(trans('layout.item')); ?></th> <th><?php echo e(trans('layout.quantity')); ?></th> <th><?php echo e(trans('layout.price')); ?></th> <th><?php echo e(trans('layout.discount')); ?></th> <th><?php echo e(trans('layout.tax')); ?></th> <th><?php echo e(trans('layout.total_price')); ?></th> </tr> </thead> <tbody> <?php $discount=0;$totalTax=0; ?> <?php $__currentLoopData = $order->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$details): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $discount+=$details->discount; ?> <?php $totalTax+=$details->tax_amount; ?> <tr> <td class="center"><?php echo e($key+1); ?></td> <td><?php echo e($details->item->name); ?>
<?php if($order->extras()->where('item_id',$details->item_id)->count()>0): ?> <br> <span class="details-item-extra"><?php echo e(trans('layout.extra')); ?>: </span> <?php $__currentLoopData = $order->extras()->where('item_id',$details->item_id)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$extra): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <span class="details-item-extra-indi"><?php echo e($extra->quantity); ?> <?php echo e($extra->title); ?></span><?php if($key<$order->extras()->where('item_id',$details->item_id)->count()-1): ?> ,<?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </td> <td><?php echo e($details->quantity); ?></td> <td><?php echo e(formatNumber($details->item->price)); ?></td> <td><?php echo e(formatNumber($details->discount)); ?></td> <td><?php echo e(formatNumber($details->tax_amount)); ?></td> <td><?php echo e(formatNumber($details->total+$details->tax_amount)); ?>
<?php if($order->extras()->where('item_id',$details->item_id)->count()>0): ?> <br> <?php $totalExtra=0 ?> <span class="details-item-extra"><?php echo e(trans('layout.extra')); ?>: </span> <?php $__currentLoopData = $order->extras()->where('item_id',$details->item_id)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$extra): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $totalExtra+=($extra->price*$extra->quantity) ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <span class="details-item-extra-indi"><?php echo e(formatNumber($totalExtra)); ?></span> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody> </table> </div> <div class="row"> <div class="col-lg-4 col-sm-5"> <?php if($order->comment): ?> <strong><?php echo e(trans('layout.comment')); ?>:</strong> <br> <?php echo e($order->comment); ?>
<?php endif; ?> </div> <div class="col-lg-4 col-sm-5 ml-auto"> <table class="table table-clear"> <tbody> <tr> <td class="left"><strong><?php echo e(trans('layout.total_discount')); ?></strong></td> <td class="right"><?php echo e(formatNumberWithCurrSymbol($discount)); ?></td> </tr> <tr> <td class="left"><strong><?php echo e(trans('layout.total_tax')); ?></strong></td> <td class="right"><?php echo e(formatNumberWithCurrSymbol($totalTax)); ?></td> </tr> <tr> <td class="left"><strong><?php echo e(trans('layout.total')); ?></strong></td> <td class="right"><?php echo e(formatNumberWithCurrSymbol($order->total_price)); ?></td> </tr>
</tbody> </table> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?> <script !src=""> "use strict"; $('#print').on('click', function (e) { e.preventDefault(); location.href = '<?php echo e(route('order.print',['id'=>$order->id])); ?>'; });
$('#pdf').on('click', function (e) { e.preventDefault(); window.open('<?php echo e(route('order.print',['id'=>$order->id])); ?>&type=pdf'); }) </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/qr.picotech.app/public_html/resources/views/order/details.blade.php ENDPATH**/ ?>
|