@extends('layouts.app') @section('title', 'All Vehicles Management') @section('content') @if(session('success')) @endif
Showroom Vehicles Inventory
{{ $vehicles->total() }} Total Listed
@forelse($vehicles as $vehicle) @empty @endforelse
Vehicle Brand & Category Price Engine & Power Status Actions
{{ $vehicle->name }}
{{ $vehicle->name }}
VIN: {{ $vehicle->vin ?? 'N/A' }} • {{ $vehicle->year }}
{{ $vehicle->brand }}
{{ $vehicle->category }}
${{ number_format($vehicle->price) }}
{{ $vehicle->engine ?? 'N/A' }}
{{ $vehicle->power ?? '' }}
@if($vehicle->status === 'Available') Available @elseif($vehicle->status === 'Reserved') Reserved @else Sold @endif
@csrf @method('DELETE')
No vehicles found in database. Click "Add New Vehicle" to list one.
@if($vehicles->hasPages())
{{ $vehicles->links() }}
@endif
@endsection