@extends('layouts.app') @section('content')
Stock Count Session #{{ $count->sc_id }}
Date: {{ $count->sc_date->format('Y-m-d') }} | User: {{ $count->user->user_fname ?? 'N/A' }}
Print Worksheet Back to List
@php $total = $items->count(); $counted = $items->where('scl_count_qty', '>', 0)->count(); $progress = $total > 0 ? round(($counted / $total) * 100) : 0; @endphp
Progress: {{ $counted }} / {{ $total }} items counted {{ $progress }}%
@foreach($items as $item) @endforeach
Barcode Product Name System Qty Count Qty Variance Update Qty Type
{{ $item->product->product_barcode }} {{ $item->product->product_name }} {{ number_format($item->scl_system_qty, 3) }} @if($item->scl_count_qty > 0) @php $variance = $item->scl_count_qty - $item->scl_system_qty; @endphp {{ number_format($variance, 3) }} @endif @if($item->scl_details_update_qty > 0) {{ number_format($item->scl_details_update_qty, 3) }} @endif @if($item->scl_count_qty > 0) {{ $item->scl_details_in_out == 1 ? 'IN' : 'OUT' }} @endif
@csrf
@endsection