add frontend changes
This commit is contained in:
96
frontend/views/transfer/_index_stat.php
Normal file
96
frontend/views/transfer/_index_stat.php
Normal file
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use yii\widgets\ListView;
|
||||
use yii\base\Widget;
|
||||
|
||||
?>
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">Kiadva az adott időszakban</div>
|
||||
<div class="panel-body">
|
||||
<dl class="dl-horizontal dl-totals">
|
||||
<?php
|
||||
foreach ($searchModel->totalsCreatedAt['accounts'] as $acc ){
|
||||
?>
|
||||
<dt><?php echo $acc['label'] ?></dt>
|
||||
<dd class="text-right"><?php echo $acc['money'] ?></dd>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<dt><?php echo Yii::t('frontend/transfer','Total') ?></dt>
|
||||
<dd class="text-right"><?php echo $searchModel->totalsCreatedAt['total'] ?></dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">Kiadva/nem fizetve az adott időszakban</div>
|
||||
<div class="panel-body">
|
||||
<dl class="dl-horizontal dl-totals">
|
||||
<?php
|
||||
foreach ($searchModel->totalsCreatedAtNotPaid['accounts'] as $acc ){
|
||||
?>
|
||||
<dt><?php echo $acc['label'] ?></dt>
|
||||
<dd class="text-right"><?php echo $acc['money'] ?></dd>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<dt><?php echo Yii::t('frontend/transfer','Total') ?></dt>
|
||||
<dd class="text-right"><?php echo $searchModel->totalsCreatedAtNotPaid['total'] ?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 ">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">Kifizetve az adott időszakban</div>
|
||||
<div class="panel-body">
|
||||
<dl class="dl-horizontal dl-totals">
|
||||
<?php
|
||||
foreach ($searchModel->totalsPaidAt['accounts'] as $acc ){
|
||||
?>
|
||||
<dt><?php echo $acc['label'] ?></dt>
|
||||
<dd class="text-right"><?php echo $acc['money'] ?></dd>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<dt><?php echo Yii::t('frontend/transfer','Total') ?></dt>
|
||||
<dd class="text-right"><?php echo $searchModel->totalsPaidAt['total'] ?></dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-md-offset-4">
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">Kiadva/fizetve az adott időszakban</div>
|
||||
<div class="panel-body">
|
||||
<dl class="dl-horizontal dl-totals">
|
||||
<?php
|
||||
foreach ($searchModel->totalsCreatedAtPaid['accounts'] as $acc ){
|
||||
?>
|
||||
<dt><?php echo $acc['label'] ?></dt>
|
||||
<dd class="text-right"><?php echo $acc['money'] ?></dd>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<dt><?php echo Yii::t('frontend/transfer','Total') ?></dt>
|
||||
<dd class="text-right"><?php echo $searchModel->totalsCreatedAtPaid['total'] ?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user