@php $vanStockImport = $vanStockImport ?? $import ?? null; @endphp @extends('layouts.dashboard') @section('content') @php $items = $vanStockImport->items()->with('product')->paginate(50); @endphp

{{ $vanStockImport->title }}

{{ $vanStockImport->original_file }}

Back
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Van
{{ $vanStockImport->van_name ?: '-' }}
Items
{{ number_format($vanStockImport->items_count ?? 0) }}
Matched
{{ number_format($vanStockImport->matched_count ?? 0) }}
Missing
{{ number_format($vanStockImport->missing_count ?? $vanStockImport->unmatched_count ?? 0) }}
Status
{{ $vanStockImport->status }}
@if($vanStockImport->status === 'failed')
Import Failed
This file was not imported as Van Stock. If this is a regular price list, upload it under Price Lists or Import Center as Price List.
@endif

Van Stock Items

@if($items->count() === 0)
No van stock items found.
@else
@foreach($items as $item) @endforeach
Product SKU Barcode Category Qty Match
{{ $item->product?->name ?: $item->name ?: 'Product not found' }} {{ $item->sku ?: '-' }} {{ $item->barcode ?: '-' }} {{ $item->category ?: $item->product?->category ?: '-' }} {{ number_format((float) $item->qty) }} @if($item->match_status === 'matched') Matched @elseif($item->match_status === 'missing') Missing @else {{ $item->match_status ?: 'Unknown' }} @endif
{{ $items->links() }}
@endif
@endsection