@extends('layouts.app') @section('title', 'Inventory Analytics') @section('content')
@foreach($supplierNames as $s)
Reset
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
@foreach($outStock as $i) @endforeach @foreach($lowStock as $i) @endforeach @if($outStock->isEmpty() && $lowStock->isEmpty()) @endif
IngredientCategoryAvailableStatus
{{ $i->name }}{{ $i->category->name ?? '—' }}{{ \App\Models\Ingredient::formatGrams($i->available_quantity_grams) }}Out
{{ $i->name }}{{ $i->category->name ?? '—' }}{{ \App\Models\Ingredient::formatGrams($i->available_quantity_grams) }}Low
All ingredients sufficiently stocked.
@endsection @push('scripts') @endpush