<?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('frontend/customer', 'Customers'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="customer-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a(Yii::t('frontend/customer', 'Update'), ['update', 'id' => $model->id_customer], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('frontend/customer', 'Delete'), ['delete', 'id' => $model->id_customer], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('frontend/customer', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id_customer',
            'id_customer_card',
            'id_user',
            'id_partner_card',
            'id_proposer',
            'name',
            'email:email',
            'password',
            'phone',
            'sex',
            'date_stundent_card_expire',
            'birthdate',
            'image',
            'description',
            'tax_number',
        		'bank_name',
        		'bank_account',
            'country',
            'zip',
            'city',
            'address',
            'created_at',
            'updated_at',
        ],
    ]) ?>

</div>
