@php $productOptions = $products->map(fn ($product) => (object) ['id' => $product->id, 'name' => "{$product->name} ({$product->sku})"]); $previewLines = $this->previewLines(); $totals = $this->totals(); @endphp
Paste it the way it's written — one product and quantity per line. Parse Items matches every line to a product; you review and fix anything before it's added below.
| Typed as | Matched product | Qty | Cost | Amount | |
|---|---|---|---|---|---|
| {{ $line['raw_text'] }} |
@foreach (array_slice($line['candidates'], 1) as $c)
@endforeach
@endif
|
{{ $p ? number_format($p['unit_cost'], 2) : '—' }} | {{ $p ? number_format($p['line_total'], 2) : '—' }} | ||
| No lines match "{{ $reviewSearch }}". | |||||