{{-- Tab 1: Datos cabecera --}}
{{-- Tab 2: Árbol de componentes --}}
| {{ __('manufacturing.boms.line_level') }} |
{{ __('manufacturing.boms.line_component') }} |
{{ __('manufacturing.boms.line_qty') }} |
{{ __('manufacturing.boms.line_uom') }} |
{{ __('manufacturing.boms.line_scrap') }} |
{{ __('manufacturing.boms.line_yield') }} |
{{ __('manufacturing.boms.line_critical') }} |
@foreach($bom->rootLines as $line)
@include('manufacturing::boms._line_row', ['line' => $line, 'depth' => 0])
@endforeach
@if($bom->rootLines->isEmpty())
| {{ __('manufacturing.common.no_records') }} |
@endif
{{-- Tab 3: Explosión BOM --}}
| {{ __('manufacturing.boms.line_component') }} |
{{ __('manufacturing.boms.line_qty') }} |
{{ __('manufacturing.boms.line_uom') }} |
{{ __('manufacturing.boms.line_critical') }} |
@foreach($explosion as $item)
@php
$lvl = (int) $item['level'];
$indent = ($lvl - 1) * 20; // px per level
if ($lvl === 1) {
$badge = 'L1';
$rowClass = '';
} else {
$badge = 'L' . $lvl . '';
$rowClass = 'table-active';
}
@endphp
|
@if($lvl > 1)
@endif
{!! $badge !!}
{{ $item['product_code'] ?? '?' }} — {{ $item['product_name'] ?? '?' }}
|
{{ number_format($item['quantity'], 4) }} |
{{ $item['uom'] }} |
@if($item['is_critical'])
@else — @endif
|
@endforeach
@if($explosion->isEmpty())
| {{ __('manufacturing.common.no_records') }} |
@endif