How shyamsitaula/samarium works
Samarium is a Laravel/Livewire business management system combining ERP and point-of-sale workflows with a public website and CMS. A business user manages products and customers, records sales and expenses, and reviews financial activity; public visitors can browse the website and product catalog. The README documents the major capabilities, while the sampled controller and model excerpts show some concrete data access and relationships. Routes and most Livewire implementations were not sampled, so links between those subsystems are not asserted.
Main entry points: AppLeftMenu.php Dashboard UI · WebsiteController.php Public website · Product.php Product catalog · WebpageComponent.php CMS pages
Components 18
User entry points
- Dashboard UI
app/Livewire/Dashboard/AppLeftMenu.php - Public website
app/Http/Controllers/WebsiteController.php
Sales and commerce
- Product catalog
app/Models/Product/Product.php - Sales and POS
app/Livewire/SaleInvoice/Dashboard/SaleInvoiceEditor.php - Online orders
app/Livewire/OnlineOrder/Dashboard/OnlineOrderComponent.php - Customer records
app/Livewire/Customer/Dashboard/CustomerComponent.php - Inventory tracking
app/Livewire/Inventory/InventoryComponent.php
Business operations
- Purchases
app/Livewire/Purchase/Dashboard/PurchaseComponent.php - Expenses
app/Livewire/Expense/Dashboard/ExpenseComponent.php - Accounting
app/Livewire/Accounting/Dashboard/AccountingComponent.php - MySQL database
config/database.php
Website and content
- CMS pages
app/Livewire/Cms/Dashboard/WebpageComponent.php - Product reviews
app/Livewire/Product/Website/ProductReviewCreate.php
Workspace tools
- Calendar
app/Livewire/Calendar/Dashboard/CalendarComponent.php - Task management
app/Livewire/Todo/Dashboard/TodoComponent.php - Analytics dashboard
app/Livewire/Report/Dashboard/ReportComponent.php
Other components
- Business user
- Website visitor
Connections 16
- Business user → Dashboard UI: uses
README.md - Website visitor → Public website: browses
README.md - Public website → Product catalog: loads products
app/Http/Controllers/WebsiteController.php - Public website → CMS pages: renders pages
- Product catalog → Product reviews: has reviews
app/Models/Product/Product.php - Dashboard UI → Sales and POS: records sales
- Dashboard UI → Customer records: manages customers
- Dashboard UI → Inventory tracking: tracks stock
- Dashboard UI → Purchases: records purchases
- Dashboard UI → Expenses: tracks expenses
- Dashboard UI → Accounting: reviews finances
- Dashboard UI → Online orders: manages orders
- Dashboard UI → CMS pages: manages content
- Dashboard UI → Calendar: uses calendar
- Dashboard UI → Task management: manages tasks
- Dashboard UI → Analytics dashboard: views analytics