title = $model->lang->title; $this->params[ 'breadcrumbs' ][] = [ 'label' => Yii::t('catalog', 'Products'), 'url' => [ 'index' ], ]; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
= Html::a( Yii::t('catalog', 'Update'), [ 'update', 'id' => $model->id, ], [ 'class' => 'btn btn-primary' ] ) ?> = Html::a( Yii::t('catalog', 'Variants'), [ '/variant/index', 'product_id' => $model->id, ], [ 'class' => 'btn btn-success' ] ) ?> = Html::a( Yii::t('catalog', 'Delete'), [ 'delete', 'id' => $model->id, ], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => Yii::t('catalog', 'Are you sure you want to delete this item?'), 'method' => 'post', ], ] ) ?>
= DetailView::widget( [ 'model' => $model, 'attributes' => [ 'id', 'lang.title', [ 'attribute' => 'lang.alias.value', 'label' => \Yii::t('catalog', 'Alias'), ], 'lang.description:html', [ 'attribute' => 'brand.lang.title', 'label' => \Yii::t('catalog', 'Brand title'), ], 'sort', 'status:boolean', 'created_at:datetime', 'updated_at:datetime', ], ] ) ?>