WAREHOUSE RMA HANDOVER
Non-sellable customer returns / defective goods
Handover No: {{ $handover->handover_number }}Handover Date: {{ ($handover->handed_over_at ?? $handover->prepared_at)?->format('d M Y') }}
Salesman: {{ $handover->salesman?->name }}Status: {{ strtoupper(str_replace('_',' ',$handover->status)) }}
@foreach($handover->items->sortBy(fn($i)=>$i->returnItem?->returnDocument?->customer?->shop_name) as $i)@endforeach
CustomerReturnSKUBarcodeProductQtyReasonReturn Date
{{ $i->returnItem?->returnDocument?->customer?->shop_name ?? 'Unlinked' }}{{ $i->returnItem?->returnDocument?->return_number }}{{ $i->returnItem?->sku_snapshot }}{{ $i->returnItem?->barcode_snapshot }}{{ $i->returnItem?->name_snapshot }}{{ (float)$i->expected_qty }}{{ str_replace('_',' ',ucwords($i->returnItem?->reason_code ?? '')) }}{{ $i->returnItem?->returnDocument?->created_at?->format('d M Y') }}
Total Lines: {{ $handover->items->count() }}    Total Qty: {{ number_format((float)$handover->items->sum('expected_qty'),2) }}
Salesman Signature
{{ $handover->salesman?->name }}
Warehouse Receiver Signature
{{ $handover->warehouse_receiver_name ?: 'Name: __________________' }}