Rollo
{{ $selectedEtiqueta }}
@if($division)
{{ $division->article?->id ?? '—' }}
@if($division->article?->fiber_desc)
{{ Str::limit($division->article->fiber_desc, 40) }}
@endif
Metros
{{ number_format($division->metros, 1) }} m
@if($division->article?->gsm_target)
GSM objetivo
{{ $division->article->gsm_target }} g/m²
@endif
@if($division->article?->width_target)
Ancho objetivo
{{ $division->article->width_target }}"
@endif
Calidad actual
{{ $division->calidad_final ?? 'PEND' }}
@endif
{{-- Links to other QC modules for same roll --}}
Otros QC para este rollo:
{{-- ── History (compact in sidebar on wide screens) ── --}}
@if($history->count() > 0)
Historial
@foreach($history as $h)
{{ $h->fecha?->format('d/m/Y') }}
@php
$oc = match($h->overall_result) {
'APPROVED' => '#10b981',
'CONDITIONAL' => '#f59e0b',
'REJECTED' => '#ef4444',
default => '#94a3b8',
};
@endphp
{{ $h->overall_result }}
{{ $h->stage }} · {{ $h->inspector }}
@if($h->gsm) | GSM {{ $h->gsm }} @endif
@if($h->width_in) | {{ $h->width_in }}" @endif
@endforeach
@endif
{{-- Overall result bar (reactive) --}}
@php
$overallClass = match($results['overall']) {
'APPROVED' => 'overall-approved',
'CONDITIONAL' => 'overall-conditional',
'REJECTED' => 'overall-rejected',
default => 'overall-pending',
};
$overallIcon = match($results['overall']) {
'APPROVED' => '✅',
'CONDITIONAL' => '⚠️',
'REJECTED' => '❌',
default => '⏳',
};
$overallText = match($results['overall']) {
'APPROVED' => 'Aprobado',
'CONDITIONAL' => 'Condicional — requiere revisión',
'REJECTED' => 'Rechazado — fuera de especificación',
default => 'Pendiente — ingrese valores',
};
@endphp
{{ $overallIcon }}
{{ $overallText }}
Resultado se actualiza automáticamente mientras ingresa valores
{{-- Meta row: stage, date, inspector --}}
{{-- ── GSM ──────────────────────────────────────────── --}}
{{-- ── Width ─────────────────────────────────────────── --}}
{{-- ── Stretch ─────────────────────────────────────────── --}}
{{-- ── Wash Resistance ─────────────────────────────────── --}}
{{-- ── Notes & Save ────────────────────────────────────── --}}