How bbndct04/kp-app works
This is a Barangay New Kababae complaint-reporting and case-management web app built on Laravel, rather than the generic Laravel product described by its README. Residents register, submit incidents, then track cases and notifications; staff and admins review complaints, update mediation/status details, manage users, and produce analytics and official forms. The graph preserves authentication, ID verification, profile, and installable/offline PWA capabilities. Edges use route/controller references, sampled calls, or documented view relationships; unsampled subsystems are included without guessed internal links.
Main entry points: web.php Web routes · AdminController.php Case review and status · User.php User accounts · auth.php Auth routes
Components 19
Access and identity
- Web routes
routes/web.php - Auth routes
routes/auth.php - Registration
app/Http/Controllers/Auth/RegisteredUserController.php - Login
app/Http/Controllers/Auth/AuthenticatedSessionController.php - ID verification
app/Http/Controllers/IDVerificationController.php - Profile management
app/Http/Controllers/ProfileController.php - User accounts
app/Models/User.php
Complaint casework
- Complaint intake
app/Http/Controllers/ComplaintController.php - Complaint records
app/Models/Complaint.php - Complaint notifications
app/Models/ComplaintNotification.php - Notification handling
app/Http/Controllers/NotificationController.php
Administration
- Case review and status
app/Http/Controllers/AdminController.php - Admin dashboards and forms
resources/views/admin
Resident experience
- Resident case views
resources/views/resident - Complaint form
resources/views/complaints/create.blade.php - App navigation and PWA
resources/views/layouts/app.blade.php - Offline service worker
public/sw.js
Other components
- Resident
- Staff / admin
Connections 23
- Resident → Auth routes: registers or logs in
routes/auth.php - Auth routes → Registration: routes registration
routes/auth.php - Auth routes → Login: routes login
routes/auth.php - Registration → User accounts: creates account
app/Http/Controllers/Auth/RegisteredUserController.php - Login → User accounts: authenticates user
- Staff / admin → Web routes: opens admin routes
routes/web.php - Resident → Web routes: opens resident routes
routes/web.php - Web routes → Complaint intake: routes submissions
routes/web.php - Complaint intake → Complaint records: creates complaint
app/Http/Controllers/ComplaintController.php - Complaint intake → Complaint form: renders form
app/Http/Controllers/ComplaintController.php - Web routes → Case review and status: routes administration
routes/web.php - Case review and status → Complaint records: reads and updates cases
app/Http/Controllers/AdminController.php - Case review and status → User accounts: manages users
app/Http/Controllers/AdminController.php - Case review and status → Complaint notifications: creates status notices
app/Http/Controllers/AdminController.php - Case review and status → Admin dashboards and forms: renders admin pages
app/Http/Controllers/AdminController.php - Web routes → Notification handling: routes notifications
routes/web.php - Notification handling → Complaint notifications: reads and updates notices
app/Http/Controllers/NotificationController.php - Web routes → Resident case views: serves resident pages
- App navigation and PWA → Offline service worker: registers worker
resources/views/layouts/app.blade.php - App navigation and PWA → Complaint notifications: shows unread count
resources/views/layouts/app.blade.php - Resident case views → Complaint records: displays case data
resources/views/resident/track.blade.php - ID verification → User accounts: verifies identity
- Profile management → User accounts: updates profile