@extends('documents.inventory._layout', [ 'documentTitle' => 'Stock Count Sheet', 'reference' => $take->reference, 'documentDate' => now()->format('d M Y'), ]) @section('header-meta')
Location: {{ $take->location?->name ?? '—' }}
Mode: {{ ucfirst($take->counting_mode ?? 'manual') }} @if($take->counting_mode === 'serial')  (serial scanning) @endif
@endsection @section('content') {{-- Instructions --}}
Instructions: Count the physical stock at {{ $take->location?->name }}. Enter the counted quantity in the "Counted Qty" column. Leave blank if item cannot be found. Record your name and the date at the bottom. @if($take->counting_mode === 'serial')
Note: This stock take uses serial scanning mode — the count sheet is provided for reference only. @endif
Initiated By {{ $take->initiatedBy?->name ?? '—' }} Initiated Date {{ $take->initiated_date ? \Carbon\Carbon::parse($take->initiated_date)->format('d M Y') : '—' }}
{{-- Count table --}} @foreach($take->items as $i => $item) @endforeach
# Product SKU Lot System Qty Counted Qty Variance Counted By
{{ $i + 1 }} {{ $item->product?->name ?? '—' }} {{ $item->product?->sku ?? '—' }} {{ $item->lot?->lot_number ?? '—' }} {{ number_format($item->system_quantity) }}
Total Lines: {{ $take->items->count() }} {{ number_format($take->items->sum('system_quantity')) }}
{{-- Signature --}}
Counter
Name: ___________________________
Date: ___________________________
Signature: ______________________
Supervisor / Warehouse Manager
Name: ___________________________
Date: ___________________________
Signature: ______________________
@endsection