params['dashboard_widgets'] as $idx => $item) {
            //if (!is_file($path . '/' . $file)) {
            //    continue;
            //}
            //$itemFile = $path . '/' . $file;
            //$item     = require($itemFile);
            if (isset($item['rule']) && (Yii::$app->user->can($item['rule']) || Yii::$app->user->can('admin'))) {
            } elseif (!isset($item['rule'])) {
            } else {
                continue;
            }
            if ($item['category'] == 'counter') {
                $line           = Html::a($item['name'], '#', [
                        'onclick' => 'addWidget(' . $idx . ", 'colorCounter')",
                    ]) . '
';
                $widgetsCounter .= $line;
            } else {
                $line        = Html::a($item['name'], '#', [
                        'onclick' => 'addWidget(' . $idx . ", 'colorInfo')",
                    ]) . '
';
                $widgetsInfo .= $line;
            }
        }
        return [$widgetsCounter, $widgetsInfo];
    }
    public static function getExtColors()
    {
        return [
            'gray'       => Yii::t('main', 'Gray'),
            'gray-light' => Yii::t('main', 'Light gray'),
            'black'      => Yii::t('main', 'Black'),
            'red'        => Yii::t('main', 'Red'),
            'yellow'     => Yii::t('main', 'Yellow'),
            'aqua'       => Yii::t('main', 'Aqua'),
            'navy'       => Yii::t('main', 'Navy'),
            'blue'       => Yii::t('main', 'Blue'),
            'light-blue' => Yii::t('main', 'Light Blue'),
            'green'      => Yii::t('main', 'Green'),
            'teal'       => Yii::t('main', 'Teal'),
            'olive'      => Yii::t('main', 'Olive'),
            'lime'       => Yii::t('main', 'Lime'),
            'orange'     => Yii::t('main', 'Orange'),
            'fuchsia'    => Yii::t('main', 'Fuchsia'),
            'purple'     => Yii::t('main', 'Purple'),
            'maroon'     => Yii::t('main', 'Maroon'),
        ];
    }
    public static function getColors()
    {
        return [
            'default' => Yii::t('main', 'Gray'),
            'danger'  => Yii::t('main', 'Red'),
            'primary' => Yii::t('main', 'Blue'),
            'success' => Yii::t('main', 'Green'),
            'warning' => Yii::t('main', 'Orange'),
        ];
    }
}