$team->getRouteKey(), 'key' => [ 'public' => $team->getPublicKey(), 'route' => $team->getRouteKey(), ], 'Name' => $team->Name, 'description' => $team->description, 'settings' => $team->settings, 'type' => $team->type, 'slug' => $team->slug, 'created_by' => $team->created_by, 'deleted_at' => $team->deleted_at, 'url' => [ 'public' => trans_url('teams/'.$team->getPublicKey()), 'user' => guard_url('teams/team/'.$team->getRouteKey()), ], 'status' => trans('app.'.$team->status), 'created_at' => format_date($team->created_at), 'updated_at' => format_date($team->updated_at), ]; } }