How daucaothanh/karate-do-shop works
Karate-Do Shop is a Laravel storefront with customer accounts, product discovery, cart and wishlist features, checkout, order tracking, and an AI chatbot, plus an admin/staff back office for catalog, orders, reporting, reviews, and workforce operations. The main flow is customer request → web routes → client controllers → persisted commerce data; staff controllers manage fulfillment and shift operations. Edges reflect the README, excerpts, and SOURCE INDEX references; unsampled capabilities are included where the tree and route index support them, but their internal call details are not assumed.
Main entry points: web.php Web routes · Product.php Products · ShiftController.php Shift operations · Order.php Orders
Components 22
Application entry
- HTTP entry
public/index.php - App bootstrap
bootstrap/app.php - Web routes
routes/web.php
Customer commerce
- Catalog & account
app/Http/Controllers/Clients/ProductController.php - Cart & wishlist
app/Http/Controllers/Clients/CartController.php - Checkout & orders
app/Http/Controllers/Clients/CheckoutController.php - Product chatbot
app/Http/Controllers/Clients/ChatbotController.php - Customer authentication
app/Http/Controllers/Clients/AuthController.php
Admin operations
- Catalog management
app/Http/Controllers/Admin/ProductController.php - Order fulfillment
app/Http/Controllers/Admin/OrderController.php - Shift operations
app/Http/Controllers/Admin/ShiftController.php - Payroll
app/Http/Controllers/Admin/PayrollController.php - Reports
app/Http/Controllers/Admin/ReportController.php - Review moderation
app/Http/Controllers/Admin/ReviewController.php
Domain data
- Products
app/Models/Product.php - Categories
app/Models/Category.php - Orders
app/Models/Order.php - Users & roles
app/Models/User.php - Work shifts
app/Models/WorkShift.php - Staff work logs
app/Models/StaffWorkLog.php - MySQL
Other components
- Customer
Connections 34
- Customer → HTTP entry: sends requests
- HTTP entry → App bootstrap: loads app
public/index.php - Web routes → Catalog & account: routes to
routes/web.php - Web routes → Cart & wishlist: routes to
routes/web.php - Web routes → Checkout & orders: routes to
routes/web.php - Web routes → Product chatbot: routes to
routes/web.php - Web routes → Customer authentication: routes to
routes/web.php - Web routes → Catalog management: routes to
routes/web.php - Web routes → Order fulfillment: routes to
routes/web.php - Web routes → Shift operations: routes to
routes/web.php - Web routes → Payroll: routes to
routes/web.php - Web routes → Reports: routes to
routes/web.php - Web routes → Review moderation: routes to
routes/web.php - Catalog & account → Products: queries
- Cart & wishlist → Products: reads products
app/Http/Controllers/Clients/CartController.php - Checkout & orders → Orders: creates orders
app/Http/Controllers/Clients/CheckoutController.php - Product chatbot → Products: searches products
app/Http/Controllers/Clients/ChatbotController.php - Catalog management → Products: manages
- Order fulfillment → Orders: updates
app/Http/Controllers/Admin/OrderController.php - Order fulfillment → Staff work logs: records handling
app/Http/Controllers/Admin/OrderController.php - Shift operations → Work shifts: manages shifts
app/Http/Controllers/Admin/ShiftController.php - Shift operations → Staff work logs: reads and updates
app/Http/Controllers/Admin/ShiftController.php - Shift operations → Orders: summarizes orders
app/Http/Controllers/Admin/ShiftController.php - Payroll → Staff work logs: reads work logs
app/Http/Controllers/Admin/PayrollController.php - Reports → Orders: reports on
app/Http/Controllers/Admin/ReportController.php - Review moderation → Products: filters by product
app/Http/Controllers/Admin/ReviewController.php - Catalog & account → Categories: browses categories
- Checkout & orders → Users & roles: uses customer account
app/Http/Controllers/Clients/CheckoutController.php - Shift operations → Users & roles: manages staff
app/Http/Controllers/Admin/ShiftController.php - Orders → MySQL: persists
README.md - Products → MySQL: persists
README.md - Users & roles → MySQL: persists
README.md - Work shifts → MySQL: persists
README.md - Staff work logs → MySQL: persists
README.md