title = Yii::t('frontend/transfer', 'Transfers');
$this->params['breadcrumbs'][] = $this->title;
?>
= Html::encode($this->title) ?>
render('_search', ['model' => $searchModel, 'accounts' => $accounts,'users' => $users,]); ?>
Összesen
$searchModel->fullTotal,
'attributes' => [
[
'value' => $searchModel->fullTotal['money'],
'label' => $searchModel->fullTotal['label'],
],
]
])
?>
Kasszák összesen
new ArrayDataProvider([
'allModels' => $searchModel->accountTotals,
'sort' => false,
'pagination' => false,
]) ,
'columns' => [
[
'label' => Yii::t('common/transfer','Account'),
'value' => 'label'
],
[
'label' => Yii::t('common/transfer','Money total'),
'value' => 'money'
],
]
]
);
?>
Pénzmozgások
= GridView::widget([
'tableOptions' => ['class' => 'table table-striped table-bordered table-transfer'],
'dataProvider' => $dataProvider,
'columns' => [
[
'attribute' => 'type',
'value' => 'transferTypeName'
],
[
'attribute' => 'objectName',
],
[
'attribute' => 'id_user',
'value' => 'userName'
],
[
'attribute' => 'id_account',
'value' => 'accountName'
],
[
'contentOptions' =>[ 'class' => 'item-price' ],
'attribute' => 'item_price',
],
[
'contentOptions' =>[ 'class' => 'count' ],
'attribute' => 'count',
],
[
'contentOptions' =>[ 'class' => 'money' ],
'attribute' => 'money',
'value' => 'signedMoney'
],
'created_at:datetime',
['class' => 'yii\grid\ActionColumn',
'template' => '{view}'
],
],
]); ?>