@extends('layouts.app') @section('title', 'Inventory') @section('content')
Current stock levels for all products
Tip: Click the icon next to reorder points to adjust them. Set higher reorder points for fast-moving products and lower for slow-moving items.
| SKU | Product Name | Qty | Reorder | Warehouse | Location | Status |
|---|---|---|---|---|---|---|
|
{{ $item->sku }}
|
{{ $item->product_name }}
|
{{ $item->quantity }} |
id) }}', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': '{{ csrf_token() }}'
},
body: JSON.stringify({ reorder_point: value })
})
.then(res => res.json())
.then(data => {
if (data.success) {
editing = false;
alert('Reorder point updated successfully');
} else {
alert('Failed to update: ' + data.message);
}
saving = false;
})
.catch(err => {
alert('Error updating reorder point');
saving = false;
});
"
@keydown.escape="editing = false; value = {{ $item->reorder_point }};">
|
@if($item->warehouse_name)
{{ $item->warehouse_name }}
{{ $item->warehouse_code }}
@else
-
@endif
|
{{ $item->location ?? '-' }} | @if($item->quantity < $item->reorder_point) Low @elseif($item->quantity == 0) Out @else OK @endif |
Inventory will be populated when you receive stock from purchase orders.