Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
painelkaickaviella.meumercado.app
/
storage
/
framework
/
views
/
Editing: cc09d314072197e92e6c2224a9376b3590589a61.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Title --> <title><?php echo e(translate('Invoice')); ?></title> <!-- Font --> <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet"> <!-- CSS Implementing Plugins --> <link rel="stylesheet" href="<?php echo e(asset('public/assets/admin')); ?>/css/vendor.min.css"> <link rel="stylesheet" href="<?php echo e(asset('public/assets/admin')); ?>/vendor/icon-set/style.css"> <!-- CSS Front Template --> <link rel="stylesheet" href="<?php echo e(asset('public/assets/admin')); ?>/css/theme.minc619.css?v=1.0"> </head> <body class="footer-offset"> <main id="content" role="main" class="main pointer-event"> <div class="content container-fluid"> <div class="row"> <div class="col-6"> </div> <div class="col-6"> <h2 class="float-right"><?php echo e(translate('#INVOICE')); ?></h2> </div> </div> <div class="row"> <div class="col-4"> <img width="150" src="<?php echo e(asset('storage/app/public/ecommerce')); ?>/<?php echo e(\App\Model\BusinessSetting::where(['key'=>'logo'])->first()->value); ?>"> <br><br> <strong><?php echo e(translate('Phone')); ?> : <?php echo e(\App\Model\BusinessSetting::where(['key'=>'phone'])->first()->value); ?></strong><br> <strong><?php echo e(translate('Email')); ?> : <?php echo e(\App\Model\BusinessSetting::where(['key'=>'email_address'])->first()->value); ?></strong><br> <strong><?php echo e(translate('Address')); ?> : <?php echo e(\App\Model\BusinessSetting::where(['key'=>'address'])->first()->value); ?></strong><br><br> </div> <div class="col-4"></div> <div class="col-4"> <?php if($order->customer): ?> <strong class="float-right"><?php echo e(translate('Order ID')); ?> : <?php echo e($order['id']); ?></strong><br> <strong class="float-right"><?php echo e(translate('Customer Name')); ?> : <?php echo e($order->customer['f_name'].' '.$order->customer['l_name']); ?></strong><br> <strong class="float-right"><?php echo e(translate('Phone')); ?> : <?php echo e($order->customer['phone']); ?></strong><br> <strong class="float-right"><?php echo e(translate('Delivery Address')); ?> : <?php echo e($order->delivery_address?$order->delivery_address['address']:''); ?></strong><br> <?php endif; ?> </div> </div> <div class="row"> <div class="col-12 mb-3"> <!-- Card --> <div class="card mb-3 mb-lg-5"> <!-- Header --> <div class="card-header" style="display: block!important;"> <div class="row"> <div class="col-12 pb-2 border-bottom"> <h4 class="card-header-title"> <?php echo e(translate('Order details')); ?> <span class="badge badge-soft-dark rounded-circle ml-1"><?php echo e($order->details->count()); ?></span> </h4> </div> <div class="col-6 pt-2"> <h6 style="color: #8a8a8a;"> <?php echo e(translate('Order Note')); ?> : <?php echo e($order['order_note']); ?> </h6> </div> <div class="col-6 pt-2"> <div class="text-right"> <h6 class="text-capitalize" style="color: #8a8a8a;"> <?php echo e(translate('Payment Method')); ?> : <?php echo e(str_replace('_',' ',$order['payment_method'])); ?> </h6> <h6 class="" style="color: #8a8a8a;"> <?php if($order['transaction_reference']==null): ?> <?php echo e(translate('Reference Code')); ?> : <button class="btn btn-outline-primary btn-sm" data-toggle="modal" data-target=".bd-example-modal-sm"> <?php echo e(translate('Add')); ?> </button> <?php else: ?> <?php echo e(translate('Reference Code')); ?> : <?php echo e($order['transaction_reference']); ?> <?php endif; ?> </h6> <h6 class="text-capitalize" style="color: #8a8a8a;"><?php echo e(translate('Order Type')); ?> : <?php echo e(str_replace('_',' ',$order['order_type'])); ?></h6> </div> </div> </div> </div> <!-- End Header --> <!-- Body --> <div class="card-body"> <?php ($sub_total=0); ?> <?php ($total_tax=0); ?> <?php ($total_dis_on_pro=0); ?> <?php $__currentLoopData = $order->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($detail->product): ?> <!-- Media --> <div class="media"> <div class="avatar avatar-xl mr-3"> <img class="img-fluid" src="<?php echo e(asset('storage/app/public/product')); ?>/<?php echo e(json_decode($detail->product['image'],true)[0]); ?>" onerror="this.src='<?php echo e(asset('public/assets/admin/img/160x160/img2.jpg')); ?>'" alt="Image Description"> </div> <div class="media-body"> <div class="row"> <div class="col-md-5 mb-3 mb-md-0"> <strong> <?php echo e($detail->product['name']); ?></strong><br> <?php if(count(json_decode($detail['variation'],true))>0): ?> <strong><u>Variation : </u></strong> <?php $__currentLoopData = json_decode($detail['variation'],true)[0] ?? json_decode($detail['variation'],true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key1 =>$variation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="font-size-sm text-body"> <span><?php echo e($key1); ?> : </span> <span class="font-weight-bold"><?php echo e($variation); ?></span> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <div class="col col-md-2 align-self-center"> <?php if($detail['discount_on_product']!=0): ?> <h5> <strike> </strike> </h5> <?php endif; ?> <h6><?php echo e(Helpers::set_symbol($detail['price']-$detail['discount_on_product'])); ?></h6> </div> <div class="col col-md-2 align-self-center"> <h5><?php echo e($detail['quantity']); ?> <?php echo e(\App\CentralLogics\translate(''.$detail['unit'])); ?></h5> </div> <div class="col col-md-3 align-self-center text-right"> <?php ($amount=($detail['price']-$detail['discount_on_product'])*$detail['quantity']); ?> <h5><?php echo e(Helpers::set_symbol($amount)); ?></h5> </div> </div> </div> </div> <?php ($sub_total+=$amount); ?> <?php ($total_tax+=$detail['tax_amount']*$detail['quantity']); ?> <!-- End Media --> <hr> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="row justify-content-md-end mb-3"> <div class="col-md-9 col-lg-8"> <dl class="row text-sm-right"> <dt class="col-sm-6"><?php echo e(translate('Items Price')); ?>:</dt> <dd class="col-sm-6"><?php echo e(Helpers::set_symbol($sub_total)); ?></dd> <dt class="col-sm-6"><?php echo e(translate('Tax / VAT')); ?>:</dt> <dd class="col-sm-6"><?php echo e(Helpers::set_symbol($total_tax)); ?></dd> <dt class="col-sm-6"><?php echo e(translate('Subtotal')); ?>:</dt> <dd class="col-sm-6"> <?php echo e(Helpers::set_symbol($sub_total+$total_tax)); ?></dd> <dt class="col-sm-6"><?php echo e(translate('Coupon Discount')); ?>:</dt> <dd class="col-sm-6"> - <?php echo e(Helpers::set_symbol($order['coupon_discount_amount'])); ?></dd> <dt class="col-6"><?php echo e(\App\CentralLogics\translate('Extra Discount')); ?>:</dt> <dd class="col-6"> - <?php echo e(Helpers::set_symbol($order['extra_discount'])); ?></dd> <dt class="col-sm-6"><?php echo e(translate('Delivery Fee')); ?>:</dt> <dd class="col-sm-6"> <?php if($order['order_type']=='self_pickup'): ?> <?php ($del_c=0); ?> <?php else: ?> <?php ($del_c=$order['delivery_charge']); ?> <?php endif; ?> <?php echo e(Helpers::set_symbol($del_c)); ?> <hr> </dd> <dt class="col-sm-6"><?php echo e(translate('Total')); ?>:</dt> <dd class="col-sm-6"><?php echo e(Helpers::set_symbol($sub_total+$del_c+$total_tax-$order['coupon_discount_amount']-$order['extra_discount'])); ?></dd> </dl> <!-- End Row --> </div> </div> <!-- End Row --> </div> <!-- End Body --> </div> <!-- End Card --> </div> </div> </div> <div class="footer"> <div class="row justify-content-between align-items-center"> <div class="col"> <p class="font-size-sm mb-0"> © <?php echo e(\App\Model\BusinessSetting::where(['key'=>'restaurant_name'])->first()->value); ?>. <span class="d-none d-sm-inline-block"><?php echo e(\App\Model\BusinessSetting::where(['key'=>'footer_text'])->first()->value); ?></span> </p> </div> </div> </div> </main> <script src="<?php echo e(asset('public/assets/admin')); ?>/js/demo.js"></script> <!-- JS Implementing Plugins --> <!-- JS Front --> <script src="<?php echo e(asset('public/assets/admin')); ?>/js/vendor.min.js"></script> <script src="<?php echo e(asset('public/assets/admin')); ?>/js/theme.min.js"></script> <script> window.print(); </script> </body> </html> <?php /**PATH /home2/meumer25/api.meumercado.app/resources/views/admin-views/order/invoice-2.blade.php ENDPATH**/ ?>
Save
Cancel