Total Stock Report

Run time: {{ $runAt->format('Y-m-d h:i A') }}
User: {{ auth()->user()->name ?? 'System' }}
@php $count = 0; @endphp @foreach($products as $product) @php $count++; $qty = (float) ($product->stock_qty ?? 0); $unitCost = (float) ($product->price_buy ?? 0); $unitSale = (float) ($product->price_sale ?? 0); $costValue = $qty * $unitCost; $saleValue = $qty * $unitSale; @endphp @endforeach
# Barcode Product Name Supplier Category Qty Unit Cost Cost Value Unit Sale Sale Value
{{ $count }} {{ $product->barcode }} {{ $product->name }} {{ $product->supplier->name ?? '-' }} {{ $product->productCategory->name ?? '-' }} {{ number_format($qty, 2) }} {{ number_format($unitCost, 2) }} {{ number_format($costValue, 2) }} {{ number_format($unitSale, 2) }} {{ number_format($saleValue, 2) }}
Total {{ number_format($totals['cost_value'], 2) }} {{ number_format($totals['sale_value'], 2) }}