@extends('admin.layout') @section('title', 'Inventory') @section('content')
| Product | Status | Units | Sold (30 days) | Days of stock left | Suggested reorder | @if ($fin)Value at cost | @endif @if ($canAdj)Adjust | @endif
|---|---|---|---|---|---|---|---|
| {{ $p->name }} {{ $p->category->name ?? '' }} |
{{ \App\Models\Product::STOCK_LABELS[$r['state']] }} | @if ($p->stock_qty === null)not counted@else{{ $p->stock_qty }}@endif | {{ $r['sold'] }} | {{ $r['cover'] ?? '-' }} | @if ($r['reorder'] === null)-@else{{ $r['reorder'] }}@endif | @if ($fin){{ $r['value'] === null ? '-' : naira($r['value']) }} | @endif @if ($canAdj)@endif |
Customers placing an order reduce the units automatically. Cancelling an order puts its units back. Products with "not counted" use the simple availability setting on the product.
| When | Product | Change | Balance | Reason | By |
|---|---|---|---|---|---|
| {{ $m->getRawOriginal('created_at') }} | {{ $m->product->name ?? '' }} | {{ $m->delta > 0 ? '+' : '' }}{{ $m->delta }} | {{ $m->balance }} | {{ $m->reason }}{{ $m->ref ? ' '.$m->ref : '' }} | {{ $m->actor }} |