$location->getRouteKey(), 'key' => [ 'public' => $location->getPublicKey(), 'route' => $location->getRouteKey(), ], 'country_id' => $location->country_id, 'city_id' => $location->city_id, 'name' => $location->name, 'code' => $location->code, 'text' => $location->text, 'photos' => $location->photos, 'upload_folder' => $location->upload_folder, 'min_price' => $location->min_price, 'max_price' => $location->max_price, ')' => $location->), '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), ]; } }