protected function buildAttributes($options, $classes)
    {
        $attributes = [];
        $attributes[] = 'class="'.$classes.'"';

        unset($options['class']);

        if (is_array($options)) {
            foreach ($options as $attribute => $value) {
                $attributes[] = $this->createAttribute($attribute, $value);
            }
        }

        return (count($attributes) > 0) ? implode(' ', $attributes) : '';
    }