<?php

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

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

$this->title = $model->id_transfer;
$this->params['breadcrumbs'][] = ['label' => Yii::t('frontend/transfer', 'Transfers'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="transfer-view">

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

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id_transfer',
        	[
        		'attribute' => 'id_discount',
        		'value' =>  Html::getAttributeValue($model, 'discountName')
        			
    		],
           [
        		'attribute' => 'type',
        		'value' =>  $model->getTransferTypeName(),
           		'label' => 'Típus'
        			
    		],
           [
        		'attribute' => 'id_object',
        		'value' =>  $model->getObjectName(),
           		'label' => 'Megnevezés'
        			
    		],
            'status',
            'type',
            'item_price',
            'count',
            'money',
//             'money_currency',
//             'rate',
        		[
        		'attribute' => 'id_user',
        		'value' =>  $model->getUserName(),
//         		'label' => 'Megnevezés'
      
        				],
            'created_at:datetime',
            'paid_at:datetime',
            'comment',
        ],
    ]) ?>

</div>
