@php use App\Enums\PartGrade; $input = 'block w-full min-h-11 border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-lg shadow-sm'; $activeFilters = collect($filters)->except(['search', 'show'])->filter(fn ($v) => filled($v))->count() + (($filters['show'] ?? 'active') !== 'active' ? 1 : 0); $canSeeCost = auth()->user()->can('view-cost-prices'); @endphp
{{-- Low stock warning --}} @if ($lowCount > 0 && ! ($filters['low'] ?? false)) {{ $lowCount }} {{ Str::plural('part', $lowCount) }} low on stock Show → @endif
@if ($canManage)
@endif
Clear

{{ $parts->total() }} {{ Str::plural('part', $parts->total()) }}

@if ($parts->isEmpty())
No parts found. @if ($canManage && ! request()->query()) Add the first part. @endif
@else
{{ $parts->links() }}
@endif