@extends('layouts.app') @section('title', 'BOM Details') @section('content')

Consumption Details: {{ $bom->product->name }}

Version {{ $bom->version }} | Product Master Specification

@csrf @method('PUT')
Specifications
{{ $bom->product->name }}
{{ $bom->product->sku }}
{{ $bom->version }}

{{ $bom->notes ?? 'No additional notes provided.' }}

Total Estimated Cost
@php $totalCost = $bom->items->sum(function ($item) { return $item->quantity * $item->component->cost_price; }); @endphp

${{ number_format($totalCost, 2) }}

Calculated based on current component costs
Raw Material Requirements
@foreach($bom->items as $item) @endforeach
Material / Component Required Qty Waste Gap Cost Basis
{{ $item->component->name }}
{{ $item->component->sku }}
{{ $item->quantity }} {{ $item->component->unit_of_measure }} {{ $item->waste_percentage }}% ${{ number_format($item->quantity * $item->component->cost_price, 2) }}
@endsection