. * */ namespace Vvveb\Controller\Localization; use function Vvveb\__; use Vvveb\Controller\Crud; use Vvveb\Sql\CountrySQL; class Region extends Crud { protected $type = 'region'; protected $controller = 'region'; protected $module = 'localization'; function index() { parent::index(); $countryModel = new CountrySQL(); $options = $this->global; unset($options['limit']); $country = $countryModel->getAll($options); $this->view->countries = $country['country'] ?? []; $this->view->status = [0 => __('Inactive'), 1 => __('Active')]; } }