@extends('layouts.app') @section('title', 'Inventory Report') @section('actions') Download Inventory PDF @endsection @section('content')
| Category | Ingredient | Purchased | Used | Available | Unit | Total Purchase 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 }} | @if($i->isOutOfStock())Out @elseif($i->isLowStock())Low @elseOK@endif |
| No ingredients. | ||||||||
| Supplier | Total Quantity | Total Value |
|---|---|---|
| {{ $s->supplier_name }} | {{ \App\Models\Ingredient::formatGrams($s->grams) }} | {{ number_format($s->value, 2) }} |
| No supplier entries. | ||