@extends('layouts.app') @section('title', 'Ingredient Reports') @section('content')
| Ingredient | Category | Available (grams) | Status | ||
|---|---|---|---|---|---|
| {{ $i->name }} | {{ $i->category->name ?? '—' }} | {{ \App\Models\Ingredient::formatGrams($i->available_quantity_grams) }} | {!! $i->isOutOfStock() ? 'Out' : ($i->isLowStock() ? 'Low' : 'OK') !!} | ||
| No ingredients. | |||||
| Date | Ingredient | Qty | Notes / Purpose | ||
| {{ $r->usage_date->format('d M Y') }} | {{ $r->ingredient->name ?? '—' }} | {{ \App\Models\Ingredient::trimNum($r->quantity) }} {{ $r->unit }} ({{ \App\Models\Ingredient::formatGrams($r->quantity_in_grams) }}) | {{ $r->notes ?? '—' }} | ||
| No usage records in this range. | |||||
| Date | Ingredient | Supplier | Qty | Unit Price | Total Price |
| {{ $r->date->format('d M Y') }} | {{ $r->ingredient->name ?? '—' }} | {{ $r->supplier_name }} | {{ \App\Models\Ingredient::trimNum($r->quantity) }} {{ $r->unit }} | {{ number_format($r->unit_price,2) }} | {{ number_format($r->total_price,2) }} |
| No stock entries in this range. | |||||