protected function getActionsColumn($canUpdate, $canDelete)
    {
        return function ($row) use($canUpdate, $canDelete) {
            $btns = [];
            $html = app('html');

            if ($canUpdate) {
                $url    = handles('antares::ban_management/bannedemails/edit/' . $row->id);
                $btns[] = $html->create('li', $html->link($url, trans('antares/ban_management::label.rule.edit'), ['data-icon' => 'edit']));
            }
            if ($canDelete) {
                $url    = route('bannedemails.destroy', ['id' => $row->id]);
                $btns[] = $html->create('li', $html->link($url, trans('antares/ban_management::label.rule.delete'), [
                            'data-icon'        => 'delete',
                            'class'            => 'triggerable confirm',
                            'data-title'       => trans('Are you sure?'),
                            'data-http-method' => 'DELETE',
                            'data-description' => trans('Deleting banned email') . ' ' . $row->value
                ]));
            }
            if (empty($btns)) {
                return '';
            }

            $section = $html->create('div', $html->create('section', $html->create('ul', $html->raw(implode('', $btns)))), ['class' => 'mass-actions-menu'])->get();
            return '<i class="zmdi zmdi-more"></i>' . $html->raw($section)->get();
        };
    }
protected function getActionsColumn($canUpdate, $canDelete)
    {
        return function ($row) use($canUpdate, $canDelete) {
            $btns = [];
            $html = app('html');

            if ($canUpdate) {
                $url    = handles('antares::ban_management/bannedemails/edit/' . $row->id);
                $btns[] = $html->create('li', $html->link($url, trans('antares/ban_management::label.rule.edit'), ['data-icon' => 'edit']));
            }
            if ($canDelete) {
                $url    = route('bannedemails.destroy', ['id' => $row->id]);
                $btns[] = $html->create('li', $html->link($url, trans('antares/ban_management::label.rule.delete'), [
                            'data-icon'        => 'delete',
                            'class'            => 'triggerable confirm',
                            'data-title'       => trans('Are you sure?'),
                            'data-http-method' => 'DELETE',
                            'data-description' => trans('Deleting banned email') . ' ' . $row->value
                ]));
            }
            if (empty($btns)) {
                return '';
            }

            $section = $html->create('div', $html->create('section', $html->create('ul', $html->raw(implode('', $btns)))), ['class' => 'mass-actions-menu'])->get();
            return '<i class="zmdi zmdi-more"></i>' . $html->raw($section)->get();
        };
    }
protected function getActionsColumn ( $ canUpdate , $ canDelete ) { return function ( $ row ) use ( $ canUpdate , $ canDelete ) { $ btns = [ ] ; $ html = app ( 'html' ) ; if ( $ canUpdate ) { $ url = handles ( 'antares::ban_management/bannedemails/edit/' . $ row -> id ) ; $ btns [ ] = $ html -> create ( 'li' , $ html -> link ( $ url , trans ( 'antares/ban_management::label.rule.edit' ) , [ 'data-icon' => 'edit' ] ) ) ; } if ( $ canDelete ) { $ url = route ( 'bannedemails.destroy' , [ 'id' => $ row -> id ] ) ; $ btns [ ] = $ html -> create ( 'li' , $ html -> link ( $ url , trans ( 'antares/ban_management::label.rule.delete' ) , [ 'data-icon' => 'delete' , 'class' => 'triggerable confirm' , 'data-title' => trans ( 'Are you sure?' ) , 'data-http-method' => 'DELETE' , 'data-description' => trans ( 'Deleting banned email' ) . ' ' . $ row -> value ] ) ) ; } if ( empty ( $ btns ) ) { return '' ; } $ section = $ html -> create ( 'div' , $ html -> create ( 'section' , $ html -> create ( 'ul' , $ html -> raw ( implode ( '' , $ btns ) ) ) ) , [ 'class' => 'mass-actions-menu' ] ) -> get ( ) ; return '<i class="zmdi zmdi-more"></i>' . $ html -> raw ( $ section ) -> get ( ) ; } ; }
Returns an action column for each table row.

@param $canUpdate
@param $canDelete
@return Closure
Returns an action column for each table row .