How abeleops/cuecare works
CueCare is a Laravel POS and inventory application. Its main workflow routes a signed-in user’s POS activity through cart and checkout services, which validate payment, record a sale, and reduce stock; staff can then review sales, receipts, dashboards, and exports. Separate branches manage products, categories, customers, staff permissions, and audit logs. The README documents all major features; several controller and view details are unsampled, so those relationships are omitted where the provided evidence does not establish them.
Main entry points: web.php Web routes · ReportController.php Reports and exports · CheckoutService.php Checkout service · ProductController.php Product management
Components 25
Web entry and access
- Web routes
routes/web.php - Access middleware
app/Http/Middleware - Authentication
app/Http/Controllers/AuthController.php
Point of sale
- POS controller
app/Http/Controllers/PosController.php - Persistent cart
app/Services/CartService.php - Checkout service
app/Services/CheckoutService.php
Catalog and staff
- Customer management
app/Http/Controllers/CustomerController.php - Product management
app/Http/Controllers/ProductController.php - Category management
app/Http/Controllers/CategoryController.php - Staff management
app/Http/Controllers/StaffController.php - Image uploads
app/Services/ImageUploadService.php
Sales and reporting
- Dashboard
app/Http/Controllers/DashboardController.php - Sales history
app/Http/Controllers/SaleController.php - Reports and exports
app/Http/Controllers/ReportController.php - Excel workbook
app/Services/ReportWorkbookService.php
Shared records
- Sale records
app/Models/Sale.php - Product records
app/Models/Product.php - Category records
app/Models/Category.php - Stock movements
app/Models/StockMovement.php - Customer records
app/Models/Customer.php - User and roles
app/Models/User.php - Role records
app/Models/Role.php - Audit logger
app/Services/AuditLogger.php - Audit records
app/Models/AuditLog.php
Other components
- Signed-in user
Connections 35
- Signed-in user → Web routes: requests pages
README.md - Web routes → Authentication: routes to
routes/web.php - Web routes → Dashboard: routes to
routes/web.php - Web routes → POS controller: routes to
routes/web.php - Web routes → Sales history: routes to
routes/web.php - Web routes → Product management: routes to
routes/web.php - Web routes → Category management: routes to
routes/web.php - Web routes → Customer management: routes to
routes/web.php - Web routes → Staff management: routes to
routes/web.php - Web routes → Reports and exports: routes to
routes/web.php - Web routes → Access middleware: registers access
- POS controller → Persistent cart: uses
app/Http/Controllers/PosController.php - POS controller → Checkout service: calls
app/Http/Controllers/PosController.php - Checkout service → Product records: locks and updates
app/Services/CheckoutService.php - Checkout service → Sale records: creates
app/Services/CheckoutService.php - Checkout service → Audit logger: records event
app/Services/CheckoutService.php - Product management → Product records: manages
app/Http/Controllers/ProductController.php - Product management → Category records: queries
app/Http/Controllers/ProductController.php - Product management → Image uploads: stores images
app/Http/Controllers/ProductController.php - Category management → Category records: manages
app/Http/Controllers/CategoryController.php - Customer management → Customer records: manages
app/Http/Controllers/CustomerController.php - Staff management → User and roles: manages
app/Http/Controllers/StaffController.php - Staff management → Role records: looks up
app/Http/Controllers/StaffController.php - Staff management → Audit logger: records changes
app/Http/Controllers/StaffController.php - Sales history → Sale records: queries
app/Http/Controllers/SaleController.php - Sales history → Reports and exports: delegates export
app/Http/Controllers/SaleController.php - Reports and exports → Excel workbook: uses for export
app/Http/Controllers/ReportController.php - Reports and exports → Audit records: queries logs
app/Http/Controllers/ReportController.php - Reports and exports → Audit logger: records access
app/Http/Controllers/ReportController.php - Audit logger → Audit records: creates
app/Services/AuditLogger.php - Sale records → Customer records: references
app/Models/Sale.php - Sale records → User and roles: references seller
app/Models/Sale.php - Product records → Category records: belongs to
app/Models/Product.php - Product records → Stock movements: has movements
app/Models/Product.php - User and roles → Role records: belongs to
app/Models/User.php