@extends('layouts.vendor') @section('title', 'My Spare Parts') @section('content')
Manage your spare parts inventory
Total Parts
{{ $spareParts->total() }}
Approved
{{ $spareParts->where('is_approved', true)->count() }}
Pending
{{ $spareParts->where('is_approved', false)->count() }}
Low Stock
{{ $spareParts->where('quantity', '<', 10)->count() }}
| Part | Price | Stock | Status | Condition | Date Added | Actions |
|---|---|---|---|---|---|---|
|
{{ $part->name }}
{{ $part->part_number }}
|
KSh {{ number_format($part->price) }}
|
{{ $part->quantity }}
|
{{ $part->is_approved ? 'Approved' : 'Pending' }} @if($part->is_featured) Featured @endif | {{ ucfirst($part->condition) }} | {{ $part->created_at->format('M d, Y') }} | |
|
No spare parts found Add your first spare part |
||||||