$location->getRouteKey(), 'key' => [ 'public' => $location->getPublicKey(), 'route' => $location->getRouteKey(), ], 'id' => $location->id, 'parent_id' => $location->parent_id, 'user_id' => $location->user_id, 'user_type' => $location->user_type, 'code' => $location->code, 'slug' => $location->slug, 'name' => $location->name, 'description' => $location->description, 'status' => $location->status, 'type' => $location->type, 'latitude' => $location->latitude, 'longitude' => $location->longitude, 'currency' => $location->currency, 'language' => $location->language, 'images' => $location->images, 'videos' => $location->videos, 'created_at' => $location->created_at, 'updated_at' => $location->updated_at, '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), ]; } }