--------------------------------
STEP 10 — SHOW PACKAGES ON HOMEPAGE
--------------------------------
Modify homepage controller.
Load published packages.
Display them in a new homepage section.
Show:
package image
package title
package price
button "View Details"
Add button:
"View All Packages"
--------------------------------
STEP 11 — ADD PACKAGES TO NAVIGATION
--------------------------------
Add menu item:
Packages
Link:
/{locale}/packages
--------------------------------
STEP 12 — ADMIN SIDEBAR
--------------------------------
Add sidebar section:
Packages
With links:
All Packages
Create Package
--------------------------------
STEP 13 — PACKAGE CARDS DESIGN
--------------------------------
Design clean package cards.
Card should show:
image
title
short description
price
buttons
Buttons:
View Details
Buy Now
Cards must be responsive and modern.
--------------------------------
STEP 14 — WHATSAPP BUTTON
--------------------------------
Add WhatsApp button on package details page.
Message format:
Hello, I want to ask about the package: {package title}
Phone number should be configurable.
--------------------------------
STEP 15 — USER DASHBOARD
--------------------------------
Create page:
GET /{locale}/dashboard/packages
Show packages purchased by the user.
Add dashboard menu item:
My Packages
--------------------------------
STEP 16 — SECURITY
--------------------------------
Validate admin inputs
Generate unique slug
Require login before purchase
Ensure price always comes from database
Confirm payment only through webhook
--------------------------------
STEP 17 — DOCUMENTATION
--------------------------------
Update explain.md.
Add section:
Packages System
Describe:
database
routes
purchase flow
webhook handling
dashboard integration
--------------------------------
FINAL OUTPUT
--------------------------------
After implementation show summary of:
created migrations
created models
created controllers
created views
updated routes
updated webhook logic
homepage modifications
dashboard additions