Feature Overview:
Currently, users can only create listings. There is no dashboard where they can manage their listings or view bookings. We need to implement a dedicated user dashboard.
Requirements:
Create a protected /dashboard route
Display all listings created by the logged-in user
Display all bookings made by the logged-in user
Allow users to edit or delete their listings
Show booking status such as Confirmed, Pending, Cancelled
Display basic profile information like username and email
Optionally show total earnings for listing owners
Technical Notes:
Follow MVC architecture
Create a separate dashboard controller
Fetch user-specific data from MongoDB
Use Bootstrap for UI layout
Protect route using authentication middleware
Acceptance Criteria:
Only authenticated users can access dashboard
Users can see only their own data
UI should be responsive and clean
Feature Overview:
Currently, users can only create listings. There is no dashboard where they can manage their listings or view bookings. We need to implement a dedicated user dashboard.
Requirements:
Create a protected /dashboard route
Display all listings created by the logged-in user
Display all bookings made by the logged-in user
Allow users to edit or delete their listings
Show booking status such as Confirmed, Pending, Cancelled
Display basic profile information like username and email
Optionally show total earnings for listing owners
Technical Notes:
Follow MVC architecture
Create a separate dashboard controller
Fetch user-specific data from MongoDB
Use Bootstrap for UI layout
Protect route using authentication middleware
Acceptance Criteria:
Only authenticated users can access dashboard
Users can see only their own data
UI should be responsive and clean