@extends('procurement::layouts.master') @section('title','Components / BOM') @section('content') @include('procurement::components.partials.page_header',['title'=>'Components / BOM','actionRoute'=>route('procurement.components.create'),'actionLabel'=>'Add Component'])
Clear Active BOM Cost: ${{ number_format($totalBomCost,2) }} / board
@include('procurement::components.partials.sortable_th', ['label'=>'Ref','field'=>'ref']) @include('procurement::components.partials.sortable_th', ['label'=>'Description','field'=>'description']) @include('procurement::components.partials.sortable_th', ['label'=>'Part # / Alts','field'=>'part_number']) @include('procurement::components.partials.sortable_th', ['label'=>'Supplier','field'=>'supplier']) @include('procurement::components.partials.sortable_th', ['label'=>'Qty','field'=>'qty','class'=>'text-center']) @include('procurement::components.partials.sortable_th', ['label'=>'Unit $','field'=>'unit_cost','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'Line $','field'=>'line_cost','class'=>'text-right']) @include('procurement::components.partials.sortable_th', ['label'=>'MOQ','field'=>'moq']) @include('procurement::components.partials.sortable_th', ['label'=>'Lead','field'=>'lead_time']) @include('procurement::components.partials.sortable_th', ['label'=>'Country','field'=>'country']) @include('procurement::components.partials.sortable_th', ['label'=>'HS Code','field'=>'hs_code']) @include('procurement::components.partials.sortable_th', ['label'=>'Tariff%','field'=>'tariff']) @include('procurement::components.partials.sortable_th', ['label'=>'Status','field'=>'status']) @forelse($components as $c) @empty @endforelse
Manufacturer
{{ $c->ref_designator ?: '—' }} {{ Str::limit($c->description,40) }} @if($c->needs_attention)@endif @if($c->is_custom_device)@endif @if($c->notes)@endif {{ $c->part_number ?: '—' }} @if($c->alternates_count)
+{{ $c->alternates_count }} alt{{ $c->alternates_count > 1 ? 's' : '' }}@endif
{{ $c->manufacturer->name ?? '—' }} @if($c->manufacturer_url)@endif {{ $c->supplier ?: '—' }} @if($c->website)@endif {{ $c->qty_per_board }} ${{ number_format($c->unit_cost,4) }} ${{ number_format($c->line_cost,2) }} {{ $c->moq }} @if($c->lead_time_weeks >= 8){{ $c->lead_time_weeks }}w @elseif($c->lead_time_weeks > 0){{ $c->lead_time_weeks }}w @else—@endif {{ $c->country_of_origin ?: '—' }} {{ $c->hs_code ?: '—' }} {{ $c->tariff_rate > 0 ? $c->tariff_rate.'%' : '—' }} @php $sb=['active'=>'success','obsolete'=>'danger','under_review'=>'warning']; @endphp {{ ucwords(str_replace('_',' ',$c->status)) }} Edit
@csrf @method('DELETE')
No components found.
Page Total: ${{ number_format($components->sum('line_cost'),2) }}
{{ $components->withQueryString()->links() }} @endsection @push('scripts')@endpush