How mhamza1125/smarterp works
SmartERP is a Laravel ERP for manufacturing and trading workflows. Users enter through the authenticated web interface, then manage products and materials, stock and production stages, orders and delivery, purchasing, workforce/payroll, and financial transactions. The visible implementation uses modular controllers and repositories over Eloquent models; sampled code confirms stock, delivery, payroll, and transaction operations, while the README documents additional capabilities. Several feature branches are documented but their controller internals were not sampled, so their links are not expanded beyond documented behavior.
Main entry points: web.php Web routes · DeliveryController.php Delivery fulfillment · StockController.php Stock and production · PayrollController.php Payroll processing
Components 18
Access and UI
- Web routes
routes/web.php - ERP screens
resources/views/index.blade.php - Access policies
app/Providers/AuthServiceProvider.php
Inventory and Orders
- Stock and production
app/Http/Controllers/StockController.php - Stock item queries
app/Repositories/StockItemRepository.php - Stock records
app/Repositories/StockRepository.php - Order management
app/Http/Controllers/OrderController.php - Delivery fulfillment
app/Http/Controllers/DeliveryController.php - Order records
app/Repositories/OrderRepository.php - Delivery records
app/Repositories/DeliveryRepository.php
Workforce
- Payroll processing
app/Http/Controllers/PayrollController.php - Employee records
app/Repositories/EmployeeRepository.php
Finance
- Transaction workflows
app/Http/Controllers/TransactionController.php - Transaction records
app/Repositories/TransactionRepository.php - Bank records
app/Repositories/BankRepository.php - Bank data model
app/Models/Bank.php - Transaction model
app/Models/Transaction.php
Other components
- ERP user
Connections 21
- ERP user → Web routes: submits requests
routes/web.php - Web routes → ERP screens: renders screens
resources/views/index.blade.php - ERP screens → Web routes: links routes
resources/views/index.blade.php - Web routes → Stock and production: routes requests
routes/web.php - Web routes → Order management: routes requests
routes/web.php - Web routes → Delivery fulfillment: routes requests
routes/web.php - Web routes → Payroll processing: routes requests
routes/web.php - Web routes → Transaction workflows: routes requests
routes/web.php - Stock and production → Stock item queries: queries items
app/Http/Controllers/StockController.php - Stock and production → Stock records: reads stock
app/Http/Controllers/StockController.php - Delivery fulfillment → Delivery records: reads delivery
app/Http/Controllers/DeliveryController.php - Delivery fulfillment → Stock item queries: reads delivery items
app/Http/Controllers/DeliveryController.php - Delivery fulfillment → Transaction records: reads transactions
app/Http/Controllers/DeliveryController.php - Delivery fulfillment → Order records: reads orders
app/Http/Controllers/DeliveryController.php - Payroll processing → Employee records: loads employees
app/Http/Controllers/PayrollController.php - Payroll processing → Transaction model: creates salary entries
app/Http/Controllers/PayrollController.php - Transaction workflows → Transaction records: queries transactions
app/Http/Controllers/TransactionController.php - Transaction workflows → Bank records: loads banks
app/Http/Controllers/TransactionController.php - Transaction records → Transaction model: queries records
app/Repositories/TransactionRepository.php - Bank records → Bank data model: queries records
app/Repositories/BankRepository.php - Access policies → ERP user: authorizes roles
app/Providers/AuthServiceProvider.php