@php /** @var \App\Domain\Purchasing\Models\PurchaseOrder $order */ @endphp

{{ __('Purchase Return') }} - {{ $order->po_number }}

{{ __('Back to order') }}

{{ __('Only received quantities that haven\'t already been returned are eligible. Stock at :warehouse will be decreased automatically.', ['warehouse' => $order->warehouse->name]) }}

@csrf
@foreach ($order->items as $item) @endforeach
{{ __('Product') }} {{ __('Received') }} {{ __('Already Returned') }} {{ __('Eligible') }} {{ __('Return Now') }}
{{ $item->product->name }} {{ number_format($item->quantity_received) }} {{ number_format($item->quantity_returned) }} {{ number_format($item->remainingToReturn()) }} index}.quantity_returned", 0) }}" class="w-24 rounded-md border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 shadow-sm text-sm text-right focus:border-indigo-500 focus:ring-indigo-500" @if ($item->remainingToReturn() === 0) disabled @endif >
{{ __('Cancel') }} {{ __('Record Return') }}