@extends('procurement::layouts.master') @section('title','BOM Preview') @section('content')

BOM Preview — {{ $project->name }}

← Upload Different File
@if(!empty($parsed['errors']))
@endif
{{ count($parsed['components']) }} components parsed. {{ collect($parsed['components'])->where('exists',true)->count() }} already exist in the database. {{ count($parsed['skipped']) }} rows skipped (no part number or mixed values).
@csrf
Components to Import
@foreach($parsed['components'] as $idx => $comp) @endforeach
Import Ref Part Number Description Category Qty/Bd Unit $ Supplier Status Action
{{ $comp['ref_designator'] }} {{ $comp['part_number'] }} {{ Str::limit($comp['description'],40) }} {{ ucwords(str_replace('_',' ',$comp['category'])) }} {{ $comp['qty_per_board'] }} ${{ $comp['unit_cost'] > 0 ? number_format($comp['unit_cost'],4) : '—' }} {{ Str::limit($comp['supplier'],20) ?: '—' }} @if($comp['exists']) Exists @else New @endif @if($comp['exists'])
@else Will create @endif
@if(!empty($parsed['skipped']))
Skipped Rows ({{ count($parsed['skipped']) }})
@foreach($parsed['skipped'] as $skip) @endforeach
ReferenceReason
{{ $skip['ref'] }}{{ $skip['reason'] }}
@endif Cancel
@endsection @push('scripts') @endpush