@include('Admin.Includes.header')

{{ __('Return Order List') }}

@if (session('success')) @endif @if (session('error')) @endif @if ($errors->any()) @endif

{{ __('Search Order Invoice') }}

@csrf
@if (!empty($order)) @if (session('success')) @endif @if ($errors->any()) @endif
Order Details
Placed On: {{ $order->created_at ? $order->created_at->format('M d, Y H:i') : 'N/A' }}
Status: @if ($order->status == 'pending') {{ ucwords($order->status) }} @elseif ($order->status == 'inProcess') {{ ucwords($order->status) }} @elseif ($order->status == 'completed') {{ ucwords($order->status) }} @else {{ ucwords($order->status) }} @endif
Billing Address
Name {{ $order->f_name ?? 'N/A' }} {{ $order->l_name ?? '' }}
Email {{ $order->email ?? 'N/A' }}
Phone {{ $order->phone ?? 'N/A' }}
Address @if ($order->street_address || $order->suburb || $order->state) {{ $order->street_address ?? '' }}{{ $order->street_address ? ', ' : '' }} {{ $order->suburb ?? '' }}{{ $order->suburb ? ', ' : '' }} {{ $order->state ?? '' }} @else N/A @endif
Post Code {{ $order->post_code ?? 'N/A' }}
Shipping Address
Name {{ $order->orderAddressDetail->f_name ?? ($order->f_name ?? 'N/A') }} {{ $order->orderAddressDetail->l_name ?? ($order->l_name ?? '') }}
Email {{ $order->orderAddressDetail->email ?? ($order->email ?? 'N/A') }}
Phone {{ $order->orderAddressDetail->phone ?? ($order->phone ?? 'N/A') }}
Address @php $shippingStreet = $order->orderAddressDetail->street_address ?? ($order->street_address ?? ''); $shippingSuburb = $order->orderAddressDetail->suburb ?? ($order->suburb ?? ''); $shippingState = $order->orderAddressDetail->state ?? ($order->state ?? ''); @endphp @if ($shippingStreet || $shippingSuburb || $shippingState) {{ $shippingStreet }}{{ $shippingStreet ? ', ' : '' }} {{ $shippingSuburb }}{{ $shippingSuburb ? ', ' : '' }} {{ $shippingState }} @else N/A @endif
Post Code {{ $order->orderAddressDetail->post_code ?? ($order->post_code ?? 'N/A') }}
Order Items
@if ($order->status != 'refund') @endif @if ($order->orderMeta && $order->orderMeta->count() > 0) @foreach ($order->orderMeta as $data) @if ($order->status != 'refund') @endif @endforeach @else @endif
Product Price QuantityReturnSubtotal
@if ($order->status != 'refund') @endif @if (!empty($data->product) && !empty($data->product->featured_image))
{{ $data->product_title ?? 'Product' }}
@else
No Image
@endif
{{ $data->product_title ?? 'Unnamed Product' }}
${{ number_format($data->price ?? 0, 2) }} {{ $data->quantity ?? 0 }}
${{ number_format(($data->price ?? 0) * ($data->quantity ?? 0), 2) }}
No products found in this order
Order Summary
Subtotal ${{ number_format($order->subTotal ?? 0, 2) }}
Registration Discount ${{ number_format($order->auth_discount ?? 0, 2) }}
@if (!empty($order->amount_paid_by_coupon))
Amount Paid By Coupon ${{ number_format($order->amount_paid_by_coupon ?? 0, 2) }}
@endif @if (!empty($order->delivery_charges))
Delivery Charges ${{ number_format($order->delivery_charges ?? 0, 2) }}
@endif
Total Paid
${{ number_format($order->grand_total ?? 0, 2) }}
Total Refundable
Subtotal
@php $grandTotal = 0; if (!empty($order)) { if ($order->status == 'completed') { $grandTotal = $order->grand_total - ($order->delivery_charges ?? 0); } else { $grandTotal = $order->grand_total ?? 0; } } @endphp
@if ($order->status != 'refund')
@if (strtolower($order->payment_method ?? '') == 'paypal')
Important: Paypal doesn't accept Partial Refunds. If you want to remove some products, Paypal won't accept the refund, so you'll need to refund using Gift Card. For completed orders, delivery charges will be deducted from the refundable subtotal, which makes it a partial refund not possible with Paypal.
@endif @else
This payment has already been refunded.
@endif
@elseif(isset($noResults) && $noResults)

No Invoice Found

Please check the invoice number and try again.

Return to Dashboard
@endif