@extends('layouts.app') @section('title', 'Recipes & Production') @section('content')

Recipes & Production

Build a bill of ingredients for every menu item so a sale automatically deducts stock and shows true food/beverage cost.

@can('data.costs')@endcan @forelse ($products as $product) @php $cost = $product->recipe ? $product->recipe->costPerYieldUnit() : 0; $gp = $product->selling_price - $cost; $gpPct = $product->selling_price > 0 ? round(($gp / $product->selling_price) * 100, 1) : 0; @endphp @can('data.costs') @endcan @empty @endforelse
ProductIngredientsSelling priceRecipe costGross profitGP%
{{ $product->name }} @if ($product->has_recipe && $product->recipe) {{ $product->recipe->items->count() }} ingredient(s) @else No recipe @endif {{ number_format($product->selling_price, 2) }}{{ $product->has_recipe ? number_format($cost, 2) : '—' }} {{ $product->has_recipe ? number_format($gp, 2) : '—' }} {{ $product->has_recipe ? $gpPct.'%' : '—' }}@can('recipes.manage'){{ $product->has_recipe ? 'Edit recipe' : 'Add recipe' }}@endcan
No menu items found.
{{ $products->links() }}
@endsection