How alirezachali/sales-management-system works
This is a Laravel/Livewire store-management application. Staff use its web interface to manage catalog and stock, record purchases and sales, and oversee customers, employees, finances, and operations. The graph preserves those documented-by-tree capabilities as distinct product areas, with models representing persisted domain data. Available excerpts and the SOURCE INDEX establish some manager-to-service/model relationships; routes and many feature implementations were not sampled, so their entry-point links are omitted rather than inferred.
Main entry points: SaleManager.php Sales checkout · SettingsManager.php Store settings · AlertDispatcher.php Alert dispatch · Product.php Product records
Components 25
Commerce
- Sales checkout
laravel-app/app/Livewire/Sales/SaleManager.php - Sale processing
laravel-app/app/Services/SaleService.php - Customer management
laravel-app/app/Livewire/Customers/CustomerManager.php - Customer records
laravel-app/app/Models/Customer.php
Inventory
- Product catalog
laravel-app/app/Livewire/Products/ProductManager.php - Product records
laravel-app/app/Models/Product.php - Purchase invoices
laravel-app/app/Livewire/PurchaseInvoices/PurchaseInvoiceManager.php - Warehouse operations
laravel-app/app/Livewire/Warehouses/WarehouseManager.php - Stock handling
laravel-app/app/Services/WarehouseService.php - Stock movements
laravel-app/app/Models/StockMovement.php
Finance and staff
- Payroll
laravel-app/app/Livewire/Employees/PayrollManager.php - Employee records
laravel-app/app/Models/Employee.php - Expense management
laravel-app/app/Livewire/Expenses/ExpenseManager.php - Expense records
laravel-app/app/Models/Expense.php - Business reports
laravel-app/app/Livewire/Reports
Store operations
- Online orders
laravel-app/app/Livewire/OnlineOrders/OnlineOrderManager.php - Online shop integration
laravel-app/app/Services/OnlineShop/OnlineShopClient.php - Alert dispatch
laravel-app/app/Alerts/AlertDispatcher.php - Alert registry
laravel-app/app/Alerts/AlertRegistry.php - Alert storage
laravel-app/app/Alerts/AlertStore.php - Staff messaging
laravel-app/app/Livewire/Messages/MessageManager.php
Access and settings
- Roles and permissions
laravel-app/app/Livewire/Roles/RolePermissionManager.php - User accounts
laravel-app/app/Models/User.php - Store settings
laravel-app/app/Livewire/Settings/SettingsManager.php
Other components
- Store staff
Connections 20
- Store staff → Sales checkout: uses
- Sales checkout → Sale processing: delegates to
laravel-app/app/Livewire/Sales/SaleManager.php - Sales checkout → Customer records: reads
laravel-app/app/Livewire/Sales/SaleManager.php - Sales checkout → Product records: reads
laravel-app/app/Livewire/Sales/SaleManager.php - Customer management → Customer records: manages
laravel-app/app/Livewire/Customers/CustomerManager.php - Product catalog → Product records: manages
laravel-app/app/Livewire/Products/ProductManager.php - Purchase invoices → Stock handling: adds stock
laravel-app/app/Livewire/PurchaseInvoices/PurchaseInvoiceManager.php - Warehouse operations → Stock movements: tracks
- Payroll → Employee records: loads employees
laravel-app/app/Livewire/Employees/PayrollManager.php - Payroll → Expense records: records expense
- Expense management → Expense records: manages
laravel-app/app/Livewire/Expenses/ExpenseManager.php - Online orders → Online shop integration: integrates with
- Alert dispatch → Alert registry: uses
laravel-app/app/Alerts/AlertDispatcher.php - Alert dispatch → Alert storage: uses
laravel-app/app/Alerts/AlertDispatcher.php - Store settings → Alert dispatch: configures
laravel-app/app/Livewire/Settings/SettingsManager.php - Store settings → Alert registry: configures
laravel-app/app/Livewire/Settings/SettingsManager.php - Store settings → Alert storage: configures
laravel-app/app/Livewire/Settings/SettingsManager.php - Roles and permissions → User accounts: authorizes
- Business reports → Product records: reports on
- Business reports → Stock movements: reports on