{{-- ── KPI Row ──────────────────────────────────────────── --}}
{{ $stats['total'] }}
Total repuestos
{{ $stats['out'] }}
Sin stock
{{ $stats['low'] }}
Stock bajo
${{ number_format($stats['value'],0) }}
Valor inventario
Catálogo de Repuestos
@foreach(['' => 'Todos', 'ok' => '✅ OK', 'low' => '⚠️ Bajo', 'out' => '❌ Sin stock'] as $val => $lbl) @endforeach
@forelse($parts as $part) @empty @endforelse
Código Nombre Marca / P/N Stock Mín Costo unit. Valor stock Ubicación
{{ $part->code }}
{{ $part->name }}
@if($part->description)
{{ Str::limit($part->description, 60) }}
@endif
{{ $part->manufacturer }}
{{ $part->part_number }}
{{ number_format($part->current_stock, 2) }} {{ $part->unit_of_measure }} {{ number_format($part->min_stock,2) }} ${{ number_format($part->unit_cost,4) }} ${{ number_format($part->stock_value,2) }} {{ $part->storage_location ?? '—' }}
Sin repuestos encontrados.
{{-- ── Part form modal ──────────────────────────────────── --}} @if($showForm) @endif {{-- ── Adjust stock modal ────────────────────────────────── --}} @if($showAdjust) @endif