protected function renderPresets()
    {
        // Create the dropdown menu options
        $config = config('decoy.encode.presets');
        $presets = array_keys($config);
        $dropdown = implode('', array_map(function ($config, $preset) {
            return '<li>
                <a href="#" data-val="'.$preset.'">
                    '.$config['title'].'
                </a>
            </li>';
        }, $config, $presets));

        // Make the hidden field
        $hidden = '<input type="hidden"
            name="_preset['.$this->name.']"
            value="'.$this->presetValue().'">';

        // Renturn the total markup
        return '<div class="input-group-btn js-tooltip"
            title="<b>Encoding quality.</b><br>Change to re-encode videos.">
            '.$hidden.'
            <button type="button"
                class="btn btn-default dropdown-toggle"
                data-toggle="dropdown" >
                    <span class="selected">Presets</span>
                    <span class="caret"></span>
            </button>
            <ul class="dropdown-menu dropdown-menu-right presets">
                '.$dropdown.'
            </ul>
        </div>';
    }