= ({ profile }) => {
href="/dashboard/vehicles"
className="p-4 border border-gray-200 dark:border-gray-700 rounded-lg hover:border-blue-500 transition-colors text-center"
>
-
🚗
+
Vehicles
-
📅
+
Appointments
-
📋
+
History
-
👤
+
Profile
diff --git a/src/app/dashboard/vehicles/[vehicleId]/page.tsx b/src/app/dashboard/vehicles/[vehicleId]/page.tsx
index bf25bce..e301c34 100644
--- a/src/app/dashboard/vehicles/[vehicleId]/page.tsx
+++ b/src/app/dashboard/vehicles/[vehicleId]/page.tsx
@@ -84,115 +84,127 @@ export default function VehicleDetailsPage() {
return (
-
+
+
+
+
-
-
-
-
- {vehicle.year} {vehicle.make} {vehicle.model}
-
-
VIN: {vehicle.vin}
-
- {vehicle.color && (
-
- {vehicle.color}
-
- )}
-
+
+ {/* Left: Images + gallery */}
+
+
+
+ {vehicle.photos && vehicle.photos.length > 0 ? (
+

+ ) : (
+
+ No photo available
+
+ )}
+
-
-
-
License Plate
-
{vehicle.licensePlate}
-
-
-
Mileage
-
{vehicle.mileage.toLocaleString()} miles
-
-
-
Registered
-
- {new Date(vehicle.createdAt).toLocaleDateString()}
-
+ {/* Thumbnail strip */}
+ {vehicle.photos && vehicle.photos.length > 1 && (
+
+ {vehicle.photos.map((p, i) => (
+
+ ))}
+
+ )}
+
+ {/* Photo upload CTA (small) */}
+
-
-
Last Updated
-
- {new Date(vehicle.updatedAt).toLocaleDateString()}
-
+
+ {/* Service history */}
+
+
Service History
+ {serviceHistory.length === 0 ? (
+
+
No service history available
+
Service records will appear here once completed
+
+ ) : (
+
+ {serviceHistory.map((s) => (
+ -
+
+
+
+
{s.type}
+
${s.cost.toFixed(2)}
+
+
{new Date(s.date).toLocaleDateString()}
+ {s.description &&
{s.description}
}
+
+
+ ))}
+
+ )}
-
- {/* Photo Upload Section */}
-
-
Vehicle Photos
-
-
-
-
-
+ {/* Right: Details card */}
+