@extends('layouts.vendor') @section('title', 'Vendor Dashboard') @section('content')

Welcome back, {{ auth()->user()->name }}! 👋

Here's what's happening with your business today.

Business: {{ auth()->user()->business_name }}

Member since: {{ auth()->user()->created_at->format('M Y') }}

Total Vehicles

{{ $stats['total_vehicles'] }}

{{ $stats['approved_vehicles'] }} Approved {{ $stats['pending_vehicles'] }} Pending

Total Spare Parts

{{ $stats['total_spare_parts'] }}

{{ $stats['approved_spare_parts'] }} Approved {{ $stats['pending_spare_parts'] }} Pending

Featured Items

{{ $stats['featured_vehicles'] + $stats['featured_spare_parts'] }}

{{ $stats['featured_vehicles'] }} vehicles • {{ $stats['featured_spare_parts'] }} parts

Quick Actions

Manage Inventory

Recent Vehicles

View All
@if($recentVehicles->count() > 0)
@foreach($recentVehicles as $vehicle)
{{ $vehicle->title }}

{{ $vehicle->title }}

KSh {{ number_format($vehicle->price) }}

{{ $vehicle->is_approved ? 'Approved' : 'Pending' }}
@endforeach
@else

No vehicles listed yet

Add your first vehicle
@endif

Recent Spare Parts

View All
@if($recentSpareParts->count() > 0)
@foreach($recentSpareParts as $part)
{{ $part->name }}

{{ $part->name }}

KSh {{ number_format($part->price) }} • Stock: {{ $part->quantity }}

{{ $part->is_approved ? 'Approved' : 'Pending' }}
@endforeach
@else

No spare parts listed yet

Add your first part
@endif

Performance Overview

1,234

Total Views

56

Inquiries

12

Sales

@endsection