@extends(BaseHelper::getAdminMasterLayoutTemplate()) @section('content')
@php $returnRequest->load(['items.product', 'items.orderProduct']); @endphp @foreach ($returnRequest->items as $returnRequestItem) @php $orderProduct = $returnRequestItem->orderProduct; $product = $orderProduct->product; @endphp @endforeach
{{ $product->name }}
@if ($product->id && $product->original_product->id) {{ $returnRequestItem->product_name }} @else {{ $returnRequestItem->product_name }} @endif @if ($orderProduct->options) @if ($attrbutes = Arr::get($orderProduct->options, 'attributes'))

{{ $attrbutes }}

@endif @if ($sku = Arr::get($orderProduct->options, 'sku'))

{{ trans('plugins/ecommerce::order.sku') }} : {{ $sku }}

@endif @endif
{{ format_price($returnRequestItem->price_with_tax) }} x {{ $returnRequestItem->qty }} {{ format_price($returnRequestItem->refund_amount) }}
{{ trans('plugins/ecommerce::order.total_return_amount') }}: {{ format_price($returnRequest->items->sum('refund_amount')) }}
{{ trans('plugins/ecommerce::order.status') }}: {!! BaseHelper::clean($returnRequest->return_status->toHtml()) !!}
@if($returnRequest->return_status != \Botble\Ecommerce\Enums\OrderReturnStatusEnum::COMPLETED || $returnRequest->return_status != \Botble\Ecommerce\Enums\OrderReturnStatusEnum::CANCELED )
{!! Form::customSelect('return_status', \Botble\Ecommerce\Enums\OrderReturnStatusEnum::labels(),$returnRequest->return_status, ['class'=> 'form-control']) !!}
@endif
{{ $returnRequest->order->address->name }}
  • {{ $returnRequest->reason->label() }}
@stop