@foreach ($bomTree['purchaseParts'] as $purchasePart)
| {{ $purchasePart->product->part_no }} |
{{ $purchasePart->product->part_name }} |
{{ isset($purchasePart->product->type_of_products) ? $purchasePart->product->type_of_products->type : '' }} |
@foreach ($units as $unit)
@if ($unit->id == $purchasePart->product->uom)
{{ $unit->name }}
@endif
@endforeach
|
{{ $purchasePart['qty'] }} |
@endforeach
@foreach ($bomTree['crushings'] as $crushing)
| {{ $crushing->product->part_no }} |
{{ $crushing->product->part_name }} |
Crushing Material |
@foreach ($units as $unit)
@if ($unit->id == $crushing->product->uom)
{{ $unit->name }}
@endif
@endforeach
|
|
@endforeach
@foreach ($bomTree['subParts'] as $subpart)
| {{ $subpart['subPart']->product->part_no }} |
{{ $subpart['subPart']->product->part_name }} |
{{ isset($subpart['subPart']->product->type_of_products) ? $subpart['subPart']->product->type_of_products->type : '' }} |
@foreach ($units as $unit)
@if ($unit->id == $subpart['subPart']->product->uom)
{{ $unit->name }}
@endif
@endforeach
|
@if (!empty($subpart['bomTree']))
@else
{{ $subpart['subPart']->qty }}
@endif
|
@if (!empty($subpart['bomTree']))
| Part No. |
Part Name |
Type |
Unit |
QTY |
@include('partials.bom_tree', ['bomTree' => $subpart['bomTree'], 'units' => $units])
|
@endif
@endforeach