user()->tenant; if (! $tenant) { return $this->fail('Tenant not found', [], 404); } // We can just return the tenant data return $this->ok([ 'id' => $tenant->id, 'uuid' => $tenant->uuid, 'name' => $tenant->name, 'code' => $tenant->code, 'city_municipality_id' => $tenant->city_municipality_id, 'boundary_polygon' => $tenant->boundary_polygon ? $tenant->boundary_polygon->toArray() : null, 'logo_path' => $tenant->logo_path, 'contact_email' => $tenant->contact_email, 'contact_phone' => $tenant->contact_phone, ]); } }