Пример #1
0
			<div class="clr"></div>
		</div>
		<?php 
foreach ($transactions as $trans) {
    ?>
			<div class="item">
				<div class="col col30"><?php 
    echo Yii::$app->formatter->asDate($trans['created_at'], 'php:H:i / d.m.yy');
    ?>
</div>
				<div class="col col25 t-right"><?php 
    echo Yii::$app->formatter->asDecimal($trans['deposit_before'], 2);
    ?>
$</div>
				<div class="col col20 t-right"><?php 
    echo Transaction::showTransactionValue($trans['value']);
    ?>
</div>
				<div class="col col25 t-right"><b class="blue"><?php 
    echo Yii::$app->formatter->asDecimal($trans['deposit_before'] + $trans['value'], 2);
    ?>
$</b></div>
				<div class="clr"></div>
				<div class="col-text"><?php 
    echo Transaction::buildTransactionDescr($trans['descr']);
    ?>
</div>
			</div>
		<?php 
}
?>
Пример #2
0
<?php

use common\models\Transaction;
?>


<div class="col col15"><?php 
echo Yii::$app->formatter->asDate($model->created_at, 'php:H:i / d.m.yy');
?>
</div>
<div class="col col15 t-right"><?php 
echo Yii::$app->formatter->asDecimal($model->deposit_before, 2);
?>
$</div>
<div class="col col15 t-right"><?php 
echo Transaction::showTransactionValue($model->value);
?>
</div>
<div class="col col15 t-right"><b class="blue"><?php 
echo Yii::$app->formatter->asDecimal($model->deposit_before + $model->value, 2);
?>
$</b></div>
<div class="col col-text col40"><?php 
echo Transaction::buildTransactionDescr($model->descr);
?>
</div>
<?/*<div class="clr"></div>*/?>