@lang('admin::app.sales.orders.view.title', ['order_id' => $order->increment_id])
{!! view_render_event('bagisto.admin.sales.order.title.before', ['order' => $order]) !!}

@lang('admin::app.sales.orders.view.title', ['order_id' => $order->increment_id])

@lang("admin::app.sales.orders.view.$order->status")
{!! view_render_event('bagisto.admin.sales.order.title.after', ['order' => $order]) !!} @lang('admin::app.account.edit.back-btn')
{!! view_render_event('bagisto.admin.sales.order.page_action.before', ['order' => $order]) !!} @if ( $order->canReorder() && bouncer()->hasPermission('sales.orders.create') && core()->getConfigData('sales.order_settings.reorder.admin') ) @lang('admin::app.sales.orders.view.reorder') @endif @if ( $order->canInvoice() && bouncer()->hasPermission('sales.invoices.create') && $order->payment->method !== 'paypal_standard' ) @include('admin::sales.invoices.create') @endif @if ( $order->canShip() && bouncer()->hasPermission('sales.shipments.create') ) @include('admin::sales.shipments.create') @endif @if ( $order->canRefund() && bouncer()->hasPermission('sales.refunds.create') ) @include('admin::sales.refunds.create') @endif @if ( $order->canCancel() && bouncer()->hasPermission('sales.orders.cancel') )
@csrf
@endif {!! view_render_event('bagisto.admin.sales.order.page_action.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.admin.sales.order.left_component.before', ['order' => $order]) !!}

@lang('Order Items') ({{ count($order->items) }})

@lang('admin::app.sales.orders.view.grand-total', ['grand_total' => core()->formatBasePrice($order->base_grand_total)])

@foreach ($order->items as $item) {!! view_render_event('bagisto.admin.sales.order.list.before', ['order' => $order]) !!}
@if($item?->product?->base_image_url) @else

@lang('admin::app.sales.invoices.view.product-image')

@endif

{{ $item->name }}

@lang('admin::app.sales.orders.view.amount-per-unit', [ 'amount' => core()->formatBasePrice($item->base_price), 'qty' => $item->qty_ordered, ])

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

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

@endif

@lang('admin::app.sales.orders.view.sku', ['sku' => $item->sku])

{{ $item->qty_ordered ? trans('admin::app.sales.orders.view.item-ordered', ['qty_ordered' => $item->qty_ordered]) : '' }} {{ $item->qty_invoiced ? trans('admin::app.sales.orders.view.item-invoice', ['qty_invoiced' => $item->qty_invoiced]) : '' }} {{ $item->qty_shipped ? trans('admin::app.sales.orders.view.item-shipped', ['qty_shipped' => $item->qty_shipped]) : '' }} {{ $item->qty_refunded ? trans('admin::app.sales.orders.view.item-refunded', ['qty_refunded' => $item->qty_refunded]) : '' }} {{ $item->qty_canceled ? trans('admin::app.sales.orders.view.item-canceled', ['qty_canceled' => $item->qty_canceled]) : '' }}

{{ core()->formatBasePrice($item->base_total + $item->base_tax_amount - $item->base_discount_amount) }}

@if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax')

@lang('admin::app.sales.orders.view.price', ['price' => core()->formatBasePrice($item->base_price_incl_tax)])

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

@lang('admin::app.sales.orders.view.price-excl-tax', ['price' => core()->formatBasePrice($item->base_price)])

@lang('admin::app.sales.orders.view.price-incl-tax', ['price' => core()->formatBasePrice($item->base_price_incl_tax)])

@else

@lang('admin::app.sales.orders.view.price', ['price' => core()->formatBasePrice($item->base_price)])

@endif

@lang('admin::app.sales.orders.view.tax', [ 'percent' => number_format($item->tax_percent, 2) . '%', 'tax' => core()->formatBasePrice($item->base_tax_amount) ])

@if ($order->base_discount_amount > 0)

@lang('admin::app.sales.orders.view.discount', ['discount' => core()->formatBasePrice($item->base_discount_amount)])

