@extends('layouts.app') @section('title', 'Ingredients') @section('content')
| @endcan | Ingredient | Category | Unit | Expiry | Cost / unit | Stock on hand | |
|---|---|---|---|---|---|---|---|
| @endcan | {{ $ingredient->name }} | {{ $ingredient->category->name ?? '—' }} | {{ $ingredient->unit->abbreviation ?? '—' }} | {{ number_format($ingredient->cost_price, 2) }} | {{ optional($ingredient->stocks->first()?->expiry_date)->format('d M Y') ?? '—' }} | {{ number_format((float) $ingredient->stocks->sum('quantity_on_hand'), 2) }} | Edit |
| No ingredients yet. | |||||||