{{-- Sweet Works ERP | app/Modules/Manufacturing/Resources/Views/boms/_line_row.blade.php | v1.3 | 31/08/2026 --}} {{-- v1.3 — Add Level badge column (L1 RM grey, L1 Semi-Finished orange, L2 blue). --}} {{-- v1.2 — Fix: component->product_name (era ->name, columna inexistente en products). --}} {{-- v1.1 — i18n: title="Crítico" → __('manufacturing.boms.line_critical'). --}} {{-- v1.0 — Partial recursivo para árbol de líneas BOM. --}} @php $mt = $line->component->material_type ?? 'RM'; if ($depth > 0) { $badge = '' . __('manufacturing.boms.level_l2_rm') . ''; } elseif ($mt === 'FG') { $badge = '' . __('manufacturing.boms.level_l1_sf') . ''; } else { $badge = '' . __('manufacturing.boms.level_l1_rm') . ''; } @endphp