title = 'Пользователи'; $this->params['breadcrumbs'][] = $this->title; $this->params['in-card'] = false; ?>
'btn btn-default btn-flat']) ?>
$dataProvider, 'filterModel' => $searchModel, 'columns' => [ 'id', 'username', 'email', 'name', [ 'attribute' => 'room_id', 'filter' => Room::getList(), 'value' => function ($model) { /** @var $model User */ return $model->room ? $model->room->name : null; }, ], [ 'filter' => User::getStatuses(), 'attribute' => 'status', 'value' => function ($model) { /** @var $model User */ return $model->getStatusLabel(); }, ], [ 'filter' => User::getGroups(), 'attribute' => 'group', 'value' => function ($model) { /** @var $model User */ return $model->getGroupLabel(); }, ], ['class' => 'app\components\ActionButtonColumn'], ], ]); ?>