@php $productOptions = $products->map(fn ($product) => (object) ['id' => $product->id, 'name' => "{$product->name} ({$product->sku})"]); @endphp
← Back to purchase orders
@if (session('error'))
{{ session('error') }}
@endif

New Purchase Order

Items

@foreach ($items as $index => $item) @endforeach
Product Quantity Unit Cost Tax % Line Total
{{ number_format((float) ($item['quantity'] ?: 0) * (float) ($item['unit_cost'] ?: 0), 2) }} @if (count($items) > 1) @endif
Subtotal {{ number_format($this->subtotal(), 2) }}
Tax {{ number_format($this->taxTotal(), 2) }}
Total {{ number_format($this->grandTotal(), 2) }}
Cancel