| @if($hasLogo) |
{{ config('app.name') }}Ingredient Inventory Report |
Printed: {{ now()->format('d M Y') }} |
| Total Ingredients | {{ $summary->total }} | Low Stock (< 100 g) | {{ $summary->low }} | Out of Stock | {{ $summary->out }} | Total Inventory Value | {{ number_format($summary->value, 2) }} |
| Category | Ingredient | Purchased | Used | Available | Unit | Total Price | Avg Unit Price | Status |
|---|---|---|---|---|---|---|---|---|
| {{ $i->category->name ?? '-' }} | {{ $i->name }} | {{ \App\Models\Ingredient::formatGrams($i->purchased_grams) }} | {{ \App\Models\Ingredient::formatGrams($i->used_grams) }} | {{ \App\Models\Ingredient::formatGrams($i->available_quantity_grams) }} | {{ $i->unit }} | {{ number_format($i->purchased_value, 2) }} | {{ number_format($i->avg_unit_price * ($i->unit === 'kg' ? 1000 : 1), 2) }}/{{ $i->unit }} | {{ $i->isOutOfStock() ? 'Out' : ($i->isLowStock() ? 'Low' : 'OK') }} |
| No ingredients. | ||||||||
| Supplier | Total Quantity | Total Value |
|---|---|---|
| {{ $s->supplier_name }} | {{ \App\Models\Ingredient::formatGrams($s->grams) }} | {{ number_format($s->value, 2) }} |
| No supplier entries. | ||