@extends('layouts.default') @section('content') {!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) !!}
Account | Start of month | Current balance | Spent | Earned |
---|---|---|---|---|
{{{$account->name}}} | {!! Amount::format($account->startBalance) !!} | {!! Amount::format($account->endBalance) !!} | @if($account->startBalance - $account->endBalance >= 0) {!! Amount::format($account->startBalance - $account->endBalance) !!} @endif | @if($account->startBalance - $account->endBalance < 0) {!! Amount::format(($account->startBalance - $account->endBalance)*-1) !!} @endif |
Budgets | @foreach($accounts as $account) @if($account->hide === false){{{$account->name}}} | @endif id] = 0; ?> @endforeachLeft in budget | |||
---|---|---|---|---|---|
{{{$budget['name']}}} | {!! Amount::format($budget['amount']) !!} | @foreach($accounts as $account) @if($account->hide === false) @if(isset($account->budgetInformation[$id]))@if($id == 0) {!! Amount::format($account->budgetInformation[$id]['amount']) !!} @else {!! Amount::format($account->budgetInformation[$id]['amount']) !!} @endif | budgetInformation[$id]['amount']); $accountSums[$account->id] += floatval($account->budgetInformation[$id]['amount']); ?> @else{!! Amount::format(0) !!} | @endif @endif @endforeach{!! Amount::format($budget['amount'] + $budget['spent']) !!} | {!! Amount::format($budget['amount'] + $spent) !!} |
Balanced by transfers | @foreach($accounts as $account) @if($account->hide === false){!! Amount::format($account->balancedAmount) !!} | @endif @endforeach||||
Left unbalanced | @foreach($accounts as $account) id] += $account->balancedAmount; ?> @if($account->hide === false) @if(isset($account->budgetInformation[0]))@if($account->budgetInformation[0]['amount'] + $account->balancedAmount != 0.0) {!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!} @else {!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!} @endif | @else{!! Amount::format(0) !!} | @endif @endif @endforeach|||
Sum | @foreach($accounts as $account) @if($account->hide === false){!! Amount::format($accountSums[$account->id]) !!} | @endif @endforeach||||
Expected balance | @foreach($accounts as $account) @if($account->hide === false){!! Amount::format($account->startBalance + $accountSums[$account->id]) !!} | @endif @endforeach