mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 11:08:28 +00:00
Extra report and cleanup.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@extends('layouts.default')
|
||||
@section('content')
|
||||
{{ Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) }}
|
||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) !!}
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||
<table class="table table-bordered table-striped">
|
||||
@@ -13,9 +13,9 @@
|
||||
@foreach($accounts as $account)
|
||||
<tr>
|
||||
<td><a href="{{route('accounts.show',$account->id)}}">{{{$account->name}}}</a></td>
|
||||
<td>{{Amount::format($account->startBalance)}}</td>
|
||||
<td>{{Amount::format($account->endBalance)}}</td>
|
||||
<td>{{Amount::format($account->startBalance - $account->endBalance,false)}}</td>
|
||||
<td>{!! Amount::format($account->startBalance) !!}</td>
|
||||
<td>{!! Amount::format($account->endBalance) !!}</td>
|
||||
<td>{!! Amount::format($account->startBalance - $account->endBalance,false) !!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@@ -47,15 +47,15 @@
|
||||
<i class="fa fa-fw fa-question-circle" data-toggle="tooltip" data-placement="top" title="The calculation used here is slightly different from the row below. The numbers should match."></i>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{Amount::format($budget['amount'])}}</td>
|
||||
<td>{!! Amount::format($budget['amount']) !!}</td>
|
||||
<?php $spent = 0;?>
|
||||
@foreach($accounts as $account)
|
||||
@if(isset($account->budgetInformation[$id]))
|
||||
<td>
|
||||
@if($id == 0)
|
||||
<a href="#">{{Amount::format($account->budgetInformation[$id]['amount'])}}</a>
|
||||
<a href="#">{!! Amount::format($account->budgetInformation[$id]['amount']) !!}</a>
|
||||
@else
|
||||
{{Amount::format($account->budgetInformation[$id]['amount'])}}
|
||||
{!! Amount::format($account->budgetInformation[$id]['amount']) !!}
|
||||
@endif
|
||||
</td>
|
||||
<?php
|
||||
@@ -63,11 +63,11 @@
|
||||
$accountSums[$account->id] += floatval($account->budgetInformation[$id]['amount']);
|
||||
?>
|
||||
@else
|
||||
<td>{{Amount::format(0)}}</td>
|
||||
<td>{!! Amount::format(0) !!}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
<td>{{Amount::format($budget['amount'] + $budget['spent'])}}</td>
|
||||
<td>{{Amount::format($budget['amount'] + $spent)}}</td>
|
||||
<td>{!! Amount::format($budget['amount'] + $budget['spent']) !!}</td>
|
||||
<td>{!! Amount::format($budget['amount'] + $spent) !!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
@@ -77,10 +77,10 @@
|
||||
@foreach($accounts as $account)
|
||||
@if(isset($account->budgetInformation[0]))
|
||||
<td>
|
||||
<a href="#">{{Amount::format($account->budgetInformation[0]['amount'])}}</a>
|
||||
<a href="#">{!! Amount::format($account->budgetInformation[0]['amount']) !!}</a>
|
||||
</td>
|
||||
@else
|
||||
<td>{{Amount::format(0)}}</td>
|
||||
<td>{!! Amount::format(0) !!}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
<td colspan="2"> </td>
|
||||
@@ -89,7 +89,7 @@
|
||||
<td colspan="2">Balanced by transfers</td>
|
||||
@foreach($accounts as $account)
|
||||
<td>
|
||||
<a href="#">{{Amount::format($account->balancedAmount)}}</a>
|
||||
<a href="#">{!! Amount::format($account->balancedAmount) !!}</a>
|
||||
</td>
|
||||
@endforeach
|
||||
<td colspan="2"> </td>
|
||||
@@ -98,14 +98,14 @@
|
||||
<tr>
|
||||
<td colspan="2">Balancing transfers</td>
|
||||
@foreach($accounts as $account)
|
||||
<td>{{Amount::format(0)}}</td>
|
||||
<td>{!! Amount::format(0) !!}</td>
|
||||
@endforeach
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Income</td>
|
||||
@foreach($accounts as $account)
|
||||
<td>{{Amount::format(0)}}</td>
|
||||
<td>{!! Amount::format(0) !!}</td>
|
||||
@endforeach
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
@@ -118,10 +118,10 @@
|
||||
?>
|
||||
@if(isset($account->budgetInformation[0]))
|
||||
<td>
|
||||
<a href="#">{{Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount)}}</a>
|
||||
<a href="#">{!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!}</a>
|
||||
</td>
|
||||
@else
|
||||
<td>{{Amount::format(0)}}</td>
|
||||
<td>{!! Amount::format(0) !!}</td>
|
||||
@endif
|
||||
@endforeach
|
||||
<td colspan="2"> </td>
|
||||
@@ -129,14 +129,14 @@
|
||||
<tr>
|
||||
<td colspan="2"><em>Sum</em></td>
|
||||
@foreach($accounts as $account)
|
||||
<td>{{Amount::format($accountSums[$account->id])}}</td>
|
||||
<td>{!! Amount::format($accountSums[$account->id]) !!}</td>
|
||||
@endforeach
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Expected balance</td>
|
||||
@foreach($accounts as $account)
|
||||
<td>{{Amount::format($account->startBalance + $accountSums[$account->id])}}</td>
|
||||
<td>{!! Amount::format($account->startBalance + $accountSums[$account->id]) !!}</td>
|
||||
@endforeach
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
@@ -152,5 +152,5 @@
|
||||
|
||||
@stop
|
||||
@section('scripts')
|
||||
{{HTML::script('assets/javascript/firefly/reports.js')}}
|
||||
<script type="text/javascript" src="js/reports.js"></script>
|
||||
@stop
|
||||
|
Reference in New Issue
Block a user