protected function clientSubmit($buttons)
    {
        if (empty($buttons)) {
            return false;
        }
        $scripts = false;
        foreach ($buttons as $button) {
            if (array_get($button instanceof AbstractType ? $button->getAttributes() : $button->attributes, 'type') !== 'submit' or array_get($button instanceof AbstractType ? $button->getAttributes() : $button->attributes, 'disable_client_submit', false) == true
            ) {
                continue;
            }
            $atttibutes = $button instanceof AbstractType ? $button->getAttributes() : $button->attributes;
            if (isset($atttibutes['disable_client_submit'])) {
                unset($atttibutes['disable_client_submit']);
            }
            $atttibutes['class'] = array_get($atttibutes, 'class', '') . ' client-submit';


            $atttibutes['data-title'] = trans('antares/foundation::messages.are_you_sure');
            $button->attributes       = $button instanceof AbstractType ? $button->getAttributes() : $button->attributes;
            $scripts                  = true;
        }
        if ($scripts) {
            publish(null, '/packages/core/js/submitter.js');
        }
        return $buttons;
    }