45 lines
1012 B
PHP
45 lines
1012 B
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
use common\components\AccountStatisticWidget;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\Collection */
|
|
|
|
$this->title = $model->id_collection;
|
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('backend/collection', 'Collections'), 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="collection-view">
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
|
|
|
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id_collection',
|
|
[
|
|
'attribute' =>'id_user',
|
|
'value' => $model->userName
|
|
],
|
|
[
|
|
'attribute' =>'id_account',
|
|
'value' => $model->accountName
|
|
],
|
|
'money:integer',
|
|
'start:datetime',
|
|
'end:datetime',
|
|
'created_at:datetime',
|
|
],
|
|
]) ?>
|
|
|
|
<?php
|
|
echo AccountStatisticWidget::widget([
|
|
'totals' => $totals
|
|
]);
|
|
?>
|
|
</div>
|