@extends('layouts.admin') @section('title', 'Inventory') @section('page_title', 'Inventory Management') @section('content')
@if($search)
Clear Filter Found {{ $inventory->total() }} result(s) for "{{ $search }}"
@endif
@forelse($inventory as $item) @empty @endforelse
Product SKU Quantity Reorder Level Location Status Actions
{{ $item->product->name }} {{ $item->product->sku }} @if($item->quantity > $item->reorder_level) {{ $item->quantity }} @else {{ $item->quantity }} @endif {{ $item->reorder_level }} {{ $item->location ?? 'N/A' }} @if($item->isLowStock()) Low Stock @else Good @endif
@if($search) No inventory items found matching "{{ $search }}" @else No inventory items found @endif
@if($inventory->count())
@endif @endsection