fitness-web/backend/views/customer/view.php

57 lines
1.4 KiB
PHP

<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\Customer */
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/customer', 'Customers'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="customer-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a(Yii::t('common/customer', 'Update'), ['update', 'id' => $model->id_customer], ['class' => 'btn btn-primary']) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
[
'attribute' => 'id_customer_card',
'value' => $model->customerCardNumber
],
[
'attribute' => 'id_user',
'value' => $model->username
],
'id_partner_card',
'id_proposer',
'name',
'email:email',
'password',
'phone',
[
'attribute' => 'sex',
'value' => $model->sexHuman
],
'date_stundent_card_expire',
'birthdate:date',
'image',
'description',
'tax_number',
'country',
'zip',
'city',
'address',
'created_at:datetime',
'updated_at:datetime',
],
]) ?>
</div>