5 Commits

Author SHA1 Message Date
Developer
aaa5058249 feat: update barangay management and dashboard roles
- Created dashboard-router to separate LGU and Super Admin landing pages
- Added Barangays and LGUs statistical cards to Super Admin dashboard
- Moved LGU Management to Areas group in sidebar and added API Docs link
- Removed geofence spatial validation (ST_Contains) for Barangay creation in both LGU and Super Admin controllers to allow flexible boundaries
2026-07-07 10:32:38 +08:00
Developer
949d14a0e5 feat(admin): add receipt and qr codes download links to partner store retail sales history 2026-07-06 16:43:30 +08:00
Developer
aa8fdaa5aa fix(scanner): add team_id to collection_logs for robust stats tracking
- Created a database migration to add `team_id` to `collection_logs`.
- Created a database migration to backfill `team_id` for past scans using `trip_id` and scanner's active team.
- Updated `ScanService` to lookup the scanner's active team and store the `team_id` directly on the `CollectionLog`.
- Modified the `CollectionTeam` model's `collectionLogs()` relation to be a direct `HasMany` using the new `team_id` instead of routing through `Trip`.
- Updated `AdminTeamReportController` to query metrics directly from `collection_logs.team_id`, ensuring all past and future scans (including those done without an active trip) correctly increment team stats and daily charts.
2026-07-06 16:00:01 +08:00
Developer
6f5327bbcd feat: implement trip incident dashboard, drop-off geofence validation, and calendar updates
- **Trip Incidents**: Created the `AdminTripController@incidents` API endpoint, built the `incidents.blade.php` view, enabled the incidents sidebar link, and added test coverage (`TripIncidentDashboardTest.php`).
- **Drop-off Points (LGU Geofence)**: Added a Barangay (LGU) dropdown to the drop-off point form. Integrated `Turf.js` to render the LGU boundary polygon on Leaflet and restrict pin placement (clicks, drags, and address search) to within the selected boundary.
- **Trip Calendar**: Changed the shortcut for opening the Daily Digest from Ctrl+Click to Shift+Click on calendar dates.
- **API fixes**: Corrected the Barangay fetch endpoint to `/api/v1/geo/barangays` in the Drop-off points view.
2026-07-06 12:39:51 +08:00
Developer
7d37b464d6 feat: expand Quezon City seeder with full organizational structure
- Users: Added 2 Residents, 3 Drivers, 3 Scanners, and 4 Helpers with 'password1' credentials.
- Teams: Created 'QC Team Alpha' and 'QC Team Bravo' with assigned drivers, scanners, and helpers.
- Assets: Added 2 dedicated Trucks (QC-TRK-001/002) for collection teams.
- Business: Created 2 additional Partner Stores with owners and spatial coordinates.
- Fix: Ensured 'assigned_from' is populated for team members to meet DB constraints.
- Data: Maintained 3-month historical collection statistics for all 142 barangays.
2026-07-03 16:58:57 +08:00