@extends('layouts.default') @section('content') {!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) !!}

Accounts
@foreach($accounts as $account) @endforeach
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) @endif id] = 0; ?> @endforeach @foreach($budgets as $id => $budget) @foreach($accounts as $account) @if($account->hide === false) @if(isset($account->budgetInformation[$id])) budgetInformation[$id]['amount']); $accountSums[$account->id] += floatval($account->budgetInformation[$id]['amount']); ?> @else @endif @endif @endforeach @endforeach @foreach($accounts as $account) @if($account->hide === false) @endif @endforeach @foreach($accounts as $account) id] += $account->balancedAmount; ?> @if($account->hide === false) @if(isset($account->budgetInformation[0])) @else @endif @endif @endforeach @foreach($accounts as $account) @if($account->hide === false) @endif @endforeach @foreach($accounts as $account) @if($account->hide === false) @endif @endforeach
Budgets {{{$account->name}}} Left in budget
{{{$budget['name']}}} {!! Amount::format($budget['amount']) !!} @if($id == 0) {!! Amount::format($account->budgetInformation[$id]['amount']) !!} @else {!! Amount::format($account->budgetInformation[$id]['amount']) !!} @endif {!! Amount::format(0) !!}{!! Amount::format($budget['amount'] + $budget['spent']) !!} {!! Amount::format($budget['amount'] + $spent) !!}
Balanced by transfers {!! Amount::format($account->balancedAmount) !!}  
Left unbalanced @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 {!! Amount::format(0) !!} 
Sum{!! Amount::format($accountSums[$account->id]) !!} 
Expected balance{!! Amount::format($account->startBalance + $accountSums[$account->id]) !!} 
@stop @section('scripts') @stop