How ricccc2023/goodbrew_shop works
Good Brew is a coffee-shop operations application. Staff use the POS to record transactions, while order-management screens track active orders; surrounding modules manage the menu, stock, promotions, employees, shifts, attendance, and reporting. Shared PHP configuration provides sessions, role checks, and PDO access to MySQL, and shared templates render the staff interface. The tree and sampled excerpts establish these capabilities, but do not expose enough of the transaction handler to verify its downstream dispatch to the kitchen or receipt flow; those links are therefore omitted.
Main entry points: config.php App Core · pos/index.php Point of Sale · process.php Sale Processing · attendance/index.php Attendance
Components 25
Staff Workspace
- App Core
includes/config.php - Dashboard
dashboard.php - Staff Templates
includes/header.php - Public Landing
landing.php
Sales and Orders
- Point of Sale
pos/index.php - Sale Processing
pos/process.php - Sales History
sales/index.php - Refunds
sales/refund.php - Order Queue
orders/index.php - Kitchen View
orders/kitchen.php
Menu and Stock
- Menu Editor
menu/edit.php - Categories
categories/index.php - Inventory
inventory/index.php
People Operations
- Employee Records
employees/index.php - Shift Scheduling
schedules/index.php - Attendance
attendance/index.php - Employee Portal
attendance/portal/index.php - HR Records
attendance/hr_view.php
Reporting and Admin
- Reports
reports/index.php - Sales Analytics
sales/analytics.php - Promotions
promotions/index.php - Feedback Review
feedback/index.php - Settings and Users
settings/users.php
Other components
- Staff
- MySQL Store
Connections 27
- Staff → Dashboard: opens workspace
- Point of Sale → App Core: loads core
pos/index.php - Point of Sale → Staff Templates: renders through
pos/index.php - Point of Sale → Sale Processing: submits sale
- Sale Processing → App Core: loads core
pos/process.php - Sale Processing → MySQL Store: writes transaction
- Sales History → MySQL Store: queries sales
sales/index.php - Refunds → App Core: loads core
sales/refund.php - Order Queue → MySQL Store: reads active orders
orders/index.php - Order Queue → Staff Templates: renders through
orders/index.php - Kitchen View → App Core: loads core
orders/kitchen.php - Menu Editor → App Core: loads core
menu/edit.php - Menu Editor → MySQL Store: reads menu data
- Inventory → MySQL Store: manages stock
- Employee Records → MySQL Store: queries employees
employees/index.php - Shift Scheduling → MySQL Store: reads and writes shifts
schedules/index.php - Attendance → App Core: loads core
attendance/index.php - Attendance → MySQL Store: loads attendance
- Employee Portal → App Core: loads core
attendance/portal/index.php - HR Records → Attendance: uses records
attendance/hr_view.php - Reports → MySQL Store: queries metrics
reports/index.php - Sales Analytics → App Core: loads core
- Promotions → App Core: loads core
promotions/index.php - Feedback Review → MySQL Store: reads reviews
feedback/index.php - Public Landing → App Core: loads core
landing.php - Settings and Users → App Core: loads core
settings/users.php - Dashboard → App Core: loads core
dashboard.php