21 lines
864 B
PHP
21 lines
864 B
PHP
@if(empty($nodes))
|
||
<p class="text-muted">—</p>
|
||
@else
|
||
<ul class="list-unstyled ie-bom-tree" style="margin-right:12px">
|
||
@foreach($nodes as $node)
|
||
<li style="margin-bottom:8px">
|
||
<i class="fa fa-{{ empty($node['children']) ? 'puzzle-piece' : 'cogs' }}"></i>
|
||
<strong>{{ $node['item_name'] }}</strong>
|
||
<code>{{ $node['item_code'] }}</code>
|
||
@if(!empty($node['position_code']))<span class="label label-default">{{ $node['position_code'] }}</span>@endif
|
||
<span class="text-muted">× {{ $node['quantity'] }}</span>
|
||
@if(!empty($node['children']))
|
||
<div style="margin-right:20px;border-right:2px solid #e0e0e0;padding-right:10px;margin-top:4px">
|
||
@include('industrialengineering::partials.bom_tree', ['nodes' => $node['children']])
|
||
</div>
|
||
@endif
|
||
</li>
|
||
@endforeach
|
||
</ul>
|
||
@endif
|