@extends('layouts.dashboard') @section('content')

Inventory Check Reports

Live progress for salesman van stock checking.

🚚 Salesmen
@forelse($checks as $check) @php $p = $progress[$check->id] ?? [ 'total' => 0, 'checked' => 0, 'unchecked' => 0, 'correct' => 0, 'wrong' => 0, 'missing' => 0, 'percent' => 0, ]; @endphp

{{ $check->salesman_name }}

Started {{ \Carbon\Carbon::parse($check->created_at)->format('Y-m-d H:i') }}

{{ $check->status }}
Progress {{ $p['checked'] }} / {{ $p['total'] }} checked
{{ $p['percent'] }}% completed • {{ $p['unchecked'] }} unchecked
Correct
{{ number_format($p['correct']) }}
Wrong
{{ number_format($p['wrong']) }}
Missing
{{ number_format($p['missing']) }}
Unchecked
{{ number_format($p['unchecked']) }}
View Full Report
@empty
📋

No inventory checks yet

When salesmen start checking inventory, reports will appear here.

@endforelse
{{ $checks->links() }}
@endsection