@endif @if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')

@lang('admin::app.sales.orders.view.sub-total', ['sub_total' => core()->formatBasePrice($item->base_total_incl_tax)])

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

@lang('admin::app.sales.orders.view.sub-total-excl-tax', ['sub_total' => core()->formatBasePrice($item->base_total)])

@lang('admin::app.sales.orders.view.sub-total-incl-tax', ['sub_total' => core()->formatBasePrice($item->base_total_incl_tax)])

@else

@lang('admin::app.sales.orders.view.sub-total', ['sub_total' => core()->formatBasePrice($item->base_total)])

@endif
{!! view_render_event('bagisto.admin.sales.order.list.after', ['order' => $order]) !!} @endforeach
@if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both')

@lang('admin::app.sales.orders.view.summary-sub-total-excl-tax')

@lang('admin::app.sales.orders.view.summary-sub-total-incl-tax')

@else

@lang('admin::app.sales.orders.view.summary-sub-total')

@endif @if ($haveStockableItems = $order->haveStockableItems()) @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')

@lang('admin::app.sales.orders.view.shipping-and-handling-excl-tax')

@lang('admin::app.sales.orders.view.shipping-and-handling-incl-tax')

@else

@lang('admin::app.sales.orders.view.shipping-and-handling')

@endif @endif

@lang('admin::app.sales.orders.view.summary-tax')

@lang('admin::app.sales.orders.view.summary-discount')

@lang('admin::app.sales.orders.view.summary-grand-total')

@lang('admin::app.sales.orders.view.total-paid')

@lang('admin::app.sales.orders.view.total-refund')

@lang('admin::app.sales.orders.view.total-due')

@if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax')

{{ core()->formatBasePrice($order->base_sub_total) }}

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

{{ core()->formatBasePrice($order->base_sub_total) }}

{{ core()->formatBasePrice($order->base_sub_total_incl_tax) }}

@else

{{ core()->formatBasePrice($order->base_sub_total) }}

@endif @if ($haveStockableItems) @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'including_tax')

{{ core()->formatBasePrice($order->base_shipping_amount_incl_tax) }}

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

{{ core()->formatBasePrice($order->base_shipping_amount) }}

{{ core()->formatBasePrice($order->base_shipping_amount_incl_tax) }}

@else

{{ core()->formatBasePrice($order->base_shipping_amount) }}

@endif @endif

{{ core()->formatBasePrice($order->base_tax_amount) }}

{{ core()->formatBasePrice($order->base_discount_amount) }}

{{ core()->formatBasePrice($order->base_grand_total) }}

{{ core()->formatBasePrice($order->base_grand_total_invoiced) }}

{{ core()->formatBasePrice($order->base_grand_total_refunded) }}

@if($order->status !== 'canceled')

{{ core()->formatBasePrice($order->base_total_due) }}

@else

{{ core()->formatBasePrice(0.00) }}

@endif

@lang('admin::app.sales.orders.view.comments')

@foreach ($order->comments()->orderBy('id', 'desc')->get() as $comment)

{{ $comment->comment }}

@if ($comment->customer_notified) @lang('admin::app.sales.orders.view.customer-notified', ['date' => core()->formatDate($comment->created_at, 'Y-m-d H:i:s a')]) @else @lang('admin::app.sales.orders.view.customer-not-notified', ['date' => core()->formatDate($comment->created_at, 'Y-m-d H:i:s a')]) @endif

@endforeach
{!! view_render_event('bagisto.admin.sales.order.left_component.after', ['order' => $order]) !!}
{!! view_render_event('bagisto.admin.sales.order.right_component.before', ['order' => $order]) !!}

@lang('admin::app.sales.orders.view.customer')

{{ $order->customer_full_name }}

{!! view_render_event('bagisto.admin.sales.order.customer_full_name.after', ['order' => $order]) !!}

{{ $order->customer_email }}

{!! view_render_event('bagisto.admin.sales.order.customer_email.after', ['order' => $order]) !!}

