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

Returns

Manage supplier and customer returns

@if($returns->count() > 0) @foreach($returns as $return) @endforeach
Return # Type Supplier/Customer Reason Status Date Actions
{{ $return->return_number }}
{{ $return->processed_by_name }}
@if($return->type === 'supplier_return') Supplier Return @else Customer Return @endif
@if($return->type === 'supplier_return') {{ $return->supplier_name ?? '-' }} @else {{ $return->customer_name }} @if($return->customer_order_ref)
Order: {{ $return->customer_order_ref }}
@endif @endif
{{ Str::limit($return->reason, 40) }}
@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) }} {{ \Carbon\Carbon::parse($return->processed_at)->format('d M Y H:i') }} View Details
{{ $returns->links() }}
@else

No returns

Get started by creating a new return.

@endif
@endsection