@extends('layouts.admin') @section('title', $r->return_number) @section('content') @php $m = $shop->money; @endphp
← {{ __('Returns') }}

{{ $r->return_number }}

{{ __('Items') }}

@csrf
@foreach ($r->items as $i)
{{ $i->product_name }}{{ $i->quantity }} × {{ $m->format((float) $i->unit_price) }}

{{ $i->sku }} · {{ $i->color_label }} {{ $i->size_label }} · {{ __(ucfirst(str_replace('_', ' ', (string) $i->reason))) }}

@if ($r->status === 'approved')
@endif
@endforeach

{{ __('Value of items') }}: {{ $m->format((float) $r->value) }}

@if ($next)
@foreach ($next as $to)@endforeach
@endif
@if (in_array($r->status, ['received', 'refunded'], true) && $r->type === 'return' && auth()->user()->isAdmin())

{{ __('Refund the customer') }}

@csrf
{{ __('Record refund') }}
@endif
@endsection