@lang('admin::app.sales.orders.view.customer-group') : {{ $order->is_guest ? core()->getGuestCustomerGroup()?->name : ($order->customer->group->name ?? '') }}

{!! view_render_event('bagisto.admin.sales.order.customer_group.after', ['order' => $order]) !!}
@if ($order->billing_address)

@lang('admin::app.sales.orders.view.billing-address')

@include ('admin::sales.address', ['address' => $order->billing_address]) {!! view_render_event('bagisto.admin.sales.order.billing_address.after', ['order' => $order]) !!}
@endif @if ($order->shipping_address)

@lang('admin::app.sales.orders.view.shipping-address')

@include ('admin::sales.address', ['address' => $order->shipping_address]) {!! view_render_event('bagisto.admin.sales.order.shipping_address.after', ['order' => $order]) !!} @endif

@lang('admin::app.sales.orders.view.order-information')

@lang('admin::app.sales.orders.view.order-date')

@lang('admin::app.sales.orders.view.order-status')

@lang('admin::app.sales.orders.view.channel')

{!! view_render_event('bagisto.admin.sales.order.created_at.before', ['order' => $order]) !!}

{{core()->formatDate($order->created_at) }}

{!! view_render_event('bagisto.admin.sales.order.created_at.after', ['order' => $order]) !!}

{{$order->status_label}}

{!! view_render_event('bagisto.admin.sales.order.status_label.after', ['order' => $order]) !!}

{{$order->channel_name}}

{!! view_render_event('bagisto.admin.sales.order.channel_name.after', ['order' => $order]) !!}

@lang('admin::app.sales.orders.view.payment-and-shipping')

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

@lang('admin::app.sales.orders.view.payment-method')

{{ $order->order_currency_code }}

@lang('admin::app.sales.orders.view.currency')

@php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($order->payment->method); @endphp @if (! empty($additionalDetails))

{{ $additionalDetails['title'] }}

{{ $additionalDetails['value'] }}

@endif {!! view_render_event('bagisto.admin.sales.order.payment-method.after', ['order' => $order]) !!}
@if ($order->shipping_address)

{{ $order->shipping_title }}

@lang('admin::app.sales.orders.view.shipping-method')

{{ core()->formatBasePrice($order->base_shipping_amount) }}

@lang('admin::app.sales.orders.view.shipping-price')

{!! view_render_event('bagisto.admin.sales.order.shipping-method.after', ['order' => $order]) !!} @endif

@lang('admin::app.sales.orders.view.invoices') ({{ count($order->invoices) }})

@forelse ($order->invoices as $index => $invoice)

@lang('admin::app.sales.orders.view.invoice-id', ['invoice' => $invoice->increment_id ?? $invoice->id])

{{ core()->formatDate($invoice->created_at, 'd M, Y H:i:s a') }}

@if ($index < count($order->invoices) - 1) @endif @empty

@lang('admin::app.sales.orders.view.no-invoice-found')

@endforelse

@lang('admin::app.sales.orders.view.shipments') ({{ count($order->shipments) }})

@forelse ($order->shipments as $shipment)

@lang('admin::app.sales.orders.view.shipment', ['shipment' => $shipment->id])

{{ core()->formatDate($shipment->created_at, 'd M, Y H:i:s a') }}

@empty

@lang('admin::app.sales.orders.view.no-shipment-found')

@endforelse

@lang('admin::app.sales.orders.view.refund')

@forelse ($order->refunds as $refund)

@lang('admin::app.sales.orders.view.refund-id', ['refund' => $refund->id])

{{ core()->formatDate($refund->created_at, 'd M, Y H:i:s a') }}

@lang('admin::app.sales.orders.view.name')

{{ $refund->order->customer_full_name }}

@lang('admin::app.sales.orders.view.status')

@lang('admin::app.sales.orders.view.refunded') {{ core()->formatBasePrice($refund->base_grand_total) }}

@empty

@lang('admin::app.sales.orders.view.no-refund-found')

@endforelse
{!! view_render_event('bagisto.admin.sales.order.right_component.after', ['order' => $order]) !!}