@extends('admin::layouts.master') @push('styles') @endpush @section('content')

{{ translate('Return code') }}: {{ $return->return_id }}

Back

{{ translate('Order Return Details') }}

{{ translate('Customer info') }}
{{ translate('Name') }}: {{ $return->user->name ?? '' }}
{{ translate('Email') }}: {{ $return->user->email ?? '' }}
{{ translate('Phone') }}: {{ $return->user->phone ?? '' }}
{{ translate('Order Code') }}: {{ $return->order->order_code ?? 'Not provided' }}
{{ translate('Order Date') }}: {{ $return->created_at->format('d.m.Y') }}
{{ translate('Payment method') }}: {{ strtoupper(str_replace('_', ' ', $return->order->payment_type)) }}
@php $shipping_address = json_decode($return->shipping_address); @endphp
{{ translate('Shipping address') }}
{{ $return->user->name }}
{{ optional($return->address)->address }}
{{ $return->user->phone }}
{{ optional($return->address)->landmark }}
{{ $return->country->name }}, {{ optional($return->address)->address_type == 1 ? 'Home' : 'Office' }}
@php $billing_address = json_decode($return->billing_address); @endphp
{{ translate('Billing address') }}
{{ $return->user->name }}
{{ optional($return->address)->address }}
{{ $return->user->phone }}
{{ optional($return->address)->landmark }}
{{ $return->country->name }}
@if (!empty($total_with_discount)) @endif @if (!empty($total_with_discount)) @endif
SN {{ translate('Product') }} {{ translate('Return Reason') }} {{ translate('Qty') }} {{ translate('MRP') }} {{ translate('Offer Price') }}{{ translate('Discounted Total') }}{{ translate('Total') }}
1 @if ($return->orderDetails->product != null)

{{ $return->orderDetails->product->name }}

@if ($return->orderDetails->variation)
@foreach ($return->orderDetails->variation->combinations as $combination) {{ $combination->attribute->name }}: {{ $combination->attributeValue->attribute_value }} @endforeach
@endif
@else {{ translate('Product Unavailable') }} @endif
{{ $return->return_reason }} {{ $return->orderDetails->quantity }} @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($return->orderDetails->mrp) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($return->orderDetails->offer_price) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($total_with_discount) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif @php $priceToUse = $return->orderDetails->offer_price == 0 || $return->orderDetails->offer_price === null ? $return->orderDetails->mrp : $return->orderDetails->offer_price; @endphp {{ decimal_price($return->orderDetails->quantity * $priceToUse) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif
{{ translate('Total Amount') }} : @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($return->return_amount) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif
{{ translate('Coupon Discount') }} ({{ $return->order->discount_percentage }}%) : @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($return->coupon_amount) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif
{{ translate('Grand Total') }} : @if (auth('admin')->user()->country->symbol_position == 'left') {{ auth('admin')->user()->country->currency_symbol }} @endif {{ decimal_price($return->grand_total) }} @if (auth('admin')->user()->country->symbol_position == 'right') {{ auth('admin')->user()->country->currency_symbol }} @endif

{{ translate('Comments') }}

@csrf

{{ translate('Return Log') }}

@foreach ($return->returnLogs as $returnLog)
{{ $returnLog->translatable_note ? translate($returnLog->note) : $returnLog->note }}
@isset($returnLog->user_id) {{ translate('by') . ' ' . ($returnLog->user->name ?? translate('Deleted user')) . ' at ' . $returnLog->created_at->format('h:ia, d-m-Y') }} @endisset @isset($returnLog->admin_id) {{ translate('by') . ' ' . ($returnLog->admin->name ?? translate('Deleted user')) . ' at ' . $returnLog->created_at->format('h:ia, d-m-Y') }} @endisset
@endforeach
@endsection @section('modal') @include('admin::modals.delete_modal') @include('admin::modals.confirm_modal') @include('orders::modals.update_return_status_modal') @endsection @section('script') @include('tax::scripts.index_scripts') @endsection