@php $order = $refund->order; @endphp @lang('admin::app.sales.refunds.view.title', ['refund_id' => $refund->id])

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

@lang('admin::app.sales.refunds.view.product-ordered') ({{ $refund->items->count() ?? 0 }})

@foreach ($refund->items as $item)
@if ($item->product?->base_image_url) @else

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

@endif

{{ $item->name }}

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

{{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}

@endforeach @endif

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

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

{{ 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.refunds.view.price', ['price' => core()->formatBasePrice($item->base_price_incl_tax)])

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

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

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

@else

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

@endif

@lang('admin::app.sales.refunds.view.tax-amount', ['tax_amount' => core()->formatBasePrice($item->base_tax_amount)])

@lang('admin::app.sales.refunds.view.base-discounted-amount', ['base_discounted_amount' => core()->formatBasePrice($item->base_discount_amount)])

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

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

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

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

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

@else

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

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

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

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

@else

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

@endif @if ($refund->base_shipping_amount > 0) @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both')

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

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

@else

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

@endif @endif @if ($refund->base_tax_amount > 0)

@lang('admin::app.sales.refunds.view.tax')

@endif @if ($refund->base_discount_amount > 0)

@lang('admin::app.sales.refunds.view.discounted-amount')

@endif

@lang('admin::app.sales.refunds.view.adjustment-refund')

@lang('admin::app.sales.refunds.view.adjustment-fee')

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

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

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

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

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

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

@else

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

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

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

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

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

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

@else

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

@endif @endif @if ($refund->base_tax_amount > 0)

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

@endif @if ($refund->base_discount_amount > 0)

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

@endif

{{ core()->formatBasePrice($refund->base_adjustment_refund) }}

{{ core()->formatBasePrice($refund->base_adjustment_fee) }}

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

@if ( $order->billing_address || $order->shipping_address )

@lang('admin::app.sales.refunds.view.account-information')

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

{{ $refund->order->customer_email }}

@if ($order->billing_address)

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

@include ('admin::sales.address', ['address' => $order->billing_address]) @endif @if ($order->shipping_address)

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

@include ('admin::sales.address', ['address' => $order->shipping_address]) @endif
@endif

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

@foreach (['order-id', 'order-date', 'order-status', 'order-channel'] as $item)

@lang('admin::app.sales.refunds.view.' . $item)

@endforeach

#{{ $order->increment_id }}

{{ core()->formatDate($order->created_at, 'Y-m-d H:i:s') }}

{{ $order->status_label }}

{{ $order->channel_name }}

@lang('admin::app.sales.refunds.view.payment-information')

@foreach (['payment-method', 'shipping-method', 'currency', 'shipping-price'] as $item)

@lang('admin::app.sales.refunds.view.' . $item)

@endforeach

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

{{ $order->shipping_title ?? 'N/A' }}

{{ $order->order_currency_code }}

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