@extends('layouts.app') @section('title', 'Edit Purchase Order') @section('content') Back
@csrf @method('PUT')

Line Items

Item Qty Unit Price Tax % Line Total
Subtotal: 0.00   Tax: 0.00   Total: 0.00
Cancel
@endsection @php $poFormItems = ($items ?? collect())->map(function ($i) { return [ 'id' => $i->id, 'label' => $i->item_code.' — '.$i->name_en, ]; })->values(); $poFormLines = ($purchaseOrder->lines ?? collect())->map(function ($l) { return [ 'item_id' => $l->item_id, 'quantity' => $l->quantity, 'unit_price' => $l->unit_price, 'tax_rate' => $l->tax_rate, ]; })->values(); $poPreserveReason = (bool) old('supplier_selection_reason', $purchaseOrder->supplier_selection_reason); @endphp @push('scripts') @endpush