// return ['class' => 'success', ]; return ['style' => ' color:white; background-color:#BDBDBD; font-family:"Comic Sans MS"; ']; } }, 'columns' => [['attribute' => '#', 'contentOptions' => ['style' => 'width: 50px;'], 'format' => 'raw', 'value' => function ($model, $index, $key) { if ($model->date == " ") { return "Total"; } else { return ++$key; // ++ dnum enq vor 0-ic chsksi hamarakalumy } }], ['attribute' => 'user', 'value' => function ($model) { if ($model->date == " ") { return " "; } else { $user_id = $model->user_id; return common\models\User::findIdentity($user_id)->username; } }], ['attribute' => 'revenue', 'value' => function ($model) { return number_format($model->revenue); }], ['attribute' => 'expense_on_goods', 'value' => function ($model) { return number_format($model->expense_on_goods); }], ['attribute' => 'other_expenses', 'value' => function ($model) { return number_format($model->other_expenses); }], ['attribute' => 'salary', 'value' => function ($model) { return number_format($model->salary); }], ['attribute' => 'day_type', 'value' => function ($model) { if ($model->date == " ") { return " "; } else { return $model->day_type ? "Working day" : "Non-working day"; }