find($this->parent_adv_id)) { $configurations_item = json_decode($this->option_json, true); $option_group_value = ""; foreach ($configurations_item as $option_id => $value) { $value_entry = app(ProductoptionsValueRepositoryInterface::class)->find($value); $option_group_value .= " " . $value_entry->getName(); } return $adv->name . ' | ' . trim($option_group_value, ' '); } } }