@extends('shop::customers.account.index') @section('page_title') {{ __('shop::app.customer.account.order.view.page-tile', ['order_id' => $order->increment_id]) }} @endsection @section('account-content')
@if ($order->canCancel())
@csrf
{{ __('shop::app.customer.account.order.view.cancel-btn-title') }} @endif
{!! view_render_event('bagisto.shop.customers.account.orders.view.before', ['order' => $order]) !!}
{{ __('shop::app.customer.account.order.view.placed-on') }} {{ core()->formatDate($order->created_at, 'd M Y') }}
{{ __('shop::app.customer.account.order.view.products-ordered') }}
@foreach ($order->items as $item) @endforeach
{{ __('shop::app.customer.account.order.view.SKU') }} {{ __('shop::app.customer.account.order.view.product-name') }} {{ __('shop::app.customer.account.order.view.price') }} {{ __('shop::app.customer.account.order.view.item-status') }} {{ __('shop::app.customer.account.order.view.subtotal') }} {{ __('shop::app.customer.account.order.view.tax-percent') }} {{ __('shop::app.customer.account.order.view.tax-amount') }} {{ __('shop::app.customer.account.order.view.grand-total') }}
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }} {{ $item->name }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
{{ core()->formatPrice($item->price, $order->order_currency_code) }} {{ __('shop::app.customer.account.order.view.item-ordered', ['qty_ordered' => $item->qty_ordered]) }} {{ $item->qty_invoiced ? __('shop::app.customer.account.order.view.item-invoice', ['qty_invoiced' => $item->qty_invoiced]) : '' }} {{ $item->qty_shipped ? __('shop::app.customer.account.order.view.item-shipped', ['qty_shipped' => $item->qty_shipped]) : '' }} {{ $item->qty_refunded ? __('shop::app.customer.account.order.view.item-refunded', ['qty_refunded' => $item->qty_refunded]) : '' }} {{ $item->qty_canceled ? __('shop::app.customer.account.order.view.item-canceled', ['qty_canceled' => $item->qty_canceled]) : '' }} {{ core()->formatPrice($item->total, $order->order_currency_code) }} {{ number_format($item->tax_percent, 2) }}% {{ core()->formatPrice($item->tax_amount, $order->order_currency_code) }} {{ core()->formatPrice($item->total + $item->tax_amount - $item->discount_amount, $order->order_currency_code) }}
@if ($order->haveStockableItems()) @endif @if ($order->base_discount_amount > 0) @endif @if($order->status !== 'canceled') @else @endif
{{ __('shop::app.customer.account.order.view.subtotal') }} - {{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.shipping-handling') }} - {{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.discount') }} @if ($order->coupon_code) ({{ $order->coupon_code }}) @endif - {{ core()->formatPrice($order->discount_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.tax') }} - {{ core()->formatPrice($order->tax_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.grand-total') }} - {{ core()->formatPrice($order->grand_total, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.total-paid') }} - {{ core()->formatPrice($order->grand_total_invoiced, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.total-refunded') }} - {{ core()->formatPrice($order->grand_total_refunded, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.total-due') }} -{{ core()->formatPrice($order->total_due, $order->order_currency_code) }}{{ core()->formatPrice(0.00, $order->order_currency_code) }}
@if ($order->invoices->count()) @foreach ($order->invoices as $invoice)
{{ __('shop::app.customer.account.order.view.individual-invoice', ['invoice_id' => $invoice->increment_id ?? $invoice->id]) }} {{ __('shop::app.customer.account.order.view.print') }}
@foreach ($invoice->items as $item) @endforeach
{{ __('shop::app.customer.account.order.view.SKU') }} {{ __('shop::app.customer.account.order.view.product-name') }} {{ __('shop::app.customer.account.order.view.price') }} {{ __('shop::app.customer.account.order.view.qty') }} {{ __('shop::app.customer.account.order.view.subtotal') }} {{ __('shop::app.customer.account.order.view.tax-amount') }} {{ __('shop::app.customer.account.order.view.grand-total') }}
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }} {{ $item->name }} {{ core()->formatPrice($item->price, $order->order_currency_code) }} {{ $item->qty }} {{ core()->formatPrice($item->total, $order->order_currency_code) }} {{ core()->formatPrice($item->tax_amount, $order->order_currency_code) }} {{ core()->formatPrice($item->total + $item->tax_amount, $order->order_currency_code) }}
@if ($invoice->base_discount_amount > 0) @endif
{{ __('shop::app.customer.account.order.view.subtotal') }} - {{ core()->formatPrice($invoice->sub_total, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.shipping-handling') }} - {{ core()->formatPrice($invoice->shipping_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.discount') }} - {{ core()->formatPrice($invoice->discount_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.tax') }} - {{ core()->formatPrice($invoice->tax_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.grand-total') }} - {{ core()->formatPrice($invoice->grand_total, $order->order_currency_code) }}
@endforeach
@endif @if ($order->shipments->count()) @foreach ($order->shipments as $shipment)
{{ __('shop::app.customer.account.order.view.tracking-number') }} {{ $shipment->track_number }}
{{ __('shop::app.customer.account.order.view.individual-shipment', ['shipment_id' => $shipment->id]) }}
@foreach ($shipment->items as $item) @endforeach
{{ __('shop::app.customer.account.order.view.SKU') }} {{ __('shop::app.customer.account.order.view.product-name') }} {{ __('shop::app.customer.account.order.view.qty') }}
{{ $item->sku }} {{ $item->name }} {{ $item->qty }}
@endforeach
@endif @if ($order->refunds->count()) @foreach ($order->refunds as $refund)
{{ __('shop::app.customer.account.order.view.individual-refund', ['refund_id' => $refund->id]) }}
@foreach ($refund->items as $item) @endforeach @if (! $refund->items->count()) @endif
{{ __('shop::app.customer.account.order.view.SKU') }} {{ __('shop::app.customer.account.order.view.product-name') }} {{ __('shop::app.customer.account.order.view.price') }} {{ __('shop::app.customer.account.order.view.qty') }} {{ __('shop::app.customer.account.order.view.subtotal') }} {{ __('shop::app.customer.account.order.view.tax-amount') }} {{ __('shop::app.customer.account.order.view.grand-total') }}
{{ $item->child ? $item->child->sku : $item->sku }} {{ $item->name }} {{ core()->formatPrice($item->price, $order->order_currency_code) }} {{ $item->qty }} {{ core()->formatPrice($item->total, $order->order_currency_code) }} {{ core()->formatPrice($item->tax_amount, $order->order_currency_code) }} {{ core()->formatPrice($item->total + $item->tax_amount, $order->order_currency_code) }}
{{ __('shop::app.common.no-result-found') }}
@if ($refund->shipping_amount > 0) @endif @if ($refund->discount_amount > 0) @endif @if ($refund->tax_amount > 0) @endif
{{ __('shop::app.customer.account.order.view.subtotal') }} - {{ core()->formatPrice($refund->sub_total, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.shipping-handling') }} - {{ core()->formatPrice($refund->shipping_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.discount') }} - {{ core()->formatPrice($order->discount_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.tax') }} - {{ core()->formatPrice($refund->tax_amount, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.adjustment-refund') }} - {{ core()->formatPrice($refund->adjustment_refund, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.adjustment-fee') }} - {{ core()->formatPrice($refund->adjustment_fee, $order->order_currency_code) }}
{{ __('shop::app.customer.account.order.view.grand-total') }} - {{ core()->formatPrice($refund->grand_total, $order->order_currency_code) }}
@endforeach
@endif
{{ __('shop::app.customer.account.order.view.billing-address') }}
@include ('admin::sales.address', ['address' => $order->billing_address]) {!! view_render_event('bagisto.shop.customers.account.orders.view.billing-address.after', ['order' => $order]) !!}
@if ($order->shipping_address)
{{ __('shop::app.customer.account.order.view.shipping-address') }}
@include ('admin::sales.address', ['address' => $order->shipping_address]) {!! view_render_event('bagisto.shop.customers.account.orders.view.shipping-address.after', ['order' => $order]) !!}
{{ __('shop::app.customer.account.order.view.shipping-method') }}
{{ $order->shipping_title }} {!! view_render_event('bagisto.shop.customers.account.orders.view.shipping-method.after', ['order' => $order]) !!}
@endif
{{ __('shop::app.customer.account.order.view.payment-method') }}
{{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }} @php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($order->payment->method); @endphp @if (! empty($additionalDetails))

{{ $additionalDetails['value'] }}

@endif {!! view_render_event('bagisto.shop.customers.account.orders.view.payment-method.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.after', ['order' => $order]) !!}
@endsection @push('scripts') @endpush