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

title) ?>

render('_search', ['model' => $searchModel]); ?>

'btn btn-success' ]) ?>

$dataProvider, 'filterModel' => $searchModel, 'columns' => [ 'id', [ 'attribute' => 'title', 'value' => 'lang.title', ], 'imageUrl:image', [ 'label' => \Yii::t('blog', 'Parent category'), 'value' => function($model) { /** * @var BlogCategory $model */ if (!empty( $model->parent )) { return $model->parent->lang->title; } else { return false; }; }, ], [ 'attribute' => 'status', 'value' => function($model) { /** * @var BlogCategory $model */ return ( !$model->status ) ? \Yii::t('blog', 'Not active') : \Yii::t('blog', 'Active'); }, 'filter' => [ 0 => \Yii::t('blog', 'Not active'), 1 => \Yii::t('blog', 'Active'), ], ], [ 'class' => 'yii\grid\ActionColumn' ], ], ] ); ?>