@extends('layouts.app') @section('title', 'Inventory Value Report') @section('content')
{{ $reportPeriod }}
| SKU | Product Name | Quantity | Warehouse | Location | Avg Cost | Total Value |
|---|---|---|---|---|---|---|
|
{{ $item->sku }}
|
{{ $item->product_name }}
|
{{ $item->quantity }} |
@if($item->warehouse_name)
{{ $item->warehouse_name }}
{{ $item->warehouse_code }}
@else
-
@endif
|
{{ $item->location ?? '-' }} | @if($item->avg_cost > 0) RM {{ number_format($item->avg_cost, 2) }} @else - @endif | @if($item->total_value > 0) RM {{ number_format($item->total_value, 2) }} @else RM 0.00 @endif |
| TOTAL INVENTORY VALUE: | RM {{ number_format($totalValue, 2) }} | |||||
Start by creating a purchase order to add inventory.
| SKU | Product Name | Warehouse | Qty Out | Transactions | Type |
|---|---|---|---|---|---|
|
{{ $item->sku }}
|
{{ $item->product_name ?? '-' }}
|
@if($item->warehouse_name)
{{ $item->warehouse_name }}
{{ $item->warehouse_code }}
@else
-
@endif
|
{{ number_format($item->total_out) }} | {{ $item->transaction_count }} | @php $types = explode(', ', $item->out_types ?? ''); $typeLabels = [ 'agent_sale' => 'Sales', 'order' => 'Order', 'transfer' => 'Transfer', 'adjustment' => 'Adjustment', ]; @endphp @foreach($types as $type) {{ $typeLabels[$type] ?? ucfirst($type) }} @endforeach |
| TOTAL STOCK OUT: | {{ number_format($totalStockOut) }} | ||||
No stock out transactions found for this period.
Note: Values are calculated based on the average unit cost from all purchase orders. Items without purchase history show as RM 0.00.