feat: segregate super admin and LGU admin workflows

- Created AdminBarangayController to strictly scope barangay management to LGU boundaries
- Created AdminTenantController for LGU admins to fetch their own tenant configurations
- Updated sidebar to expose Barangays to LGU admins under the Areas menu
- Updated frontend UI to hide the City selection dropdown from LGU admins and dynamically inject their city_municipality_id
- Handled form validation issues caused by hidden required fields
- Implemented LGU dashboard routes and views
- Enforced 2 free QR code allocations on resident signup
This commit is contained in:
Azure_0_
2026-07-07 00:33:16 +08:00
committed by Verde AI
parent 6f74305e4a
commit ee72cd7211
19 changed files with 730 additions and 30 deletions

View File

@@ -78,6 +78,8 @@ class RegisterController extends ApiController
'relationship' => HouseholdMember::RELATIONSHIP_HEAD,
'full_name' => $user->full_name,
]);
app(\App\Services\Qr\QrAllocator::class)->allocateFreeToHousehold($household);
}
return $user;