@if($color)
🎨 {{ $color->code }} — {{ $color->name }}
@endif
@if($pf)
📦 Partida: {{ $pf->partida }} · V.{{ $pf->version_number }}
@endif
@if($curve)
📈 Curva: {{ $curve->nombre }}
@endif
🚿 Relación de baño: {{ $r->water_ratio }}:1
@if($r->emitido_por)
👤 {{ $r->emitido_por }}
@endif
@if($pf && $pf->formulaItems->isNotEmpty())
Colorantes / Químicos
| Producto |
Proveedor |
Energía |
% owf |
@foreach($pf->formulaItems as $item)
| {{ $item->dyestuff?->name ?? '—' }} |
{{ $item->dyestuff?->supplier ?? '—' }} |
@if($item->dyestuff?->energy_level)
{{ $item->dyestuff->energy_level }}
@endif
|
{{ number_format($item->concentration_owf, 4) }} |
@endforeach
@elseif($pf)
Sin ítems de fórmula.
@else
Sin fórmula de producción asignada.
@endif
@if($calcRecipeId === $r->id && $calcRecipe)
kg de tela
@if($calcBatchKg > 0)
| Producto |
% owf |
Kg tela |
Total (kg) |
@foreach($calcRecipe->productionFormula?->formulaItems ?? [] as $item)
@php $totalKg = ($item->concentration_owf / 100) * $calcBatchKg; @endphp
| {{ $item->dyestuff?->name ?? '—' }} |
{{ number_format($item->concentration_owf, 4) }} |
{{ number_format($calcBatchKg, 1) }} |
{{ number_format($totalKg, 3) }} kg |
@endforeach
@if($calcRecipe->dyeCurve && $calcRecipe->water_ratio > 0)
Agua total: {{ number_format($calcBatchKg * $calcRecipe->water_ratio, 0) }} L
({{ $calcBatchKg }} kg × {{ $calcRecipe->water_ratio }}:1)
@endif
@endif
@endif
@if($r->notes)
{{ $r->notes }}
@endif