Fix missing LGU/tenant relations and display in tables; Add LGU hierarchy tests
This commit is contained in:
@@ -31,6 +31,10 @@ class DropOffPointResource extends JsonResource
|
||||
isset($this->distance_meters),
|
||||
fn () => round((float) $this->distance_meters, 1),
|
||||
),
|
||||
'tenant' => $this->whenLoaded('tenant', fn () => [
|
||||
'id' => $this->tenant->id,
|
||||
'name' => $this->tenant->name,
|
||||
]),
|
||||
'barangay' => BarangayResource::make($this->whenLoaded('barangay')),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user