관리-도구
편집 파일: c349bbf487f7180e45771b8fbcb4d3ccee361075.php
<?php $__env->startSection('content'); ?> <div class="row"> <div class="col-lg-9"> <div class="card"> <div class="card-header"> <span class="panel-title"><?php echo e(_lang('View Order Details')); ?></span> </div> <div class="card-body"> <div class="receipt-content"> <div class="row"> <div class="col-md-12"> <div class="invoice-wrapper"> <?php if($order->getPaymentStatus(false) == 1): ?> <div class="payment-info"> <div class="row"> <div class="col-sm-6"> <span><?php echo e(_lang('Order ID')); ?>: <b><?php echo e($order->id); ?></b></span><br> <span><?php echo e(_lang('Order Date')); ?>: <b><?php echo e($order->created_at); ?></b></span><br> <span><?php echo e(_lang('Status')); ?>: <b><?php echo xss_clean($order->getStatus()); ?></b></span><br> <span><u><?php echo e(_lang('Transaction ID')); ?></u></span> <strong><?php echo e($order->transaction->transaction_id); ?></strong> </div> <div class="col-sm-6 text-right"> <span><?php echo e(_lang('Payment Method')); ?></span> <strong><?php echo e(str_replace('_',' ',$order->payment_method)); ?></strong> <span><?php echo e(_lang('Payment Date')); ?></span> <strong><?php echo e($order->transaction->created_at); ?></strong> </div> </div> </div> <?php else: ?> <div class="payment-info"> <div class="row"> <div class="col-sm-6"> <span><?php echo e(_lang('Order ID')); ?>: <b><?php echo e($order->id); ?></b></span><br> <span><?php echo e(_lang('Order Date')); ?>: <b><?php echo e($order->created_at); ?></b></span><br> <span><?php echo e(_lang('Status')); ?>: <b><?php echo xss_clean($order->getStatus()); ?></b></span><br> </div> <div class="col-sm-6 text-right"> <span><?php echo e(_lang('Payment Status')); ?></span> <strong><?php echo xss_clean($order->getPaymentStatus()); ?></strong> </div> </div> </div> <?php endif; ?> <div class="payment-details"> <div class="row"> <div class="col-sm-4"> <span><?php echo e(_lang('Billing Details')); ?></span> <strong> <?php echo e($order->customer_name); ?> </strong> <p> <?php echo e($order->customer_email); ?><br> <?php echo e($order->billing_address); ?><br> <?php echo e($order->billing_state); ?><br> <?php echo e($order->billing_city); ?>, <?php echo e($order->billing_post_code); ?> <br> <?php echo e($order->billing_country); ?> </p> </div> <div class="col-sm-4"> <span><?php echo e(_lang('Shipping Address')); ?></span> <p> <?php echo e($order->shipping_address); ?><br> <?php echo e($order->shipping_state); ?><br> <?php echo e($order->shipping_city); ?>, <?php echo e($order->shipping_post_code); ?> <br> <?php echo e($order->shipping_country); ?> </p> </div> <div class="col-sm-4 text-right"> <span><?php echo e(_lang('Payment To')); ?></span> <strong> <?php echo e(get_option('company_name')); ?> </strong> <p> <?php echo e(get_option('email')); ?><br> <?php echo e(get_option('phone')); ?><br> <?php echo xss_clean(get_option('address')); ?> <br> </p> </div> </div> </div> <div class="line-items"> <div class="headers clearfix"> <div class="row"> <div class="col-6 col-md-4"><?php echo e(_lang('Description')); ?></div> <div class="col-6 col-md-3 text-right"><?php echo e(_lang('Unit Price')); ?></div> <div class="col-6 col-md-2"><?php echo e(_lang('Quantity')); ?></div> <div class="col-6 col-md-3 text-right"><?php echo e(_lang('Amount')); ?></div> </div> </div> <div class="items"> <?php $__currentLoopData = $order->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="row item"> <div class="col-md-4 desc"> <?php echo e($product->product->translation->name); ?> </div> <div class="col-md-3 unit_price"> <?php echo xss_clean(decimalPlace($product->unit_price)); ?> </div> <div class="col-md-2 qty"> <?php echo e($product->qty); ?> </div> <div class="col-md-3 amount"> <?php echo xss_clean(decimalPlace($product->line_total)); ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="total text-right"> <?php if($order->note != ''): ?> <p class="extra-notes"> <strong><?php echo e(_lang('Extra Notes')); ?></strong> <?php echo e($order->note); ?> </p> <?php endif; ?> <div class="field"> <?php echo e(_lang('Sub Total')); ?> <span><?php echo xss_clean(decimalPlace($order->sub_total)); ?></span> </div> <div class="field"> <?php echo e(_lang('Shipping')); ?> <span>+ <?php echo xss_clean(decimalPlace($order->shipping_cost)); ?></span> </div> <div class="field"> <?php echo e(_lang('Discount')); ?> <span>- <?php echo xss_clean(decimalPlace($order->discount)); ?></span> </div> <?php $__currentLoopData = $order->taxes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="field"> <?php echo e($tax->translation->name); ?> <span>+ <?php echo xss_clean(decimalPlace($tax->order_tax->amount)); ?></span> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="field grand-total"> <?php echo e(_lang('Total')); ?> <span><?php echo xss_clean(decimalPlace($order->total)); ?></span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="col-lg-3"> <div class="card"> <div class="card-header"> <span class="panel-title"><?php echo e(_lang('Order Actions')); ?></span> </div> <div class="card-body"> <form action="<?php echo e(action('OrderController@update', $order->id)); ?>" method="post" id="order-update-form"> <?php echo csrf_field(); ?> <input name="_method" type="hidden" value="PATCH"> <div class="col-md-12"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Order Status')); ?></label> <select class="form-control auto-select" data-selected="<?php echo e($order->status); ?>" name="status" required> <option value="pending_payment"><?php echo e(_lang('Pending Payment')); ?></option> <option value="pending"><?php echo e(_lang('Pending')); ?></option> <option value="completed"><?php echo e(_lang('Completed')); ?></option> <option value="on_hold"><?php echo e(_lang('On Hold')); ?></option> <option value="processing"><?php echo e(_lang('Processing')); ?></option> <option value="refunded"><?php echo e(_lang('Refunded')); ?></option> <option value="canceled"><?php echo e(_lang('Canceled')); ?></option> </select> </div> </div> <?php if($order->getPaymentStatus(false) == 0): ?> <div class="col-md-12"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Payment Status')); ?></label> <select class="form-control" name="payment_status" id="payment_status" required> <option value="pending" <?php echo e($order->getPaymentStatus(false) == 0 ? 'selected' : ''); ?>><?php echo e(_lang('Pending')); ?></option> <option value="completed" <?php echo e($order->getPaymentStatus(false) == 1 ? 'selected' : ''); ?>><?php echo e(_lang('Completed')); ?></option> </select> </div> </div> <div class="col-md-12 d-none transaction_id"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Payment Method')); ?></label> <select class="form-control auto-select" data-selected="<?php echo e($order->payment_method); ?>" name="payment_method"> <?php if($order->payment_method == ''): ?> <option value=""><?php echo e(_lang('Select Method')); ?></option> <option value="Cash_On_Deliver"><?php echo e(_lang('Cash On Deliver')); ?></option> <option value="Bank_Transfer"><?php echo e(_lang('Bank Transfer')); ?></option> <?php else: ?> <option value="<?php echo e($order->payment_method); ?>"><?php echo e(str_replace('_',' ',$order->payment_method)); ?></option> <?php endif; ?> </select> </div> </div> <div class="col-md-12 d-none transaction_id"> <div class="form-group"> <label class="control-label"><?php echo e(_lang('Transaction ID')); ?></label> <input type="text" name="transaction_id" class="form-control"> </div> </div> <?php endif; ?> <div class="col-md-12"> <div class="form-group"> <button type="submit" class="btn btn-warning btn-block"><?php echo e(_lang('Update Order')); ?></button> </div> </div> </form> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/customamgdigital/saintsaccessories.custom.amgdigitalagency.com/resources/views/backend/order/view.blade.php ENDPATH**/ ?>