title = Yii::t('common', 'Comperes');
$this->params['breadcrumbs'][] = $this->title;
?>
beginBlock('content-header') ?>
= $this->title . ' ' . Html::a(Yii::t('common', 'Create Compere'), ['create'], ['class' => 'btn btn-success']) ?>
endBlock() ?>
render('_search', ['model' => $searchModel]); ?>
= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
'id',
'name',
'desc',
[
'attribute' => 'province',
'format' => 'raw',
'value' => function ($model) {
return \common\models\Region::getNameById($model->province);
},
],
[
'attribute' => 'city',
'format' => 'raw',
'value' => function ($model) {
return \common\models\Region::getNameById($model->city);
},
],
[
'attribute' => 'area',
'format' => 'raw',
'value' => function ($model) {
return \common\models\Region::getNameById($model->area);
},
],
// 'address',
'title',
'works',
'tel',
'created_at',
'updated_at',
[
'attribute' => 'status',
'value' => function ($model) {
return Compere::getStatusList($model->status);
},
],
['class' => 'yii\grid\ActionColumn'],
],
]); ?>