@extends('layouts.default')
@section('content')
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) !!}
Account balance
Name |
Balance at start of year |
Balance at end of year |
Difference |
@foreach($balances as $balance)
@if($balance['hide'] === false)
{{{$balance['account']->name}}}
@if($balance['shared'])
shared
@endif
|
{!! Amount::format($balance['start']) !!} |
{!! Amount::format($balance['end']) !!} |
{!! Amount::format($balance['end']-$balance['start']) !!} |
@endif
@endforeach
Sum of sums |
{!! Amount::format($start) !!} |
{!! Amount::format($end) !!} |
{!! Amount::format($diff) !!} |
Income vs. expense
queryAmount);
}
foreach($groupedExpenses as $exp) {
$expenseSum += floatval($exp['queryAmount']);
}
$incomeSum = floatval($incomeSum*-1);
?>
In |
{!! Amount::format($incomeSum) !!} |
Out |
{!! Amount::format($expenseSum*-1) !!} |
Difference |
{!! Amount::format($incomeSum - $expenseSum) !!} |
Income
@foreach($groupedIncomes as $income)
queryAmount)*-1;
?>
{{{$income->name}}} |
{!! Amount::format(floatval($income->queryAmount)*-1) !!} |
@endforeach
Sum |
{!! Amount::format($sum) !!} |
Expenses
@foreach($groupedExpenses as $expense)
{{{$expense['name']}}} |
{!! Amount::format(floatval($expense['queryAmount'])*-1) !!} |
@endforeach
Sum |
{!! Amount::format($sum) !!} |
@stop
@section('scripts')
@stop