@extends('layouts.dashboard') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Van Stocks

Upload salesman van stock files and match them with product library.

+ Upload Van Stock
@if($latestImport)
Latest Van Stock
{{ $latestImport->van_name ?: $latestImport->title }}
Items
{{ number_format($latestImport->total_rows) }}
Matched
{{ number_format($latestImport->matched_count) }}
Missing
{{ number_format($latestImport->missing_count) }}
Total Qty
{{ number_format($latestImport->total_qty) }}
@endif

Import History

@forelse($imports as $import) @empty @endforelse
File Van Status Items Matched Missing Total Qty Date Version
{{ $import->original_file }} {{ $import->van_name ?: '-' }} {{ $import->status }} {{ number_format($import->total_rows) }} {{ number_format($import->matched_count) }} {{ number_format($import->missing_count) }} {{ number_format($import->total_qty) }} {{ $import->created_at->format('Y-m-d H:i') }} {{ $import->effective_date?->format('Y-m-d') ?: '—' }} @if($import->is_active)Active@endif
View
@csrf @method('DELETE')
No van stock imports yet.
{{ $imports->links() }}
@endsection