title = 'Запрос интервью';
$this->params['breadcrumbs'][] = $this->title;
?>
render('_search', ['model' => $searchModel]); ?>
= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
//'id',
'email:email',
'phone',
'profile.fio',
'user.email',
'comment:ntext',
[
'attribute' => 'created_at',
'value' => function($model){
return date('Y-m-d H:i', $model->created_at);
}
],
[
'attribute' => 'new',
'value' => function($model){
return $model->new ? 'Новое' : 'Просмотренно';
}
],
['class' => 'yii\grid\ActionColumn'],
],
]); ?>