public function render()
    {
        $params     = isset($this->params['attributes']) ? $this->params['attributes'] : $this->params;
        $id         = !isset($params['id']) ? $params['name'] . '-' . str_random(4) : $params['id'];
        $script     = $this->script($id, $params);
        $attributes = app('html')->decorate(array_except($params + ['id' => $id], ['pluginOptions', 'options']));


        $optionsData = array_get($this->params, 'optionsData', []);
        $control     = app('form')->select(
                array_get($this->params, 'name'), array_get($this->params, 'options', []), array_get($this->params, 'value'), $attributes, $optionsData
        );
        echo view('antares/html::controls.remote_select', ['control' => $control])->render();
        if (app('request')->ajax()) {
            echo '<script type="text/javascript">' . $script . '</script>';
        } else {
            app('antares.asset')->container('antares/foundation::scripts')->inlineScript('remote-select-' . $id, $script);
        }
        return '';
    }