@extends('layouts.vendor') @section('title', 'My Vehicles') @section('content')

My Vehicles

Manage your vehicle inventory

Add New Vehicle

Total Vehicles

{{ $vehicles->total() }}

Approved

{{ $vehicles->where('is_approved', true)->count() }}

Pending

{{ $vehicles->where('is_approved', false)->count() }}

Featured

{{ $vehicles->where('is_featured', true)->count() }}

Vehicle Inventory

@forelse($vehicles as $vehicle) @empty @endforelse
Vehicle Price Status Condition Date Added Actions
{{ $vehicle->title }}
{{ $vehicle->title }}
{{ $vehicle->make }} {{ $vehicle->model }} • {{ $vehicle->year }}
KSh {{ number_format($vehicle->price) }}
{{ $vehicle->is_approved ? 'Approved' : 'Pending' }} @if($vehicle->is_featured) Featured @endif {{ ucfirst($vehicle->condition) }} {{ $vehicle->created_at->format('M d, Y') }}
@csrf @method('DELETE')

No vehicles found

Add your first vehicle
@if($vehicles->hasPages())
{{ $vehicles->links() }}
@endif
@endsection