@extends('layouts.app') @section('title', 'Low Stock Report') @section('content')

Low Stock Report

Items currently below their minimum stock level

@if(isset($stocks) && $stocks->count() > 0)
{{ $stocks->count() }} item(s) are below minimum stock level. Immediate action may be required.
@endif
@forelse($stocks as $stock) @php $shortage = $stock->item->minimum_stock_level - $stock->quantity; @endphp @empty @endforelse
Item Code Item Name Category Warehouse Current Qty Min Stock Shortage Status
{{ $stock->item->item_code ?? '' }} {{ $stock->item->item_name ?? '' }} @php $catLabels = ['raw_material'=>'Raw Material','wip'=>'WIP','finished_good'=>'Finished Good']; @endphp {{ $catLabels[$stock->item->category ?? ''] ?? ucfirst($stock->item->category ?? '') }} {{ $stock->warehouse->name ?? '' }} {{ number_format($stock->quantity, 2) }} {{ number_format($stock->item->minimum_stock_level ?? 0, 2) }} {{ number_format($shortage, 2) }} LOW STOCK
All items are above minimum stock levels.
@endsection