public function render()
	{
		$baseModel = $this->getAdmin()->getModel();
		$baseModel = $baseModel::find($this->getAdmin()->getFormBuilder()->getIdentifier());

		if (!$baseModel) {
			$baseModel = $this->getAdmin()->getModel();
			$baseModel = new $baseModel;
		}

		$relatedModel = $baseModel->{$this->getName()}()->getRelated();

		if (isset($baseModel->{$this->getName()}[0])) {
			$this->setValue($baseModel->{$this->getName()}[0]->id);
		}

		$options = [];
		foreach ($relatedModel::all() as $option) {
			$options[$option->id] = $option->path;
		}

		$this->options($options);

		return parent::render();
	}