123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- <?php $__env->startSection('panel_content'); ?>
- <div class="aiz-titlebar mt-2 mb-4">
- <div class="row align-items-center">
- <div class="col-md-6">
- <h1 class="h3"><?php echo e(translate('Order id')); ?>: <?php echo e($order->code); ?></h1>
- </div>
- </div>
- </div>
- <div class="card">
- <div class="card-header">
- <h5 class="h6 mb-0"><?php echo e(translate('Order Summary')); ?></h5>
- </div>
- <div class="card-body">
- <div class="row">
- <div class="col-lg-6">
- <table class="table-borderless table">
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Order Code')); ?>:</td>
- <td><?php echo e($order->code); ?></td>
- </tr>
- <!--<tr>-->
- <!-- <td class="w-50 fw-600"><?php echo e(translate('Customer')); ?>:</td>-->
- <!-- <td><?php echo e(json_decode($order->shipping_address)->name); ?></td>-->
- <!--</tr>-->
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Email')); ?>:</td>
- <?php if($order->user_id != null): ?>
- <td><?php echo e($order->user->email); ?></td>
- <?php endif; ?>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Shipping address')); ?>:</td>
- <td><?php echo e(json_decode($order->shipping_address)->address); ?>,
- <?php echo e(json_decode($order->shipping_address)->city); ?>,
- <?php echo e(json_decode($order->shipping_address)->postal_code); ?>,
- <?php echo e(json_decode($order->shipping_address)->country); ?></td>
- </tr>
- </table>
- </div>
- <div class="col-lg-6">
- <table class="table-borderless table">
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Order date')); ?>:</td>
- <td><?php echo e(date('d-m-Y H:i A', $order->date)); ?></td>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Order status')); ?>:</td>
- <td><?php echo e(translate(ucfirst(str_replace('_', ' ', $order->delivery_status)))); ?></td>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Total order amount')); ?>:</td>
- <td><?php echo e(single_price($order->orderDetails->sum('price') + $order->orderDetails->sum('tax'))); ?>
- </td>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Shipping method')); ?>:</td>
- <td><?php echo e(translate('Flat shipping rate')); ?></td>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Payment method')); ?>:</td>
- <td><?php echo e(translate(ucfirst(str_replace('_', ' ', $order->payment_type)))); ?></td>
- </tr>
- <tr>
- <td class="text-main text-bold"><?php echo e(translate('Additional Info')); ?></td>
- <td class=""><?php echo e($order->additional_info); ?></td>
- </tr>
- <?php if($order->tracking_code): ?>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Tracking code')); ?>:</td>
- <td><?php echo e($order->tracking_code); ?></td>
- </tr>
- <?php endif; ?>
- </table>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-9">
- <div class="card">
- <div class="card-header">
- <h5 class="h6 mb-0"><?php echo e(translate('Order Details')); ?></h5>
- </div>
- <div class="card-body">
- <table class="aiz-table table">
- <thead>
- <tr>
- <th>#</th>
- <th width="30%"><?php echo e(translate('Product')); ?></th>
- <th data-breakpoints="md"><?php echo e(translate('Variation')); ?></th>
- <th><?php echo e(translate('Quantity')); ?></th>
- <th data-breakpoints="md"><?php echo e(translate('Delivery Type')); ?></th>
- <th><?php echo e(translate('Price')); ?></th>
- <?php if(addon_is_activated('refund_request')): ?>
- <th data-breakpoints="md"><?php echo e(translate('Refund')); ?></th>
- <?php endif; ?>
- <th data-breakpoints="md" class="text-right"><?php echo e(translate('Review')); ?></th>
- </tr>
- </thead>
- <tbody>
- <?php $__currentLoopData = $order->orderDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $orderDetail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <tr>
- <td><?php echo e($key + 1); ?></td>
- <td>
- <?php if($orderDetail->product != null && $orderDetail->product->auction_product == 0): ?>
- <a href="<?php echo e(route('product', $orderDetail->product->slug)); ?>"
- target="_blank"><?php echo e($orderDetail->product->getTranslation('name')); ?></a>
- <?php elseif($orderDetail->product != null && $orderDetail->product->auction_product == 1): ?>
- <a href="<?php echo e(route('auction-product', $orderDetail->product->slug)); ?>"
- target="_blank"><?php echo e($orderDetail->product->getTranslation('name')); ?></a>
- <?php else: ?>
- <strong><?php echo e(translate('Product Unavailable')); ?></strong>
- <?php endif; ?>
- </td>
- <td>
- <?php echo e($orderDetail->variation); ?>
- </td>
- <td>
- <?php echo e($orderDetail->quantity); ?>
- </td>
- <td>
- <?php if($order->shipping_type != null && $order->shipping_type == 'home_delivery'): ?>
- <?php echo e(translate('Home Delivery')); ?>
- <?php elseif($order->shipping_type == 'pickup_point'): ?>
- <?php if($order->pickup_point != null): ?>
- <?php echo e($order->pickup_point->name); ?> (<?php echo e(translate('Pickip Point')); ?>)
- <?php endif; ?>
- <?php endif; ?>
- </td>
- <td><?php echo e(single_price($orderDetail->price)); ?></td>
- <?php if(addon_is_activated('refund_request')): ?>
- <?php
- $no_of_max_day = get_setting('refund_request_time');
- $last_refund_date = $orderDetail->created_at->addDays($no_of_max_day);
- $today_date = Carbon\Carbon::now();
- ?>
- <td>
- <?php if($orderDetail->product != null && $orderDetail->product->refundable != 0 && $orderDetail->refund_request == null && $today_date <= $last_refund_date && $orderDetail->payment_status == 'paid' && $orderDetail->delivery_status == 'delivered'): ?>
- <a href="<?php echo e(route('refund_request_send_page', $orderDetail->id)); ?>"
- class="btn btn-primary btn-sm"><?php echo e(translate('Send')); ?></a>
- <?php elseif($orderDetail->refund_request != null && $orderDetail->refund_request->refund_status == 0): ?>
- <b class="text-info"><?php echo e(translate('Pending')); ?></b>
- <?php elseif($orderDetail->refund_request != null && $orderDetail->refund_request->refund_status == 2): ?>
- <b class="text-success"><?php echo e(translate('Rejected')); ?></b>
- <?php elseif($orderDetail->refund_request != null && $orderDetail->refund_request->refund_status == 1): ?>
- <b class="text-success"><?php echo e(translate('Approved')); ?></b>
- <?php elseif($orderDetail->product->refundable != 0): ?>
- <b><?php echo e(translate('N/A')); ?></b>
- <?php else: ?>
- <b><?php echo e(translate('Non-refundable')); ?></b>
- <?php endif; ?>
- </td>
- <?php endif; ?>
- <td class="text-right">
- <?php if($orderDetail->delivery_status == 'delivered' || true): ?>
- <a href="javascript:void(0);"
- onclick="product_review('<?php echo e($orderDetail->product_id); ?>')"
- class="btn btn-primary btn-sm"> <?php echo e(translate('Review')); ?> </a>
- <?php else: ?>
- <span class="text-danger"><?php echo e(translate('Not Delivered Yet')); ?></span>
- <?php endif; ?>
- </td>
- </tr>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="col-md-3">
- <div class="card">
- <div class="card-header">
- <b class="fs-15"><?php echo e(translate('Order Ammount')); ?></b>
- </div>
- <div class="card-body pb-0">
- <table class="table-borderless table">
- <tbody>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Subtotal')); ?></td>
- <td class="text-right">
- <span
- class="strong-600"><?php echo e(single_price($order->orderDetails->sum('price'))); ?></span>
- </td>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Shipping')); ?></td>
- <td class="text-right">
- <span
- class="text-italic"><?php echo e(single_price($order->orderDetails->sum('shipping_cost'))); ?></span>
- </td>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Tax')); ?></td>
- <td class="text-right">
- <span
- class="text-italic"><?php echo e(single_price($order->orderDetails->sum('tax'))); ?></span>
- </td>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Coupon')); ?></td>
- <td class="text-right">
- <span class="text-italic"><?php echo e(single_price($order->coupon_discount)); ?></span>
- </td>
- </tr>
- <tr>
- <td class="w-50 fw-600"><?php echo e(translate('Total')); ?></td>
- <td class="text-right">
- <strong><span><?php echo e(single_price($order->grand_total)); ?></span></strong>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <?php if($order->manual_payment && $order->manual_payment_data == null): ?>
- <button onclick="show_make_payment_modal(<?php echo e($order->id); ?>)"
- class="btn btn-block btn-primary"><?php echo e(translate('Make Payment')); ?></button>
- <?php endif; ?>
- </div>
- <?php if( $express->express_info ): ?>
- <?php date_default_timezone_set("PRC");?>
- <style>
- .table2 {
- background-color:#FFF;
- border-collapse: collapse;
- margin:20px 0px;
- }
- .table2 {
- border: 2px solid #FFF;
- }
- </style>
- <table class="table table2">
- <tr>
- <td colspan="2" style="text-align:center; background-color:#e62e04;color:#FFF;;"><b><?php echo e(translate('Express information')); ?></b> </td>
- </tr>
- <tr>
- <td style="width:100px;"> <?php echo e(translate('courier company')); ?>:</td>
- <td> <?php echo e($express->express_name); ?> </td>
- </tr>
- <tr>
- <td> <?php echo e(translate('shipment number')); ?>:</td>
- <td> <?php echo e($express->express_code); ?> </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align:center;background-color:#e62e04;color:#FFF;"><b><?php echo e(translate('Logistics tracking information')); ?></b></td>
- </tr>
- <?php if( $express->express_info ): ?>
- <?php $__currentLoopData = $express->express_info; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $ex): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
- <?php
- if( strtotime( $express->express_time[$key] ) < time() ){ ?>
- <tr><td colspan="2"> <?php echo e($express->express_stime[$key]); ?> <?php echo e($ex); ?> </td></tr>
- <?php } ?>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
- <?php endif; ?>
- </table>
- <?php endif; ?>
- </div>
- <?php $__env->stopSection(); ?>
- <?php $__env->startSection('modal'); ?>
- <!-- Product Review Modal -->
- <div class="modal fade" id="product-review-modal">
- <div class="modal-dialog">
- <div class="modal-content" id="product-review-modal-content">
- </div>
- </div>
- </div>
- <div class="modal fade" id="payment_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
- aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
- <div class="modal-content">
- <div id="payment_modal_body">
- </div>
- </div>
- </div>
- </div>
- <?php $__env->stopSection(); ?>
- <?php $__env->startSection('script'); ?>
- <script type="text/javascript">
- function show_make_payment_modal(order_id) {
- $.post('<?php echo e(route('checkout.make_payment')); ?>', {
- _token: '<?php echo e(csrf_token()); ?>',
- order_id: order_id
- }, function(data) {
- $('#payment_modal_body').html(data);
- $('#payment_modal').modal('show');
- $('input[name=order_id]').val(order_id);
- });
- }
- function product_review(product_id) {
- $.post('<?php echo e(route('product_review_modal')); ?>', {
- _token: '<?php echo e(@csrf_token()); ?>',
- product_id: product_id
- }, function(data) {
- $('#product-review-modal-content').html(data);
- $('#product-review-modal').modal('show', {
- backdrop: 'static'
- });
- AIZ.extra.inputRating();
- });
- }
- </script>
- <?php $__env->stopSection(); ?>
- <?php echo $__env->make('frontend.layouts.user_panel', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/frontend/user/order_details_customer.blade.php ENDPATH**/ ?>
|