protected function getActionsColumn($canUpdateUser, $canDeleteUser, $canLoginAsUser)
    {
        return function ($row) use($canUpdateUser, $canDeleteUser, $canLoginAsUser) {
            $html               = app('html');
            $this->tableActions = [];
            $user               = user();

            if ($canUpdateUser) {
                $url = ($user->id === $row->id) ? 'antares/foundation::/account' : "antares::acl/index/users/{$row->id}/edit";
                $this->addTableAction('edit', $row, $html->link(handles($url), trans('antares/foundation::label.edit'), ['data-icon' => 'edit']));
            }
            if (!is_null($user) && $user->id !== $row->id and $canDeleteUser) {
                $this->addTableAction('delete', $row, $html->create('li', $html->link(handles("antares::acl/index/users/{$row->id}/delete", ['csrf' => true]), trans('antares/foundation::label.delete'), [
                                    'class'            => 'triggerable confirm',
                                    'data-icon'        => 'delete',
                                    'data-title'       => trans("antares/acl::messages.users.delete.are_you_sure"),
                                    'data-description' => trans("antares/acl::messages.users.delete.deleteing_description", ["fullname" => $row->fullname])
                ])));
            }
            if (!is_null($user) && $user->id !== $row->id and $canLoginAsUser && $row->roles->pluck('name')->toArray() !== $user->roles->pluck('name')->toArray()) {

                $this->addTableAction('login_as', $row, $html->create('li', $html->link(handles("login/with/{$row->id}"), trans('antares/acl::label.login_as', ['fullname' => $row->fullname]), [
                                    'class'            => 'triggerable confirm',
                                    'data-icon'        => 'odnoklassniki',
                                    'data-title'       => trans("Are you sure?"),
                                    'data-description' => trans('antares/acl::label.login_as', ['fullname' => $row->fullname])
                ])));
            }
            if (empty($this->tableActions)) {
                return '';
            }
            $section = $html->create('div', $html->create('section', $html->create('ul', $html->raw(implode('', $this->tableActions->toArray())))), ['class' => 'mass-actions-menu'])->get();
            return '<i class="zmdi zmdi-more"></i>' . $html->raw($section)->get();
        };
    }