title = Yii::t('catalog', 'Categories'); $this->params[ 'breadcrumbs' ][] = $this->title; ?>
$this->title, ] ) ?>

'btn btn-success' ]) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ [ 'class' => 'yii\grid\SerialColumn' ], [ 'attribute' => 'title', 'value' => function (Category $model) { return $model->lang->title; }, ], [ 'attribute' => 'thumb_id', 'value' => function (Category $model) { if (empty($model->thumb)) { return ''; } else { return $model->thumb->getImg( [ 'width' => '300px', ] ); } }, 'format' => 'html', ], [ 'attribute' => 'parent_id', 'value' => function (Category $model) { if (empty($model->parent)) { return \Yii::t('catalog', 'root'); } else { return $model->parent->lang->title; } }, 'enableSorting' => false, ], 'level', [ 'attribute' => 'status', 'format' => 'boolean', 'filter' => [ 0 => \Yii::$app->formatter->asBoolean(0), 1 => \Yii::$app->formatter->asBoolean(1), ], ], [ 'class' => 'yii\grid\ActionColumn' ], ], ] ); ?>