@extends('layouts.app') @section('title', 'Inventory Valuation') @section('content')

Inventory Valuation

Total value of current stock

@forelse($valuations as $row) @empty @endforelse @if(isset($grandTotal)) @endif
Item Code Item Name Category Total Qty Cost Price Total Value
{{ $row->item_code }} {{ $row->item_name }} @php $catBadgeClass = match($row->category) { 'raw_material' => 'badge-blue', 'wip' => 'badge-yellow', 'finished_good' => 'badge-green', default => 'badge-gray', }; $catLabels = ['raw_material'=>'Raw Material','wip'=>'WIP','finished_good'=>'Finished Good']; @endphp {{ $catLabels[$row->category] ?? ucfirst($row->category) }} {{ number_format($row->total_qty, 2) }} {{ number_format($row->cost_price, 2) }} {{ number_format($row->total_value, 2) }}
No valuation data available.
Grand Total {{ number_format($grandTotal, 2) }}
@endsection