@extends('layouts.admin') @section('title', 'Low Stock Items') @section('page_title', 'Low Stock Items') @section('content')
Back to Inventory
@if($lowStockItems->count() > 0)
Low Stock Items ({{ $lowStockItems->count() }})
@foreach($lowStockItems as $item) @endforeach
Product SKU Category Current Stock Location Actions
{{ $item->product->name ?? 'Unknown Product' }} {{ $item->product->sku ?? 'N/A' }} @if($item->product && $item->product->category) {{ $item->product->category->name }} @else N/A @endif {{ $item->quantity }} units {{ $item->location ?? 'Not specified' }} Update Stock
Critical Stock

{{ $lowStockItems->where('quantity', '<=', 5)->count() }}

Low Stock

{{ $lowStockItems->where('quantity', '>', 5)->count() }}

@else @endif
@endsection