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