diff --git a/admin/dashboard.php b/admin/dashboard.php new file mode 100644 index 0000000..5e7c359 --- /dev/null +++ b/admin/dashboard.php @@ -0,0 +1,133 @@ +query("SELECT id, user_role, full_name, id_number, phone_number, garage_name, location, created_at FROM users ORDER BY created_at DESC"); + $users = $stmt->fetchAll(PDO::FETCH_ASSOC); + } catch (PDOException $e) { + // In a real app, you would log this error, not display it. + $user_list_error = "Error fetching users: " . $e->getMessage(); + } +} else { + $user_list_error = "Database connection failed."; +} +?> + + +
+ + +Manage all registered users in the system.
+ + + + +| ID | +Role | +Full Name | +ID Number | +Phone | +Garage/Shop | +Location | +Registered On | +
|---|---|---|---|---|---|---|---|
| + | + | + | + | + | + | + | + |
Find reliable mechanics and genuine spare parts instantly. Get back on the road faster.
@@ -71,7 +71,7 @@Get fast, reliable help from trusted mechanics near you. Search for specific services and parts to get exactly what you need.
- Sign Up as a Driver + Sign Up as a Driver @@ -82,7 +82,7 @@Grow your business by connecting with car owners in your area. List your services and showcase your expertise.
- Register Your Garage + Register Your Garage @@ -93,7 +93,7 @@List your inventory and reach a larger audience. Help drivers find the genuine parts they need quickly and easily.
- List Your Parts + List Your Parts @@ -105,7 +105,7 @@© MyMech. All Rights Reserved.
- Privacy Policy | Terms of Service + Privacy Policy | Terms of Service
This page is under construction. Our Privacy Policy will be detailed here.
+Join our community of drivers, mechanics, and part suppliers.
+ + "; + echo $message; + echo ''; + echo "This page is under construction. The search functionality for mechanics and spare parts will be available here soon.
+This page is under construction. Our Terms of Service will be detailed here.
+