← Back to purchase orders
{{-- Step: Upload --}} @if ($step === 'upload')

Import Excel Order

Upload a supplier rate list / order sheet. Nothing is created until you review and confirm the preview.

Uploading…
@endif {{-- Step: Preview --}} @if ($step === 'preview') @php $summary = $this->summary(); @endphp
To Import
{{ $summary['to_import'] }}
New Products
{{ $summary['new'] }}
Matched
{{ $summary['matched'] }}
Zero Order
{{ $summary['zero_order'] }}
Skipped
{{ $summary['skipped'] }}
Invalid
{{ $summary['invalid'] }}
@foreach ($rows as $index => $row) $row['is_invalid'], 'opacity-50' => ! $row['is_invalid'] && $row['select_value'] === 'skip', ])> @endforeach
# Product (from file) Match Qty Cost Value Stock Projected
{{ $row['row_number'] }}
{{ $row['product_name'] }}
@if ($row['is_invalid'])
{{ $row['invalid_reason'] }}
@elseif ($row['order_quantity'] == 0)
Not ordered this time
@elseif ($row['match_status'] === 'fuzzy')
Possible match — please confirm
@endif
@if ($row['is_invalid']) @else @endif $row['value_mismatch']])> {{ number_format($row['calculated_value'] ?? 0, 2) }} @if ($row['value_mismatch'])
sheet said {{ number_format($row['stated_value'], 2) }}
@endif
{{ $row['existing_stock'] ?? '—' }} @if ($row['existing_stock'] !== null && $row['select_value'] !== 'skip') {{ $row['existing_stock'] + (int) $row['order_quantity'] }} @else — @endif
@endif {{-- Step: Done --}} @if ($step === 'done')

Purchase order created

{{ $confirmedPoNumber }} was created with {{ $confirmedItemCount }} line item(s). Inventory will update once the goods are received.

View Purchase Order
@endif