@if(!empty($partComponent)) @foreach($partComponent as $part) @php($lots = ($partComponentInventory ?? [])[$part['component_product_id']] ?? [])
{{-- パーツ基本情報行(クリックで在庫展開) --}}
{{-- 構成数: {{ num_format($part['quantity']) }} --}} 上代: {{ num_format($part['list_price']) }}
{{-- --}}
{{-- 在庫情報(初期折りたたみ、クリックで展開) --}}
@if(!empty($lots)) @foreach($lots as $lot) @endforeach
倉庫 手持数量 入荷予定 引当数量 使用可能
{{ $lot['warehouse_name'] }} {{ num_format($lot['quantity']) }} {{ num_format($lot['purchase_qty']) }} {{ num_format($lot['allocated_qty']) }} {{ num_format($lot['available_qty']) }}
@else

在庫なし

@endif
@endforeach @else

パーツ構成なし

@endif