@if (session()->has('message'))
✅ {{ session('message') }}
@endif
{{ $enWHCount }}
Rollos en WH
{{ number_format($enWHMeters, 0) }} m
Metros en WH
{{ $pendQCCount }}
Pend. de QC
{{ $enProcesoCount }}
En Proceso
{{ $pendIngresoCount }}
Pend. Ingreso
Rollos Cortados {{ $divisions->count() }} rollos
@forelse ($divisions as $div) @php $whSt = $this->getWhStatus($div->etiqueta); // QC class helper $qcClass = [ 'A' => 'qc-A', 'B' => 'qc-B', 'R' => 'qc-R', 'PEND' => 'qc-PEND' ][$div->calidad_final] ?? 'qc-NONE'; $qcText = $div->calidad_final ?: 'Sin insp.'; // Storage type helper $tipoClass = $div->greigeInventory?->tipo_almacen === 'CARRETA' ? 'bg-gray-100 text-gray-800' : 'bg-blue-100 text-blue-800'; $tipoLabel = $div->greigeInventory?->tipo_almacen === 'CARRETA' ? '🛒 Carreta' : '🌀 Rollo'; // Wh Status Label Helper $statusClass = [ 'PEND_INGRESO' => 'status-badge status-pend', 'EN_WH' => 'status-badge status-wh', 'EN_PROCESO' => 'status-badge status-proc', 'DESPACHADO' => 'status-badge status-desp', ][$whSt] ?? 'status-badge status-pend'; $statusText = [ 'PEND_INGRESO' => 'PEND. INGRESO', 'EN_WH' => 'EN WH', 'EN_PROCESO' => 'EN PROCESO', 'DESPACHADO' => 'DESPACHADO', ][$whSt] ?? $whSt; $hasTermo = $div->processes->contains('proceso', 'TERMOFIJADO'); $needsQC = !$div->calidad_final || $div->calidad_final === 'PEND'; @endphp @empty @endforelse
Clave Artículo Mts Kg QC Tipo Procesos Estado WH Acciones
{{ $div->etiqueta }} {{ $div->articulo_id ?: '—' }} {{ number_format($div->metros, 1) }} m {{ $div->greigeInventory && $div->greigeInventory->peso_kg ? number_format($div->greigeInventory->peso_kg, 1) . ' kg' : '—' }} {{ $qcText }} @if ($div->greigeInventory) {{ $tipoLabel }} @else — @endif @forelse ($div->processes as $p) @php $def = collect($catalog)->firstWhere('id', $p->proceso); $icon = $def ? $def['icon'] : '⚙️'; $label = $def ? $def['label'] : $p->proceso; $isTermo = $p->proceso === 'TERMOFIJADO'; @endphp {{ $icon }} {{ $label }} @empty — @endforelse {{ $statusText }}
Sin registros con estos filtros
@if ($showReceiveModal) @endif @if ($showDispatchModal) @endif @if ($showProcessModal) @php $procDef = \App\Models\RollProceso::getProcesoDef($processProcesoId); $procLabel = $procDef ? $procDef['icon'] . ' ' . $procDef['label'] : $processProcesoId; @endphp @endif