registrationFormField; return [ 'field_slug' => $field?->slug, 'field_label' => $field?->label, 'field_type' => $field?->field_type?->value, 'value' => $this->value, 'selected_options' => $this->selected_options, 'tag_names' => $this->when( $field?->field_type === RegistrationFieldType::TAG_PICKER && !empty($this->selected_options), function () { return PersonTag::whereIn('id', $this->selected_options ?? []) ->pluck('name') ->all(); } ), ]; } }