@extends('layouts.app') @section('title', 'Bill of Materials') @section('content')

Bill of Materials

@include('manufacturing.partials.navigation')
@if(session('success'))
{{ session('success') }}
@endif
BOM Management
Manage recipes and material lists
@forelse($data as $bom) @empty @endforelse
BOM Code Product Name Status Components Actions
{{ $bom->bom_code }} {{ $bom->product->name ?? 'N/A' }} {{ $bom->name }} @php $statusClasses = [ 'draft' => 'badge-draft', 'active' => 'badge-active', 'inactive' => 'badge-inactive', 'obsolete' => 'badge-obsolete' ]; $class = $statusClasses[$bom->status] ?? 'badge-draft'; $statusLabels = [ 'draft' => 'Draft', 'active' => 'Final', 'inactive' => 'Inactive', 'obsolete' => 'Obsolete' ]; $label = $statusLabels[$bom->status] ?? ucfirst($bom->status); @endphp {{ $label }} {{ $bom->components->count() }}
@if($bom->status !== 'active') @endif

No BOMs found

Create First BOM
Showing {{ $data->firstItem() ?? 0 }} to {{ $data->lastItem() ?? 0 }} of {{ $data->total() }} entries
{{ $data->appends(request()->query())->links() }}
Confirm Delete

Are you sure you want to delete ?

This action cannot be undone.

BOM Structure
Loading...

Loading BOM structure...

@endsection