add reception collection basics
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use frontend\components\TransferTotalWidget;
|
||||
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
@@ -15,13 +16,41 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<dl class='dl-horizontal'>
|
||||
<dt>Utolsó zárás</dt>
|
||||
<dd>asdf</dd>
|
||||
<dt></dt>
|
||||
<dd></dd>
|
||||
<dt></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
<dt><?= Yii::t('frontend/collection', "Last collection")?></dt>
|
||||
<dd><?php echo isset($model->lastCollection) ? Yii::$app->formatter->asDatetime($model->lastCollection->end) : Yii::t('frontend/collection', "No collection found") ?></dd>
|
||||
|
||||
<dt><?= Yii::t('frontend/collection', "Start of interval")?></dt>
|
||||
<dd><?php echo Yii::$app->formatter->asDatetime($model->start) ?></dd>
|
||||
|
||||
<dt><?= Yii::t('frontend/collection', "End of interval")?></dt>
|
||||
<dd><?php echo Yii::$app->formatter->asDatetime($model->end) ?></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
echo TransferTotalWidget::widget([
|
||||
'options' => [
|
||||
'statistic' => $model->totals['paid_at'],
|
||||
'panelHeading' => 'Fizetve' ,
|
||||
]
|
||||
]);
|
||||
echo TransferTotalWidget::widget([
|
||||
'options' => [
|
||||
'statistic' => $model->totals['created_at'],
|
||||
'panelHeading' => 'Kiadva',
|
||||
]
|
||||
]);
|
||||
echo TransferTotalWidget::widget([
|
||||
'options' => [
|
||||
'statistic' => $model->totals['created_at_paid'],
|
||||
'panelHeading' => 'Kiadva és fizetve',
|
||||
]
|
||||
]);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<?= $this->render('_form', [
|
||||
'model' => $model,
|
||||
|
||||
Reference in New Issue
Block a user