@extends('layouts.default') @section('content') {{ Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $date) }}
@foreach($accounts as $account) @endforeach
Account Start of month Current balance Spent
{{{$account->name}}} {{Amount::format($account->startBalance)}} {{Amount::format($account->endBalance)}} {{Amount::format($account->startBalance - $account->endBalance,false)}}
@foreach($accounts as $account) id] = 0; ?> @endforeach @foreach($budgets as $id => $budget) @foreach($accounts as $account) @if(isset($account->budgetInformation[$id])) budgetInformation[$id]['amount']); $accountSums[$account->id] += floatval($account->budgetInformation[$id]['amount']); ?> @else @endif @endforeach @endforeach @foreach($accounts as $account) @if(isset($account->budgetInformation[0])) @else @endif @endforeach @foreach($accounts as $account) @endforeach @foreach($accounts as $account) id] += $account->balancedAmount; ?> @if(isset($account->budgetInformation[0])) @else @endif @endforeach @foreach($accounts as $account) @endforeach @foreach($accounts as $account) @endforeach
Budgets {{{$account->name}}} Left in budget
{{{$budget['name']}}} @if($id == 0) @endif {{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)}}
Without budget {{Amount::format($account->budgetInformation[0]['amount'])}} {{Amount::format(0)}} 
Balanced by transfers {{Amount::format($account->balancedAmount)}}  
Left unbalanced {{Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount)}} {{Amount::format(0)}} 
Sum{{Amount::format($accountSums[$account->id])}} 
Expected balance{{Amount::format($account->startBalance + $accountSums[$account->id])}} 
@stop @section('scripts') {{HTML::script('assets/javascript/firefly/reports.js')}} @stop