@extends('layouts.app') @section('title', 'Return Details') @section('content')

{{ $return->return_number }}

Return Details

Return Information

Type
@if($return->type === 'supplier_return') Supplier Return @else Customer Return @endif
@if($return->type === 'supplier_return') Supplier @else Customer @endif
@if($return->type === 'supplier_return') {{ $return->supplier_name ?? '-' }} @else {{ $return->customer_name }} @if($return->customer_order_ref)
Order Ref: {{ $return->customer_order_ref }}
@endif @endif
Status
@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200', 'approved' => 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', 'rejected' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200', 'completed' => 'bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-200', ]; @endphp {{ ucfirst($return->status) }}
Processed By
{{ $return->processed_by_name }} • {{ \Carbon\Carbon::parse($return->processed_at)->format('d M Y H:i') }}
Reason
{{ $return->reason }}
@if($return->notes)
Notes
{{ $return->notes }}
@endif

Return Items

@foreach($items as $item) @endforeach
SKU Product Name Quantity Condition Warehouse
{{ $item->sku }} {{ $item->product_name }} {{ $item->quantity }} @php $conditionColors = [ 'defective' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200', 'damaged' => 'bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200', 'resalable' => 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', ]; @endphp {{ ucfirst($item->condition) }} {{ $item->warehouse_name }} ({{ $item->warehouse_code }})
@if($return->status === 'pending')
@csrf
@csrf
@endif
@endsection