PT. CINTA KASIH BERSAMA
Warehouse Management System
Laporan Stock Opname
Informasi Opname
Tanggal Opname: {{ \Carbon\Carbon::parse($opname->opname_date)->format('d F Y') }}
Status: @php $status = $opname->status instanceof \App\Enums\OpnameStatus ? $opname->status : \App\Enums\OpnameStatus::from($opname->status); @endphp {{ $status->label() }}
Dibuat: {{ \Carbon\Carbon::parse($opname->created_at)->format('d F Y H:i') }}
Informasi Dealer & User
Dealer: {{ $opname->dealer->name ?? '-' }}
User: {{ $opname->user->name ?? '-' }}
Detail Stock Opname
@php $totalSystemStock = 0; $totalPhysicalStock = 0; $totalDifference = 0; $positiveCount = 0; $negativeCount = 0; $zeroCount = 0; @endphp @foreach($opname->details as $index => $detail) @php $difference = $detail->difference; $totalSystemStock += $detail->system_stock; $totalPhysicalStock += $detail->physical_stock; $totalDifference += $difference; if ($difference > 0) $positiveCount++; elseif ($difference < 0) $negativeCount++; else $zeroCount++; @endphp @endforeach
No. Kode Produk Nama Produk Kategori Stok Sistem Stok Fisik Selisih
{{ $index + 1 }} {{ $detail->product->code ?? '-' }} {{ $detail->product->name ?? '-' }} {{ $detail->product->category->name ?? '-' }} {{ number_format($detail->system_stock, 2) }} {{ number_format($detail->physical_stock, 2) }} {{ $difference > 0 ? '+' : '' }}{{ number_format($difference, 2) }}
TOTAL {{ number_format($totalSystemStock, 2) }} {{ number_format($totalPhysicalStock, 2) }} {{ $totalDifference > 0 ? '+' : '' }}{{ number_format($totalDifference, 2) }}
Ringkasan Stock Opname
{{ count($opname->details) }}
Total Produk
{{ $positiveCount }}
Surplus
{{ $negativeCount }}
Minus
{{ $zeroCount }}
Sesuai