@extends('layouts.app')
@section('title', 'Inventory Analytics')
@section('content')
Total Ingredients
{{ $cards->total_ingredients }}
Purchased (range)
{{ \App\Models\Ingredient::formatGrams($cards->purchased_grams) }}
Used (range)
{{ \App\Models\Ingredient::formatGrams($cards->used_grams) }}
Available (now)
{{ \App\Models\Ingredient::formatGrams($cards->available_grams) }}
Low Stock (< 100 g)
{{ $cards->low }}
Out of Stock
{{ $cards->out }}
Inventory Value
{{ number_format($cards->value, 2) }}
Purchased Quantity by Date (grams)
Used Quantity by Date (grams)
Ingredient-wise Available Stock (grams)
Ingredient-wise Usage Quantity (grams)
Supplier-wise Purchase Quantity (grams)
Low / Out of Stock Ingredients
| Ingredient | Category | Available | Status |
@foreach($outStock as $i)
| {{ $i->name }} | {{ $i->category->name ?? '—' }} | {{ \App\Models\Ingredient::formatGrams($i->available_quantity_grams) }} | Out |
@endforeach
@foreach($lowStock as $i)
| {{ $i->name }} | {{ $i->category->name ?? '—' }} | {{ \App\Models\Ingredient::formatGrams($i->available_quantity_grams) }} | Low |
@endforeach
@if($outStock->isEmpty() && $lowStock->isEmpty())
| All ingredients sufficiently stocked. |
@endif
@endsection
@push('scripts')
@endpush