{{ $conflictingPoReference }} is an open draft for this supplier and warehouse. Do you want to add these lines to it, or create a separate PO?
Loading stock data…
{{ $search ? 'No suppliers match your search' : 'No suppliers found' }}
{{ implode(' · ', $infoItems) }}
@if ($mode === 'min_stock') Below Minimum @elseif ($mode === 'open_orders') Outstanding @else All Needs @endif
{{ $counts['all'] }}items
Estimated Value
£{{ number_format($subtotal, 2) }}
@if ($lineSearch !== '') No results match "{{ $lineSearch }}" @elseif ($lineFilter === 'all' && empty($warehouses)) No order points configured for this supplier — add reorder points in Inventory → Order Points @elseif ($lineFilter === 'all') No items to reorder for this supplier @elseif ($lineFilter === 'critical') No critical items @elseif ($lineFilter === 'overridden') No overridden quantities @else No excluded lines @endif
@if ($lineSearch !== '') @endif| SKU ↕ | Product ↕ | Current Stock ↕ | @if ($mode === 'min_stock') Min Level @elseif ($mode === 'open_orders') Ordered Qty @else Min / Ordered @endif ↕ | Suggested Qty ↕ | Unit Cost ↕ | VAT | Line Total ↕ | |
|---|---|---|---|---|---|---|---|---|
| {{-- SKU: amber monospace, no pill --}} | @if ($line['sku']) {{ $line['sku'] }} @else — @endif | {{-- Product name --}}{{ $line['name'] }} @if (!empty($line['open_po_ref'])) {{ $line['open_po_ref'] }}@if(!empty($line['open_po_qty'])) ({{ (int) $line['open_po_qty'] }} on order)@endif @endif | {{-- Current stock: number + compact bar + badge, all inline --}}
{{ (int) $line['on_hand_qty'] }}
{{-- Bar: explicit @class so Tailwind compiles the colours --}}
$stockPct == 0,
'bg-amber-500' => $stockPct > 0 && $stockPct < 40,
'bg-amber-300' => $stockPct >= 40,
]) style="width: {{ number_format($stockPct, 0) }}%">
|
{{-- Min level / Ordered qty --}}
@if ($mode === 'combined') @php $minQ = $line['min_qty'] !== null ? (int)$line['min_qty'] : null; $ordQ = $line['ordered_qty'] !== null ? (int)$line['ordered_qty'] : null; @endphp @if ($minQ !== null && $ordQ !== null) {{ $minQ }} / {{ $ordQ }} @else {{ $minQ ?? $ordQ }} @endif @elseif ($mode === 'min_stock') {{ (int)($line['min_qty'] ?? 0) }} @else {{ (int)($line['ordered_qty'] ?? 0) }} @endif | {{-- Qty stepper --}}
$isOverridden,
'border-gray-300 focus:ring-primary-500/30 dark:border-gray-600' => ! $isOverridden,
])>
@if ($isOverridden)
@else
suggested {{ (int) $line['suggested_qty'] }}
@endif
|
{{-- Unit cost --}}
£{{ number_format((float) $line['unit_cost'], 2) }} | {{-- VAT amount --}}@if ($vatAmount !== null) £{{ number_format($vatAmount, 2) }} @else — @endif | {{-- Line total --}}@if ($line['included'] && (float) $line['qty'] > 0) £{{ number_format($lineTotal, 2) }} @else — @endif |