@php /** @var \App\Domain\Purchasing\Models\PurchaseOrder $order */ $existingItems = old('items', $order->items->map(fn ($item) => [ 'product_id' => (string) $item->product_id, 'tax_id' => $item->tax_id ? (string) $item->tax_id : '', 'quantity_ordered' => $item->quantity_ordered, 'unit_cost' => (float) $item->unit_cost, ])->all()); @endphp

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

{{ __('Back to order') }}
@csrf @method('PUT')

{{ __('Line Items') }}

{{ __('Product') }} {{ __('Tax') }} {{ __('Qty') }} {{ __('Unit Cost') }} {{ __('Line Total') }}
{{ __('Grand Total:') }}
{{ __('Cancel') }} {{ __('Save Changes') }}
@push('scripts') @vite('resources/js/purchase-order-form.js') @endpush