title = $model->fio; $this->params['breadcrumbs'][] = ['label' => 'User Cards', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>
= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
= DetailView::widget([ 'model' => $model, 'attributes' => [ 'fio', 'passport', [ 'attribute' => 'Photo', 'format' => 'raw', 'value' => function ($model) { return Html::tag('img', null, ['src' => $model->photo, 'width' => '100px']); } ], [ 'attribute' => 'Resume', 'format' => 'raw', 'value' => function ($model) { return Html::a('Скачать', $model->resume, ['target' => '_blank']); } ], [ 'attribute' => 'gender', 'value' => $model->gendersText, ], 'email:email', 'dob', [ 'attribute' => 'status', 'value' => $model->status0->name, ], 'salary', [ 'attribute' => 'position_id', 'value' => (isset($model->position->name)) ? $model->position->name : 'Без должности', ], 'created_at', 'updated_at', ], ]) ?>