/** * return the form view * @return mixed */ public function present() { $options = []; foreach (unserialize($this->fieldOptions) as $o) { $options[$o] = $o; } return Field::select($this->fieldSlug, $options, $this->value, ['label' => $this->fieldName, 'class' => 'select2']); }