@extends('procurement::layouts.master')
@section('title',$component->description)
@section('content')
{{ $component->description }}
- 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)) }}
- 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) : '—' }}
@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
@forelse($component->avl as $a)
| {{ $a->supplier->name }} |
{{ ucfirst($a->status) }} |
@empty
| No AVL entries |
@endforelse
@if($component->notes)
@endif
@include('procurement::components.purchase_history')
@endsection