@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 (e.g. "Beard Softner Cream 100Gm 12"). Parse Items matches every line to a product; you review and fix anything before it's added below.
| Typed as | Matched product | Qty | @if ($generateInvoice)Rate | Amount | @endif|
|---|---|---|---|---|---|
|
{{ $line['raw_text'] }}
@if ($line['section_label'])
{{ $line['section_label'] }}
@endif
|
@foreach (array_slice($line['candidates'], 1) as $c)
@endforeach
@endif
|
@if ($generateInvoice) | {{ $p ? number_format($p['unit_price'], 2) : '—' }} | {{ $p ? number_format($p['taxable'], 2) : '—' }} | @endif|
| No lines match "{{ $reviewSearch }}". | |||||