@extends('admin.layout') @section('title', 'Inventory') @section('content')

Download stock list (CSV)

@if ($fin)@endif @if ($canAdj)@endif @foreach ($rows as $r) @php($p = $r['p']) @if ($fin)@endif @if ($canAdj) @endif @endforeach
ProductStatusUnitsSold (30 days)Days of stock leftSuggested reorderValue at costAdjust
{{ $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{{ $r['value'] === null ? '-' : naira($r['value']) }}
@csrf @if ($p->stock_qty === null)@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.

Recent stock movements

@foreach ($moves as $m) @endforeach
WhenProductChangeBalanceReasonBy
{{ $m->getRawOriginal('created_at') }}{{ $m->product->name ?? '' }}{{ $m->delta > 0 ? '+' : '' }}{{ $m->delta }}{{ $m->balance }}{{ $m->reason }}{{ $m->ref ? ' '.$m->ref : '' }}{{ $m->actor }}
@endsection