@extends('layouts.app') @section('title', 'Dashboard') @section('content')
Real-time status parameters, decentralized stock entries, and shelf lifecycle alerts.
Stock Check-In
Register incoming supplies & lock batch lifetimes
Stock Check-Out
Log ingredient extraction
View Inventory
Audit active store ledgers
Total Products
{{ $stats['total_products'] }}
Low Stock Triggers
{{ $stats['low_stock_count'] }}
Today Check-In Flows
{{ $stats['today_checkins'] }}
Expiring Soon Queue
{{ $stats['expiring_soon'] }}
Tracking independent stock batch windows nearing their lifespan thresholds.
| Batch Reference Item | Category Allocation | Remaining Volume | Target Expiration | Status |
|---|---|---|---|---|
| {{ method_exists($item, 'batches') ? $item->name : ($item->product->name ?? 'Unknown Item') }} | {{ method_exists($item, 'batches') ? $item->category : ($item->product->category ?? '—') }} | {{ method_exists($item, 'batches') ? $item->stock : ($item->remaining_quantity ?? $item->quantity ?? '0') }}{{ method_exists($item, 'batches') ? $item->unit : ($item->product->unit ?? '') }} | {{ \Carbon\Carbon::parse($item->expiry_date)->format('d M Y') }} | @php $daysLeft = (int) now()->startOfDay()->diffInDays(\Carbon\Carbon::parse($item->expiry_date)->startOfDay(), false); @endphp @if($daysLeft <= 0) Critical (Expired) @elseif($daysLeft === 1) Tomorrow @elseif($daysLeft <= 3) {{ $daysLeft }} Days Left @else {{ $daysLeft }} Days Left @endif |
| ✨ Safe Zone: No batch records are flagged for expiration inside the current 7-day tracking window. | ||||
Live operational throughput logs for the current shift.
| Item Descriptor | Action Type | Adjustment | Timestamp |
|---|---|---|---|
| {{ $t->product->name }} | @if($t->type === 'check_in') Check-In @elseif($t->type === 'check_out') Check-Out @else {{ $t->type }} @endif | {{ $t->type === 'check_in' ? '+' : '-' }}{{ $t->quantity }} | {{ $t->created_at->format('g:i A') }} |
| No activity recorded during this transaction cycle. | |||
Items whose combined batch stocks fall under target thresholds.
{{ $p->name }}
Threshold: Minimum {{ $p->min_stock }} {{ $p->unit }}
All ingredients are perfectly provisioned.