feat: implement barangay and household management with associated tests

This commit is contained in:
Developer
2026-06-29 15:02:52 +08:00
parent 9ac2ea7bda
commit b85fc255cf
124 changed files with 2894 additions and 192 deletions

View File

@@ -29,6 +29,7 @@ class UserResource extends JsonResource
'boundary_polygon' => $this->tenant->boundary_polygon ? (function ($poly) {
$rings = $poly->getGeometries();
$ring = $rings->first();
return $ring ? $ring->getGeometries()->map(fn ($p) => ['lat' => $p->latitude, 'lng' => $p->longitude])->all() : null;
})($this->tenant->boundary_polygon) : null,
] : null,