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

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

{{-- Cancel Button --}}

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

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

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

@endif {{-- Product Name --}}

{{ $item->name }}

{{-- Product Attribute Detailes --}}
@if (isset($item->additional['attributes'])) @foreach ($item->additional['attributes'] as $attribute)

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

@endforeach @endif
{{-- Product SKU --}}

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

{{-- Product QTY --}}

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

{{-- Product Price Section --}}

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

{{-- Base Total --}}

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

{{-- Base Tax Amount --}}

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

{{-- Base Discount Amount --}}

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

{{-- Base Discount Amount --}}

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

@endforeach
{{-- Subtotal / Grand Total od the page --}}

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

@if ($refund->base_shipping_amount > 0)

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

@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')

{{-- Base Sub Total --}}

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

{{-- Base Shipping Amount --}} @if ($refund->base_shipping_amount > 0)

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

@endif {{-- Base Tax Amount --}} @if ($refund->base_tax_amount > 0)

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

@endif {{-- Base Discount Amouont --}} @if ($refund->base_discount_amount > 0)

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

@endif {{-- Base Adjustment Refund --}}

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

{{-- Base Adjustment Fee --}}

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

{{-- Base Grand Total --}}

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

{{-- Account Information --}} @if ( $order->billing_address || $order->shipping_address )

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

{{-- Account Info --}}
{{-- Customer Full Name --}}

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

{{-- Customer Email --}}

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

{{-- Billing Address --}} @if ($order->billing_address) {{-- Billing Address --}}

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

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

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

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

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

{{-- Order Info Left Section --}}
@foreach (['order-id', 'order-date', 'order-status', 'order-channel'] as $item)

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

@endforeach
{{-- Order Info Right Section --}}

#{{ $order->increment_id }}

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

{{ $order->status_label }}

{{ $order->channel_name }}

{{-- Payment Information --}}

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

{{-- Payment Information Left Section --}}
@foreach (['payment-method', 'shipping-method', 'currency', 'shipping-price'] as $item)

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

@endforeach
{{-- Payment Information Right Section --}}

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

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

{{ $order->order_currency_code }}

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