@extends('procurement::layouts.master') @section('title',$component->description) @section('content')

{{ $component->description }}

Edit Revisions Price History ← Back
Component Details
Project
{{ $component->project->name ?? '—' }}
Ref Designator
{{ $component->ref_designator ?: '—' }}
Category
{{ ucwords(str_replace('_',' ',$component->category ?? '—')) }}
Manufacturer
{{ $component->manufacturer ?: '—' }}
Part Number
{{ $component->part_number ?: '—' }}
Alt Part # 1
{{ $component->alt_part_number_1 ?: '—' }}
Alt Part # 2
{{ $component->alt_part_number_2 ?: '—' }}
Supplier
{{ $component->supplier ?: '—' }}
Supplier Part #
{{ $component->supplier_part_number ?: '—' }}
@if($component->website)
Website
Link
@endif
Status
@php $sb = ['active'=>'success','obsolete'=>'danger','under_review'=>'warning']; @endphp {{ ucwords(str_replace('_',' ',$component->status)) }}
Cost & Sourcing
Qty / Board
{{ $component->qty_per_board }}
Unit Cost
${{ number_format($component->unit_cost,4) }} {{ $component->currency }}
Line Cost
${{ number_format($component->line_cost,4) }}
MOQ
{{ $component->moq }}
Replenish Qty
{{ $component->replenish_qty ?: '—' }}
Lead Time
@if($component->lead_time_weeks >= 8) {{ $component->lead_time_weeks }}w @else {{ $component->lead_time_weeks ?: '—' }}w @endif
Country of Origin
{{ $component->country_of_origin ?: '—' }}
HS Code
{{ $component->hs_code ?: '—' }}
Tariff Rate
{{ $component->tariff_rate > 0 ? $component->tariff_rate.'%' : '—' }}
Tariff Cost
{{ $component->tariff_rate > 0 ? '$'.number_format($component->tariff_cost,4) : '—' }}
Stock
@if($component->stock)
On Hand
{{ $component->stock->qty_on_hand }}
Reserved
{{ $component->stock->qty_reserved }}
Available
{{ $component->stock->qty_available }}
Bin Location
{{ $component->stock->bin_location ?: '—' }}
Last Count
{{ $component->stock->last_counted_at?->format('M j, Y') ?? '—' }}
@else

No stock record

@endif
Approved Vendor List
@forelse($component->avl as $a) @empty @endforelse
{{ $a->supplier->name }} {{ ucfirst($a->status) }}
No AVL entries
@if($component->notes)
Notes

{{ $component->notes }}

@endif
@include('procurement::components.purchase_history') @endsection