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

📋 Inventory Audit Report

{{ $check->salesman_name }} • {{ \Carbon\Carbon::parse($check->created_at)->format('d M Y H:i') }}

Checked
{{ $items->count() }}
Correct
{{ $items->where('status', 'correct')->count() }}
Wrong
{{ $items->where('status', 'wrong')->count() }}
Missing
{{ $items->where('status', 'missing')->count() }}
@foreach ($items as $item) @php $diff = $item->counted_qty - $item->system_qty; @endphp @endforeach
Photo Product System Counted Diff Status Note
@if ($item->main_image) @else
🖼
@endif
{{ $item->name }}
{{ $item->sku }}
{{ $item->barcode }}
{{ number_format($item->system_qty) }} {{ number_format($item->counted_qty) }} @if ($diff == 0) 0 @elseif($diff > 0) +{{ number_format($diff) }} @else {{ number_format($diff) }} @endif {{ ucfirst($item->status) }} {{ $item->note ?: '-' }}
@endsection