@if($showHistory ?? false) @else

{{ $part->name }}

@if($part->quantity_on_hand <= 0) Out of Stock @elseif($part->quantity_on_hand <= $part->minimum_stock_level) Low Stock @else In Stock @endif
{{ $part->part_number }} @if($part->barcode) {{ $part->barcode }} @endif @if($part->category) {{ ucfirst(str_replace('_', ' ', $part->category)) }} @endif
@if($part->description)

{{ $part->description }}

@endif
Edit Part View History Record Movement Back

Current Stock

{{ number_format($part->quantity_on_hand) }}

@if($part->unit_of_measurement)

{{ $part->unit_of_measurement }}

@endif

Sell Price

${{ number_format($part->sell_price, 2) }}

@if($part->sell_price > $part->cost_price)

{{ number_format((($part->sell_price - $part->cost_price) / $part->cost_price) * 100, 1) }}% margin

@endif

Cost Price

${{ number_format($part->cost_price, 2) }}

Per unit

Total Value

${{ number_format($part->quantity_on_hand * $part->cost_price, 2) }}

Inventory value

Part Information

Name
{{ $part->name }}
Part Number
{{ $part->part_number }}
Category
{{ $part->category ?? 'N/A' }}
Brand
{{ $part->brand ?? 'N/A' }}
Supplier
{{ $part->supplier->name ?? 'N/A' }}
Location
{{ $part->location ?? 'N/A' }}
Description
{{ $part->description ?? 'No description available' }}

Recent Stock Movements

@if($part->stockMovements->count() > 0)
@foreach($part->stockMovements->take(5) as $movement) @endforeach
Date Type Quantity User Notes
{{ $movement->created_at->format('M d, Y g:i A') }} {{ ucfirst($movement->movement_type) }} {{ $movement->movement_type === 'in' ? '+' : '-' }}{{ number_format($movement->quantity) }} {{ $movement->createdBy->name ?? 'System' }} {{ $movement->notes }}
@if($part->stockMovements->count() > 5)
View All Movement History
@endif @else

No stock movements recorded yet.

@endif

Stock Information

Current Stock
{{ number_format($part->quantity_on_hand) }} @if($part->isLowStock()) Low Stock @endif
Minimum Stock Level
{{ number_format($part->minimum_stock_level) }}
Maximum Stock Level
{{ number_format($part->maximum_stock_level) }}

Pricing

Cost Price
${{ number_format($part->cost_price, 2) }}
Sell Price
${{ number_format($part->sell_price, 2) }}
@if($part->markup_percentage)
Markup
{{ $part->markup_percentage }}%
@endif

Quick Actions

View Complete History Add Stock Movement Create Purchase Order
@endif