<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\Ticket */

$this->title = $model->id_ticket;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/ticket', 'Tickets'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ticket-view">

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


    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id_ticket',
        	[
            	'attribute' =>	'id_user',
            	'value' =>	$model->user->username,
        			
        	],
        	[
            	'attribute' =>	'id_ticket_type',
            	'value' =>	$model->ticketTypeName,
        			
        	],
        	[
            	'attribute' =>	'id_account',
            	'value' =>	$model->accountName,
        			
        	],
        	[
            	'attribute' =>	'id_discount',
            	'value' =>	$model->discountName,
        			
        	],
            'start:datetime',
            'end:datetime',
            'max_usage_count',
            'usage_count',
        		[
        				'attribute' => 'status',
        				'value' => $model->statusName
        ],
            'price_brutto',
            'comment:raw',
            'created_at',
            'updated_at',
        ],
    ]) ?>

</div>
