How raysanr/tsd-reports works
This is a Laravel telesales operations application: staff and administrators use web screens for lead assignment and calling, TSA status oversight, sales reporting, and financial planning. The main workflow routes a user request to a controller, which reads or updates operational records and computes report results. Scheduled order synchronization supplies sales data, while shared support services handle calculations and team/product conventions. The README is only Laravel’s default template, so product capabilities are inferred from the source tree; unsampled controller internals and integrations are not asserted.
Main entry points: Models Operational records · web.php Web routes · Teams.php Team conventions · DashboardController.php Call dashboard
Components 19
Web and call operations
- Web routes
routes/web.php - Lead workflow
app/Http/Controllers/CallTracker/LeadController.php - Call dashboard
app/Http/Controllers/CallTracker/DashboardController.php - Call operations
app/Http/Controllers/CallTracker
Sales and finance reporting
- Operations dashboard
app/Http/Controllers/DashboardController.php - TSA performance
app/Http/Controllers/TsaPerformanceController.php - Lead reports
app/Http/Controllers/LeadsReportController.php - Expected income
app/Http/Controllers/DataManagement/ExpectedIncomeController.php - Cost breakdown
app/Http/Controllers/DataManagement/CostBreakdownController.php - Other reports
app/Http/Controllers/DataManagement
Data synchronization
- Order synchronization
app/Console/Commands/SyncTodayOrders.php - Lead synchronization
app/Console/Commands/SyncPancakeLeads.php
Domain and calculations
- Operational records
app/Models - Sales calculations
app/Support/ProductPerformance.php - Team conventions
app/Support/Teams.php - TSA rate calculations
app/Support/TsaDailyRateService.php - Income calculations
app/Support/ExpectedIncomeCalculator.php - Activity logging
app/Support/ActivityLogger.php
Other components
- Staff user
Connections 28
- Staff user → Web routes: opens screens
routes/web.php - Web routes → Lead workflow: routes requests
routes/web.php - Web routes → Call dashboard: routes requests
routes/web.php - Web routes → Operations dashboard: routes requests
routes/web.php - Web routes → TSA performance: routes requests
routes/web.php - Web routes → Lead reports: routes requests
routes/web.php - Lead workflow → Operational records: reads and updates
app/Http/Controllers/CallTracker/LeadController.php - Call dashboard → Operational records: reads
app/Http/Controllers/CallTracker/DashboardController.php - Call dashboard → Team conventions: uses team rules
app/Http/Controllers/CallTracker/DashboardController.php - Call dashboard → Sales calculations: uses calculations
app/Http/Controllers/CallTracker/DashboardController.php - Operations dashboard → Operational records: reads
app/Http/Controllers/DashboardController.php - Operations dashboard → Sales calculations: tallies sales
app/Http/Controllers/DashboardController.php - Operations dashboard → Team conventions: uses team rules
app/Http/Controllers/DashboardController.php - TSA performance → Operational records: reads
app/Http/Controllers/TsaPerformanceController.php - TSA performance → Team conventions: uses team rules
app/Http/Controllers/TsaPerformanceController.php - TSA performance → Sales calculations: formats hours
app/Http/Controllers/TsaPerformanceController.php - Lead reports → Operational records: reads
app/Http/Controllers/LeadsReportController.php - Lead reports → Sales calculations: uses calculations
app/Http/Controllers/LeadsReportController.php - Lead reports → Team conventions: uses team rules
app/Http/Controllers/LeadsReportController.php - Expected income → Operational records: reads and writes
app/Http/Controllers/DataManagement/ExpectedIncomeController.php - Expected income → Income calculations: calculates income
app/Http/Controllers/DataManagement/ExpectedIncomeController.php - Expected income → Team conventions: uses team rules
app/Http/Controllers/DataManagement/ExpectedIncomeController.php - Cost breakdown → Operational records: reads and writes
app/Http/Controllers/DataManagement/CostBreakdownController.php - Cost breakdown → TSA rate calculations: uses rate service
app/Http/Controllers/DataManagement/CostBreakdownController.php - TSA rate calculations → Operational records: reads records
app/Support/TsaDailyRateService.php - TSA rate calculations → Team conventions: uses product grouping
app/Support/TsaDailyRateService.php - Order synchronization → Operational records: updates records
app/Console/Commands/SyncTodayOrders.php - Lead synchronization → Operational records: synchronizes leads