@extends('layouts.app') @section('title', 'Ingredientes — ' . $batch->name) @php $unitOptions = ['g' => 'g', 'kg' => 'kg', 'ml' => 'ml', 'l' => 'L', 'unit' => 'ud']; $stepOptions = $batch->steps->sortBy(fn ($s) => $s->step_number)->values(); $fmt = fn ($v) => $v !== null ? rtrim(rtrim(number_format((float) $v, 3, '.', ''), '0'), '.') : ''; @endphp @section('content')
Ajusta los ingredientes de este lote sobre la marcha. No cambia la receta original.
{{-- Ingredientes actuales --}} @forelse($batch->ingredients->sortBy([['batch_step_id', 'asc'], ['id', 'asc']]) as $ing)