protected function indexCheckboxFilters(): array
    {
        $oGroupModel = Factory::model('UserGroup', 'nails/module-auth');
        $aGroups     = $oGroupModel->getAll();

        return array_merge(
            parent::indexCheckboxFilters(),
            [
                Factory::factory('IndexFilter', 'nails/module-admin')
                    ->setLabel('Group')
                    ->setColumn('group_id')
                    ->addOptions(array_map(function ($oGroup) {
                        return Factory::factory('IndexFilterOption', 'nails/module-admin')
                            ->setLabel($oGroup->label)
                            ->setValue($oGroup->id)
                            ->setIsSelected(true);
                    }, $aGroups)),
                Factory::factory('IndexFilter', 'nails/module-admin')
                    ->setLabel('Suspended')
                    ->setColumn('is_suspended')
                    ->addOptions([
                        Factory::factory('IndexFilterOption', 'nails/module-admin')
                            ->setLabel('Yes')
                            ->setValue(true),
                        Factory::factory('IndexFilterOption', 'nails/module-admin')
                            ->setLabel('No')
                            ->setValue(false)
                            ->setIsSelected(true),
                    ]),
            ]
        );
    }
protected function indexCheckboxFilters(): array
    {
        $oGroupModel = Factory::model('UserGroup', 'nails/module-auth');
        $aGroups     = $oGroupModel->getAll();

        return array_merge(
            parent::indexCheckboxFilters(),
            [
                Factory::factory('IndexFilter', 'nails/module-admin')
                    ->setLabel('Group')
                    ->setColumn('group_id')
                    ->addOptions(array_map(function ($oGroup) {
                        return Factory::factory('IndexFilterOption', 'nails/module-admin')
                            ->setLabel($oGroup->label)
                            ->setValue($oGroup->id)
                            ->setIsSelected(true);
                    }, $aGroups)),
                Factory::factory('IndexFilter', 'nails/module-admin')
                    ->setLabel('Suspended')
                    ->setColumn('is_suspended')
                    ->addOptions([
                        Factory::factory('IndexFilterOption', 'nails/module-admin')
                            ->setLabel('Yes')
                            ->setValue(true),
                        Factory::factory('IndexFilterOption', 'nails/module-admin')
                            ->setLabel('No')
                            ->setValue(false)
                            ->setIsSelected(true),
                    ]),
            ]
        );
    }
protected function indexCheckboxFilters ( ) : array { $ oGroupModel = Factory :: model ( 'UserGroup' , 'nails/module-auth' ) ; $ aGroups = $ oGroupModel -> getAll ( ) ; return array_merge ( parent :: indexCheckboxFilters ( ) , [ Factory :: factory ( 'IndexFilter' , 'nails/module-admin' ) -> setLabel ( 'Group' ) -> setColumn ( 'group_id' ) -> addOptions ( array_map ( function ( $ oGroup ) { return Factory :: factory ( 'IndexFilterOption' , 'nails/module-admin' ) -> setLabel ( $ oGroup -> label ) -> setValue ( $ oGroup -> id ) -> setIsSelected ( true ) ; } , $ aGroups ) ) , Factory :: factory ( 'IndexFilter' , 'nails/module-admin' ) -> setLabel ( 'Suspended' ) -> setColumn ( 'is_suspended' ) -> addOptions ( [ Factory :: factory ( 'IndexFilterOption' , 'nails/module-admin' ) -> setLabel ( 'Yes' ) -> setValue ( true ) , Factory :: factory ( 'IndexFilterOption' , 'nails/module-admin' ) -> setLabel ( 'No' ) -> setValue ( false ) -> setIsSelected ( true ) , ] ) , ] ) ; }
Returns the available checkbox filters

@return array
@throws \Nails\Common\Exception\FactoryException
Returns the available checkbox filters