$dataProvider, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'today', 'format' => 'raw', 'value' => function ($model) { $text = ''; if ($model->task) { $i = 1; foreach ($model->task as $task) { $text .= "
$i. ($task->hours_spent ч.) $task->task
"; $i++; } } return $text; } ], 'difficulties', 'tomorrow', ['class' => 'yii\grid\ActionColumn'], ], ]); die();