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

57 lines
1.3 KiB
PHP

<?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' => [
[
'attribute' => 'id_transfer',
],
[
'attribute' => 'id_account',
'value' => $model->accountName
],
[
'attribute' => 'type',
'value' => $model->transferTypeName,
],
[
'attribute' => 'id_object',
'value' => $model->objectName,
],
[
'attribute' => 'id_user',
'value' => $model->userName,
],
[
'attribute' => 'id_discount',
'value' => $model->discountName,
],
[
'attribute' => 'payment_method',
'value' => $model->paymentMethodName,
],
'item_price',
'count',
'money',
'comment',
'created_at',
'paid_at',
],
]) ?>
</div>