How andrade-bit/mina-andrade-andy works
This repository is a Laravel café point-of-sale and back-office application. Staff unlock the POS with a passcode, load products and cup sizes, then submit a sale; the terminal records the transaction and deducts ingredient and cup stock. Administrators manage catalog, inventory, purchasing, expenses, users, and sales reporting. The graph groups those workflows with their principal models. Several controller-to-model links are visible in the source index, but unsampled implementation details and database schema are not represented.
Main entry points: web.php Web routes · TerminalController.php POS terminal · InventoryItem.php Inventory items · InventoryTransaction.php Stock movements
Components 28
Web entry and access
- Web routes
routes/web.php - Admin authentication
app/Http/Controllers/Auth/AdminAuthController.php - POS passcode
app/Http/Controllers/Auth/PosAuthController.php - POS credentials
- Controller base
app/Http/Controllers/Controller.php
Point of sale
- POS terminal view
resources/views/pos/terminal.blade.php - POS terminal
app/Http/Controllers/Pos/TerminalController.php - Sales transactions
app/Models/SalesTransaction.php - Sale line items
app/Models/SalesTransactionItem.php - Cup sizes
app/Models/CupSize.php
Stock and purchasing
- Inventory management
app/Http/Controllers/Admin/InventoryItemController.php - Inventory items
app/Models/InventoryItem.php - Ingredients
app/Models/Ingredient.php - Stock movements
app/Models/InventoryTransaction.php - Stock adjustment
app/Http/Controllers/Admin/InventoryTransactionController.php - Supply purchases
app/Http/Controllers/Admin/SupplyPurchaseController.php - Purchase records
app/Models/SupplyPurchase.php - Suppliers
app/Models/Supplier.php
Administration
- Products
app/Models/Product.php - Product categories
app/Models/ProductCategory.php - Expense management
app/Http/Controllers/Admin/ExpenseController.php - Expenses
app/Models/Expense.php - Expense categories
app/Models/ExpenseCategory.php - Sales reporting
app/Http/Controllers/Admin/SalesReportController.php - Admin dashboard
app/Http/Controllers/Admin/DashboardController.php - User management
app/Http/Controllers/Admin/UserController.php - Users
app/Models/User.php
Other components
- Staff
Connections 45
- Staff → Web routes: requests pages
- Web routes → Admin authentication: routes requests
routes/web.php - Web routes → POS passcode: routes requests
routes/web.php - Web routes → POS terminal: routes requests
routes/web.php - Web routes → Inventory management: routes requests
routes/web.php - Web routes → Stock adjustment: routes requests
routes/web.php - Web routes → Supply purchases: routes requests
routes/web.php - Web routes → Expense management: routes requests
routes/web.php - Web routes → Sales reporting: routes requests
routes/web.php - Web routes → Admin dashboard: routes requests
routes/web.php - Web routes → User management: routes requests
routes/web.php - Admin authentication → Controller base: extends
app/Http/Controllers/Auth/AdminAuthController.php - POS passcode → Controller base: extends
app/Http/Controllers/Auth/PosAuthController.php - POS passcode → POS credentials: checks passcode
app/Http/Controllers/Auth/PosAuthController.php - POS terminal → Controller base: extends
app/Http/Controllers/Pos/TerminalController.php - POS terminal → POS terminal view: renders
app/Http/Controllers/Pos/TerminalController.php - POS terminal → POS credentials: loads session identity
app/Http/Controllers/Pos/TerminalController.php - POS terminal → Products: loads catalog
app/Http/Controllers/Pos/TerminalController.php - POS terminal → Cup sizes: loads sizes
app/Http/Controllers/Pos/TerminalController.php - POS terminal → Sales transactions: records sale
app/Http/Controllers/Pos/TerminalController.php - POS terminal → Sale line items: creates line items
app/Http/Controllers/Pos/TerminalController.php - POS terminal → Inventory items: deducts stock
app/Http/Controllers/Pos/TerminalController.php - POS terminal → Stock movements: records deductions
app/Http/Controllers/Pos/TerminalController.php - Inventory management → Inventory items: manages items
app/Http/Controllers/Admin/InventoryItemController.php - Inventory management → Stock movements: lists movements
app/Http/Controllers/Admin/InventoryItemController.php - Stock adjustment → Inventory items: updates quantities
app/Http/Controllers/Admin/InventoryTransactionController.php - Stock adjustment → Stock movements: records movements
app/Http/Controllers/Admin/InventoryTransactionController.php - Supply purchases → Purchase records: records purchases
app/Http/Controllers/Admin/SupplyPurchaseController.php - Supply purchases → Inventory items: receives stock
app/Http/Controllers/Admin/SupplyPurchaseController.php - Supply purchases → Stock movements: records restock
app/Http/Controllers/Admin/SupplyPurchaseController.php - Purchase records → Suppliers: belongs to
app/Models/SupplyPurchase.php - Purchase records → Inventory items: associates items
app/Models/SupplyPurchase.php - Products → Product categories: belongs to
app/Models/Product.php - Products → Ingredients: uses ingredients
app/Models/Product.php - Inventory items → Ingredients: tracks
app/Models/InventoryItem.php - Inventory items → Cup sizes: supplies stock
app/Models/InventoryItem.php - Inventory items → Stock movements: has movements
app/Models/InventoryItem.php - Sales transactions → Sale line items: has items
app/Models/SalesTransaction.php - Expense management → Expenses: manages
app/Http/Controllers/Admin/ExpenseController.php - Expense management → Expense categories: uses categories
app/Http/Controllers/Admin/ExpenseController.php - Sales reporting → Sales transactions: reports sales
app/Http/Controllers/Admin/SalesReportController.php - Admin dashboard → Inventory items: summarizes stock
app/Http/Controllers/Admin/DashboardController.php - Admin dashboard → Products: summarizes catalog
app/Http/Controllers/Admin/DashboardController.php - Admin dashboard → Sales transactions: summarizes sales
app/Http/Controllers/Admin/DashboardController.php - User management → Users: manages users