Fix missing LGU/tenant relations and display in tables; Add LGU hierarchy tests
This commit is contained in:
@@ -40,6 +40,10 @@ class CollectionTeamResource extends JsonResource
|
||||
'performance_stats' => $this->getPerformanceStats(),
|
||||
'current_trip' => TripResource::make($this->whenLoaded('currentTrip')),
|
||||
'notes' => $this->notes,
|
||||
'tenant' => $this->whenLoaded('tenant', fn () => [
|
||||
'id' => $this->tenant->id,
|
||||
'name' => $this->tenant->name,
|
||||
]),
|
||||
'created_at' => $this->created_at?->toIso8601String(),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user