How eloquent-dev/city-voice works
This is a Laravel municipal complaint and work-order application. Citizens submit and track complaints; staff route work to employees, workers report completion, and administrators review outcomes before citizen feedback and reporting. The map includes authentication, dispatch, review, and core domain records. Relationships are limited to those visible in excerpts or the SOURCE INDEX; several capabilities are evident from the tree but their implementation and wiring were not sampled, so their links are omitted rather than inferred.
Main entry points: Complaint.php Complaints · JobOrder.php Job orders · ReviewService.php Review decisions · Division.php Divisions
Components 29
Access and entry
- Authentication
app/Http/Controllers/AuthController.php - Google sign-in
app/Http/Controllers/oAuth/GoogleController.php
Complaint operations
- Complaint intake
app/Http/Controllers/ComplaintController.php - Complaint handling
app/Services/ComplaintService.php - Dashboard
app/Http/Controllers/DashboardController.php - Citizen feedback
app/Http/Controllers/FeedbackController.php - Status notification
app/Notifications/complaintStatusUpdated.php
Staff workflow
- Dispatch
app/Http/Controllers/DispatcherController.php - Dispatch logic
app/Services/DispatcherService.php - Worker assignments
app/Http/Controllers/WorkerController.php - Worker operations
app/Services/WorkerService.php - Administrator review
app/Http/Controllers/Admin/ReviewController.php - Review decisions
app/Services/ReviewService.php - Administrative reports
app/Services/ReportService.php - User administration
app/Services/AdminUserService.php
Domain records
- User accounts
app/Models/User.php - Complaints
app/Models/Complaint.php - Categories
app/Models/Category.php - Job orders
app/Models/JobOrder.php - Employees
app/Models/Employee.php - Divisions
app/Models/Division.php - Departments
app/Models/Department.php - Sections
app/Models/Section.php - Feedback records
app/Models/Feedback.php - Complaint history
app/Models/ComplaintLog.php - Completion reports
app/Models/CompletionReport.php - Report records
app/Models/AdminReport.php
Other components
- Citizens
- Staff
Connections 36
- Citizens → Authentication: signs in
- Authentication → User accounts: creates account
app/Http/Controllers/AuthController.php - Citizens → Complaint intake: submits complaint
- Complaint intake → Complaint handling: delegates handling
app/Http/Controllers/ComplaintController.php - Complaint intake → Categories: reads categories
app/Http/Controllers/ComplaintController.php - Complaint handling → Complaints: manages complaints
- Staff → Dispatch: routes work
- Dispatch → Dispatch logic: delegates dispatch
app/Http/Controllers/DispatcherController.php - Dispatch logic → Job orders: manages assignments
app/Services/DispatcherService.php - Dispatch logic → Employees: selects workers
app/Services/DispatcherService.php - Staff → Worker assignments: updates work
- Worker assignments → Worker operations: delegates operations
app/Http/Controllers/WorkerController.php - Worker operations → Job orders: updates status
- Staff → Administrator review: reviews completion
- Administrator review → Review decisions: submits decision
app/Http/Controllers/Admin/ReviewController.php - Review decisions → Job orders: updates outcome
app/Services/ReviewService.php - Review decisions → Complaints: updates complaint
app/Services/ReviewService.php - Review decisions → Status notification: notifies user
app/Services/ReviewService.php - Citizens → Citizen feedback: provides feedback
- Citizen feedback → Feedback records: records feedback
app/Http/Controllers/FeedbackController.php - Dashboard → Complaints: reads complaints
app/Http/Controllers/DashboardController.php - Administrative reports → Complaints: reports on
app/Services/ReportService.php - Administrative reports → Report records: uses report records
app/Services/ReportService.php - User administration → User accounts: manages accounts
app/Services/AdminUserService.php - User administration → Complaints: updates complaint details
app/Services/AdminUserService.php - Complaints → Complaint history: writes status history
app/Models/Complaint.php - Complaints → User accounts: belongs to
app/Models/Complaint.php - Complaints → Categories: belongs to
app/Models/Complaint.php - Complaints → Job orders: has job orders
app/Models/Complaint.php - User accounts → Employees: has employee profile
app/Models/User.php - Job orders → Employees: assigns workers
app/Models/JobOrder.php - Employees → Divisions: belongs to
app/Models/Employee.php - Divisions → Departments: belongs to
app/Models/Division.php - Divisions → Sections: has sections
app/Models/Division.php - Divisions → Categories: has categories
app/Models/Division.php - Job orders → Completion reports: has completion report
app/Models/JobOrder.php