public function filterActions(\Illuminate\Database\Eloquent\Model $instance): array
    {
        $listButtons = [];
        if ($this->count()) {
            $buttons = $this->getActions();
            foreach ($buttons as &$button) {
                if ($button->getValues($instance)) {
                    $listButtons[] = $button->render();
                    unset($button);
                }
            }
        }

        return $listButtons;
    }
public function filterActions(\Illuminate\Database\Eloquent\Model $instance): array
    {
        $listButtons = [];
        if ($this->count()) {
            $buttons = $this->getActions();
            foreach ($buttons as &$button) {
                if ($button->getValues($instance)) {
                    $listButtons[] = $button->render();
                    unset($button);
                }
            }
        }

        return $listButtons;
    }
public function filterActions ( \ Illuminate \ Database \ Eloquent \ Model $ instance ) : array { $ listButtons = [ ] ; if ( $ this -> count ( ) ) { $ buttons = $ this -> getActions ( ) ; foreach ( $ buttons as & $ button ) { if ( $ button -> getValues ( $ instance ) ) { $ listButtons [ ] = $ button -> render ( ) ; unset ( $ button ) ; } } } return $ listButtons ; }
The method gets the buttons for the grid table

@param \Illuminate\Database\Eloquent\Model $instance

@return array
The method gets the buttons for the grid table