@extends('layouts.app') @section('title', 'Recipes & Production') @section('content')
Build a bill of ingredients for every menu item so a sale automatically deducts stock and shows true food/beverage cost.
| Product | Ingredients | Selling price | @can('data.costs')Recipe cost | Gross profit | GP% | @endcan|
|---|---|---|---|---|---|---|
| {{ $product->name }} |
@if ($product->has_recipe && $product->recipe)
{{ $product->recipe->items->count() }} ingredient(s)
@else
|
{{ number_format($product->selling_price, 2) }} | @can('data.costs'){{ $product->has_recipe ? number_format($cost, 2) : '—' }} | {{ $product->has_recipe ? number_format($gp, 2) : '—' }} | {{ $product->has_recipe ? $gpPct.'%' : '—' }} | @endcan@can('recipes.manage'){{ $product->has_recipe ? 'Edit recipe' : 'Add recipe' }}@endcan |
| No menu items found. | ||||||