@php $moneda = \App\Models\Restaurante::actual()->moneda; $insumosJson = $insumos->map(fn($i) => ['id'=>$i->id,'nombre'=>$i->nombre,'unidad'=>$i->unidad,'costo'=>(float)$i->costo]); $recetaJson = $producto->recetas->map(fn($r) => ['insumo_id'=>$r->insumo_id,'cantidad'=>(float)$r->cantidad]); @endphp ← Volver @if($insumos->isEmpty())

📦

Aún no tienes insumos registrados.

Crea insumos en Inventario para poder armar recetas.

Ir a Inventario
@else
@csrf @method('PUT') {{-- Resumen en vivo --}}

Precio venta

{{ $moneda }} {{ number_format($producto->precio,2) }}

Costo receta

Margen

{{-- Ingredientes --}}

Ingredientes / insumos

Sin ingredientes. Agrega el primero.

@endif @push('scripts') @endpush