@php
$deCls = match($pf) {
'PASS' => 'pass',
'MARGINAL' => 'marginal',
'FAIL' => 'fail',
default => 'no-data',
};
@endphp
{{ $trial->delta_e !== null ? 'ΔE '.number_format($trial->delta_e, 2) : '—' }}
{{ $pf === 'PASS' ? 'DENTRO DEL ESTÁNDAR' : ($pf === 'MARGINAL' ? 'MARGINAL' : ($pf === 'FAIL' ? 'FUERA DEL ESTÁNDAR' : 'Sin medición')) }}
@if($trial->read_l !== null)
L* {{ number_format($trial->read_l,2) }}
a* {{ number_format($trial->read_a,2) }}
b* {{ number_format($trial->read_b,2) }}
@if($trial->measured_stage)
{{ ucfirst($trial->measured_stage) }}
@endif
@endif
@if($trial->formulaItems->isNotEmpty())
| Colorante |
% owf |
@foreach($trial->formulaItems as $item)
| {{ $item->dyestuff?->name ?? '—' }} |
{{ number_format($item->concentration_owf,4) }}
|
@endforeach
@else
Sin colorantes registrados.
@endif
@if($trial->trial_notes)
{{ $trial->trial_notes }}
@endif
@if($trial->measured_at)
Medido: {{ $trial->measured_at->format('d/m/Y') }}
@endif