{{ $companyName }} {{ $reportTitle }} {{ $documentNumber }}
Shop {{ $stockTaking->shop?->name }} Taken By {{ $stockTaking->takenBy?->name }} Taken At {{ $stockTaking->taken_at?->format('d M Y H:i') }}
Previous Stock Take {{ $stockTaking->referenceStockTaking?->stock_take_number ?? 'Opening count' }} Discrepancies {{ $report['summary']['discrepancy_count'] }} Exceptions {{ $report['summary']['exception_count'] }}
Adjustment Qty {{ number_format((float) $report['summary']['adjustment_quantity_total'], 2) }} Exception Qty {{ number_format((float) $report['summary']['exception_quantity_total'], 2) }} Total Counted Qty {{ number_format((float) $report['summary']['total_counted_quantity'], 2) }}

@forelse ($report['items'] as $item) $item['has_discrepancy']])> @empty @endforelse
Product Last Stock Take Net Movement Expected Qty Counted Qty Variance Status
{{ $item['product_name'] }} {{ $item['previous_quantity'] === null ? '-' : number_format((float) $item['previous_quantity'], 2) }} {{ $item['movement_quantity'] === null ? '-' : sprintf('%+.2f', (float) $item['movement_quantity']) }} {{ number_format((float) $item['expected_quantity'], 2) }} {{ number_format((float) $item['counted_quantity'], 2) }} {{ sprintf('%+.2f', (float) $item['variance_quantity']) }} {{ $item['has_discrepancy'] ? 'Discrepancy' : 'Matched' }}
No counted stock lines were saved for this stock taking.

@forelse ($report['exceptions'] as $exception) @empty @endforelse
Entered Name Barcode Counted Qty Unit Status Resolved Product Resolved By Notes
{{ $exception['entered_name'] }} {{ $exception['entered_barcode'] ?: '-' }} {{ number_format((float) $exception['counted_quantity'], 2) }} {{ $exception['unit'] }} {{ ucfirst($exception['status']) }} {{ $exception['resolved_product_name'] ?: '-' }} {{ $exception['resolved_by_name'] ?: '-' }} @if ($exception['resolved_at'])
{{ \Illuminate\Support\Carbon::parse($exception['resolved_at'])->format('d M Y H:i') }} @endif
{{ $exception['notes'] ?: '-' }}
No unregistered item exceptions were captured during this stock taking.