@lang('shop::app.customers.account.orders.view.page-title', ['order_id' => $order->increment_id]) @section('breadcrumbs') @endSection

@lang('shop::app.customers.account.orders.view.page-title', ['order_id' => $order->increment_id])

{!! view_render_event('bagisto.shop.customers.account.orders.reorder_button.before', ['order' => $order]) !!} @if ( $order->canReorder() && core()->getConfigData('sales.order_settings.reorder.shop') ) @lang('shop::app.customers.account.orders.view.reorder-btn-title') @endif {!! view_render_event('bagisto.shop.customers.account.orders.reorder_button.after', ['order' => $order]) !!} {!! view_render_event('bagisto.shop.customers.account.orders.cancel_button.before', ['order' => $order]) !!} @if ($order->canCancel())
@csrf
@lang('shop::app.customers.account.orders.view.cancel-btn-title') @endif {!! view_render_event('bagisto.shop.customers.account.orders.cancel_button.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.before', ['order' => $order]) !!}
@lang('shop::app.customers.account.orders.view.information.placed-on') {{ core()->formatDate($order->created_at, 'd M Y') }}
@foreach ($order->items as $item) @endforeach
@lang('shop::app.customers.account.orders.view.information.sku') @lang('shop::app.customers.account.orders.view.information.product-name') @lang('shop::app.customers.account.orders.view.information.price') @lang('shop::app.customers.account.orders.view.information.item-status') Reason for Purchase @lang('shop::app.customers.account.orders.view.information.subtotal')
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }} {{ $item->name }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) @if ( ! isset($attribute['attribute_type']) || $attribute['attribute_type'] !== 'file' ) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@else {{ $attribute['attribute_name'] }} : {{ File::basename($attribute['option_label']) }}
@endif @endforeach
@endif
@if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax') {{ core()->formatPrice($item->price_incl_tax, $order->order_currency_code) }} @elseif (core()->getConfigData('sales.taxes.sales.display_prices') == 'both') {{ core()->formatPrice($item->price_incl_tax, $order->order_currency_code) }} @lang('shop::app.customers.account.orders.view.information.excl-tax') {{ core()->formatPrice($item->price, $order->order_currency_code) }} @else {{ core()->formatPrice($item->price, $order->order_currency_code) }} @endif @if($item->qty_ordered) @lang('shop::app.customers.account.orders.view.information.ordered-item', ['qty_ordered' => $item->qty_ordered]) @endif @if($item->qty_invoiced) @lang('shop::app.customers.account.orders.view.information.invoiced-item', ['qty_invoiced' => $item->qty_invoiced]) @endif @if($item->qty_shipped) @lang('shop::app.customers.account.orders.view.information.item-shipped', ['qty_shipped' => $item->qty_shipped]) @endif @if($item->qty_refunded) @lang('shop::app.customers.account.orders.view.information.item-refunded', ['qty_refunded' => $item->qty_refunded]) @endif @if($item->qty_canceled) @lang('shop::app.customers.account.orders.view.information.item-canceled', ['qty_canceled' => $item->qty_canceled]) @endif @if($item->purchase_reason_id) @php $purchaseReason = \App\PurchaseReason::find($item->purchase_reason_id); @endphp @if($purchaseReason) {{ $purchaseReason->name }} @else Not specified @endif @else Not specified @endif @if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax') {{ core()->formatPrice($item->total_incl_tax, $order->order_currency_code) }} @elseif (core()->getConfigData('sales.taxes.sales.display_prices') == 'both') {{ core()->formatPrice($item->total_incl_tax, $order->order_currency_code) }} @lang('shop::app.customers.account.orders.view.information.excl-tax') {{ core()->formatPrice($item->total, $order->order_currency_code) }} @else {{ core()->formatPrice($item->total, $order->order_currency_code) }} @endif
{!! view_render_event('bagisto.shop.customers.account.orders.view.information.subtotal.before') !!} @if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')
@lang('shop::app.customers.account.orders.view.information.subtotal')

{{ core()->formatPrice($order->sub_total_incl_tax, $order->order_currency_code) }}

@elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')
@lang('shop::app.customers.account.orders.view.information.subtotal-excl-tax')

{{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}

@lang('shop::app.customers.account.orders.view.information.subtotal-incl-tax')

{{ core()->formatPrice($order->sub_total_incl_tax, $order->order_currency_code) }}

@else
@lang('shop::app.customers.account.orders.view.information.subtotal')

{{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}

@endif {!! view_render_event('bagisto.shop.customers.account.orders.view.information.subtotal.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.shipping.before') !!} @if ($order->haveStockableItems()) @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'including_tax')
@lang('shop::app.customers.account.orders.view.information.shipping-handling')

{{ core()->formatPrice($order->shipping_amount_incl_tax, $order->order_currency_code) }}

@elseif (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')
@lang('shop::app.customers.account.orders.view.information.shipping-handling-excl-tax')

{{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}

@lang('shop::app.customers.account.orders.view.information.shipping-handling-incl-tax')

{{ core()->formatPrice($order->shipping_amount_incl_tax, $order->order_currency_code) }}

@else
@lang('shop::app.customers.account.orders.view.information.shipping-handling')

{{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}

@endif @endif {!! view_render_event('bagisto.shop.customers.account.orders.view.information.shipping.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.tax-amount.before') !!}
@lang('shop::app.customers.account.orders.view.information.tax')

{{ core()->formatPrice($order->tax_amount, $order->order_currency_code) }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.tax-amount.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.discount.before') !!} @if ($order->base_discount_amount > 0)

@lang('shop::app.customers.account.orders.view.information.discount') @if ($order->coupon_code) ({{ $order->coupon_code }}) @endif

{{ core()->formatPrice($order->discount_amount, $order->order_currency_code) }}

@endif {!! view_render_event('bagisto.shop.customers.account.orders.view.information.discount.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.grand-total.before') !!}
@lang('shop::app.customers.account.orders.view.information.grand-total')

{{ core()->formatPrice($order->grand_total, $order->order_currency_code) }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.grand-total.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-paid.before') !!}
@lang('shop::app.customers.account.orders.view.information.total-paid')

{{ core()->formatPrice($order->grand_total_invoiced, $order->order_currency_code) }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-paid.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-refunded.before') !!}
@lang('shop::app.customers.account.orders.view.information.total-refunded')

{{ core()->formatPrice($order->grand_total_refunded, $order->order_currency_code) }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-refunded.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-due.before') !!}
@lang('shop::app.customers.account.orders.view.information.total-due')

@if($order->status !== \Webkul\Sales\Models\Order::STATUS_CANCELED) {{ core()->formatPrice($order->total_due, $order->order_currency_code) }} @else {{ core()->formatPrice(0.00, $order->order_currency_code) }} @endif

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-due.after') !!}
@lang('shop::app.customers.account.orders.view.order-id'):

#{{ $order->increment_id }}

@lang('shop::app.customers.account.orders.view.information.placed-on'):

{{ core()->formatDate($order->created_at, 'd M Y') }}

@lang('shop::app.customers.account.orders.view.status') @switch($order->status) @case('completed')

{{ ucfirst($order->status) }}

@break @case('pending')

{{ ucfirst($order->status) }}

@break @case('closed')

{{ ucfirst($order->status) }}

@break @case('processing')

{{ ucfirst($order->status) }}

@break @case('canceled')

{{ ucfirst($order->status) }}

@break @default

{{ ucfirst($order->status) }}

@endswitch
@lang('shop::app.customers.account.orders.view.item-ordered') @foreach ($order->items as $item)

{{ $item->name }} @if (isset($item->additional['attributes']))

@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif

@lang('shop::app.customers.account.orders.view.information.sku'): {{ $item->getTypeInstance()->getOrderedItem($item)->sku }}
@lang('shop::app.customers.account.orders.view.information.item-status')
@if($item->qty_ordered)

@lang('shop::app.customers.account.orders.view.information.ordered-item', ['qty_ordered' => $item->qty_ordered])

@endif @if($item->qty_invoiced)

@lang('shop::app.customers.account.orders.view.information.invoiced-item', ['qty_invoiced' => $item->qty_invoiced])

@endif @if($item->qty_shipped)

@lang('shop::app.customers.account.orders.view.information.item-shipped', ['qty_shipped' => $item->qty_shipped])

@endif @if($item->qty_refunded) @lang('shop::app.customers.account.orders.view.information.item-refunded', ['qty_refunded' => $item->qty_refunded]) @endif @if($item->qty_canceled)

@lang('shop::app.customers.account.orders.view.information.item-canceled', ['qty_canceled' => $item->qty_canceled])

@endif
@lang('shop::app.customers.account.orders.view.information.price'): @if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax') {{ core()->formatPrice($item->price_incl_tax, $order->order_currency_code) }} @elseif (core()->getConfigData('sales.taxes.sales.display_prices') == 'both')

{{ core()->formatPrice($item->price_incl_tax, $order->order_currency_code) }}

@lang('shop::app.customers.account.orders.view.information.excl-tax') {{ core()->formatPrice($item->price, $order->order_currency_code) }}

@else {{ core()->formatPrice($item->price, $order->order_currency_code) }} @endif
@lang('shop::app.customers.account.orders.view.invoices.subtotal'): @if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax') {{ core()->formatPrice($item->total_incl_tax, $order->order_currency_code) }} @elseif (core()->getConfigData('sales.taxes.sales.display_prices') == 'both')

{{ core()->formatPrice($item->total_incl_tax, $order->order_currency_code) }}

@lang('shop::app.customers.account.orders.view.invoices.excl-tax') {{ core()->formatPrice($item->total, $order->order_currency_code) }}

@else {{ core()->formatPrice($item->total, $order->order_currency_code) }} @endif
@lang('shop::app.customers.account.orders.view.information.tax-percent')

{{ $item->tax_percent }}

@lang('shop::app.customers.account.orders.view.information.tax-amount')

{{ $item->tax_amount }}

Reason for Purchase: @if($item->purchase_reason_id) @php $purchaseReason = \App\PurchaseReason::find($item->purchase_reason_id); @endphp @if($purchaseReason) {{ $purchaseReason->name }} @else Not specified @endif @else Not specified @endif
@lang('shop::app.customers.account.orders.view.information.grand-total')

{{ core()->formatPrice($order->grand_total, $order->order_currency_code) }}

@endforeach
@lang('shop::app.customers.account.orders.view.information.order-summary')
{!! view_render_event('bagisto.shop.customers.account.orders.view.information.subtotal.before') !!} @if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')

@lang('shop::app.customers.account.orders.view.information.subtotal')

{{ core()->formatPrice($order->sub_total_incl_tax, $order->order_currency_code) }}

@elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')

@lang('shop::app.customers.account.orders.view.information.subtotal-excl-tax')

{{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}

@lang('shop::app.customers.account.orders.view.information.subtotal-incl-tax')

{{ core()->formatPrice($order->sub_total_incl_tax, $order->order_currency_code) }}

@else

@lang('shop::app.customers.account.orders.view.information.subtotal')

{{ core()->formatPrice($order->sub_total, $order->order_currency_code) }}

@endif {!! view_render_event('bagisto.shop.customers.account.orders.view.information.subtotal.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.shipping.before') !!} @if ($order->haveStockableItems()) @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'including_tax')

@lang('shop::app.customers.account.orders.view.information.shipping-handling')

{{ core()->formatPrice($order->shipping_amount_incl_tax, $order->order_currency_code) }}

@elseif (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')

@lang('shop::app.customers.account.orders.view.information.shipping-handling-excl-tax')

{{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}

@lang('shop::app.customers.account.orders.view.information.shipping-handling-incl-tax')

{{ core()->formatPrice($order->shipping_amount_incl_tax, $order->order_currency_code) }}

@else

@lang('shop::app.customers.account.orders.view.information.shipping-handling')

{{ core()->formatPrice($order->shipping_amount, $order->order_currency_code) }}

@endif @endif {!! view_render_event('bagisto.shop.customers.account.orders.view.information.shipping.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.tax-amount.before') !!}

@lang('shop::app.customers.account.orders.view.information.tax')

{{ core()->formatPrice($order->tax_amount, $order->order_currency_code) }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.tax-amount.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.discount.before') !!} @if ($order->base_discount_amount > 0)

@lang('shop::app.customers.account.orders.view.information.discount') @if ($order->coupon_code) ({{ $order->coupon_code }}) @endif

{{ core()->formatPrice($order->discount_amount, $order->order_currency_code) }}

@endif {!! view_render_event('bagisto.shop.customers.account.orders.view.information.discount.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.grand-total.before') !!}

@lang('shop::app.customers.account.orders.view.information.grand-total')

{{ core()->formatPrice($order->grand_total, $order->order_currency_code) }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.grand-total.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-paid.before') !!}

@lang('shop::app.customers.account.orders.view.information.total-paid')

{{ core()->formatPrice($order->grand_total_invoiced, $order->order_currency_code) }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-paid.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-refunded.before') !!}

@lang('shop::app.customers.account.orders.view.information.total-refunded')

{{ core()->formatPrice($order->grand_total_refunded, $order->order_currency_code) }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-refunded.after') !!} {!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-due.before') !!}

@lang('shop::app.customers.account.orders.view.information.total-due')

@if($order->status !== \Webkul\Sales\Models\Order::STATUS_CANCELED) {{ core()->formatPrice($order->total_due, $order->order_currency_code) }} @else {{ core()->formatPrice(0.00, $order->order_currency_code) }} @endif

{!! view_render_event('bagisto.shop.customers.account.orders.view.information.total-due.after') !!}
@lang('shop::app.customers.account.orders.view.shipping-and-payment')
@if ($order->shipping_address)
@lang('shop::app.customers.account.orders.view.shipping-address')
@include ('shop::customers.account.orders.view.address', ['address' => $order->shipping_address])
{!! view_render_event('bagisto.shop.customers.account.orders.view.shipping_address_details.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.shipping_address.after', ['order' => $order]) !!}
@endif @if ($order->billing_address)
@lang('shop::app.customers.account.orders.view.billing-address')
@include ('shop::customers.account.orders.view.address', ['address' => $order->billing_address])
{!! view_render_event('bagisto.shop.customers.account.orders.view.billing_address_details.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.billing_address.after', ['order' => $order]) !!}
@endif @if ($order->shipping_address)
@lang('shop::app.customers.account.orders.view.shipping-method')
{{ $order->shipping_title }} {!! view_render_event('bagisto.shop.customers.account.orders.view.shipping_method_details.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.shipping_method.after', ['order' => $order]) !!}
@endif
@lang('shop::app.customers.account.orders.view.payment-method')
{{ core()->getConfigData('sales.payment_methods.' . $order->payment->method . '.title') }} @if (! empty($additionalDetails))
@endif {!! view_render_event('bagisto.shop.customers.account.orders.view.payment_method_details.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.payment_method.after', ['order' => $order]) !!}
@if ($order->billing_address)

@lang('shop::app.customers.account.orders.view.billing-address')

@include ('shop::customers.account.orders.view.address', ['address' => $order->billing_address])

{!! view_render_event('bagisto.shop.customers.account.orders.view.billing_address_details.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.billing_address.after', ['order' => $order]) !!} @endif @if ($order->shipping_address)

@lang('shop::app.customers.account.orders.view.shipping-address')

@include ('shop::customers.account.orders.view.address', ['address' => $order->shipping_address])

{!! view_render_event('bagisto.shop.customers.account.orders.view.shipping_address_details.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.shipping_address.after', ['order' => $order]) !!}

@lang('shop::app.customers.account.orders.view.shipping-method')

{{ $order->shipping_title }}

{!! view_render_event('bagisto.shop.customers.account.orders.view.shipping_method_details.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.shop.customers.account.orders.view.shipping_method.after', ['order' => $order]) !!} @endif

@lang('shop::app.customers.account.orders.view.payment-method')

{{ core()->getConfigData('sales.payment_methods.' . $order->payment->method . '.title') }}

@if (! empty($additionalDetails))
@endif {!! view_render_event('bagisto.shop.customers.account.orders.view.payment_method_details.after', ['order' => $order]) !!}
{!! 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]) !!}