title = $model->name; $this->params['breadcrumbs'][] = ['label' => 'Taking Sites', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?>

'btn btn-success']) ?>

$model, 'attributes' => [ 'id', 'name', [ 'attribute' => 'province', 'value' => function ($model) { $province = Province::findOne(['province_id' => $model->province]); if ($province) { return $province->name; } } ], [ 'attribute' => 'city', 'value' => function ($model) { $city = City::findOne(['city_id' => $model->city]); if ($city) { return $city->name; } } ], [ 'attribute' => 'area', 'value' => function ($model) { $area = Area::findOne(['area_id' => $model->area]); if ($area) { return $area->name; } } ], 'address:ntext', 'updated_at:datetime', 'created_at:datetime', ], ]) ?>