public static function defaultColumns()
 {
     return array_merge(parent::defaultColumns(), ['user_comment' => ['filterAttribute' => 'user_comment_like', 'value' => function ($model) {
         return $model->user_comment;
     }], 'server' => ['label' => Yii::t('hipanel:server', 'Server'), 'value' => function ($model) {
         return $model->params['name'] ?: $model->params['server'];
     }], 'time' => ['filter' => false, 'value' => function ($model) {
         return Yii::$app->formatter->asDatetime($model->time);
     }]]);
 }
 public static function defaultColumns()
 {
     return array_merge(parent::defaultColumns(), ['tech_details' => ['format' => 'raw', 'label' => Yii::t('hipanel:finance:change', 'Operation details'), 'value' => function ($model) {
         $params = $model->params;
         return OSFormatter::widget(['osimages' => ServerHelper::getOsimages($params['tariff_type']), 'imageName' => $params['osimage'], 'infoCircle' => false]);
     }], 'user_comment' => ['filterAttribute' => 'user_comment_like', 'value' => function ($model) {
         return $model->user_comment;
     }], 'tech_comment' => ['attribute' => 'tech_comment'], 'time' => ['value' => function ($model) {
         return Yii::$app->formatter->asDatetime($model->time);
     }], 'actions' => ['class' => ActionColumn::class, 'template' => '{view}', 'header' => Yii::t('hipanel', 'Actions')]]);
 }