$location->getRouteKey(), 'key' => [ 'public' => $location->getPublicKey(), 'route' => $location->getRouteKey(), ], 'parent_id' => $location->parent_id, 'nest_left' => $location->nest_left, 'nest_right' => $location->nest_right, 'nest_depth' => $location->nest_depth, 'name' => $location->name, 'description' => $location->description, 'type' => $location->type, 'latitude' => $location->latitude, 'longitude' => $location->longitude, 'slug' => $location->slug, 'deleted_at' => $location->deleted_at, 'url' => [ 'public' => trans_url('location/'.$location->getPublicKey()), 'user' => guard_url('location/location/'.$location->getRouteKey()), ], 'status' => trans('app.'.$location->status), 'created_at' => format_date($location->created_at), 'updated_at' => format_date($location->updated_at), ]; } }