mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 07:38:29 +00:00
Expanded summary [skip ci]
This commit is contained in:
@@ -43,9 +43,17 @@
|
|||||||
<th>Spent</th>
|
<th>Spent</th>
|
||||||
<th>Left</th>
|
<th>Left</th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php $sum = 0;?>
|
<?php
|
||||||
|
$sumSpent = 0;
|
||||||
|
$sumEnvelope = 0;
|
||||||
|
$sumLeft = 0;
|
||||||
|
?>
|
||||||
@foreach($budgets as $budget)
|
@foreach($budgets as $budget)
|
||||||
<?php $sum += floatval($budget->spent);?>
|
<?php
|
||||||
|
$sumSpent += floatval($budget->spent);
|
||||||
|
$sumEnvelope += floatval($budget->budget_amount);
|
||||||
|
$sumLeft += floatval($budget->budget_amount) - floatval($budget->spent);
|
||||||
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@if($budget->id > 0)
|
@if($budget->id > 0)
|
||||||
@@ -60,8 +68,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><em>Sum</em></td>
|
<td><em>Sum</em></td>
|
||||||
<td colspan="2">{{mf($sum)}}</td>
|
<td>{{mf($sumEnvelope)}}</td>
|
||||||
|
<td>{{mf($sumSpent)}}</td>
|
||||||
|
<td>{{mf($sumLeft)}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user