@extends('layouts.default') @section('content')

Budgets

@foreach($budgets as $budget)
{{{$budget->name}}}
@foreach($budget->repInfo as $repetition)

{{{$repetition['date']}}}

@if($repetition['overspent'])
{{$repetition['pct_display']}}%
@else
{{$repetition['pct_display']}}%
@endif
Budgeted {{mf($repetition['budgeted'])}}
Spent {{mf($repetition['spent'])}}
Left {{mf($repetition['left'])}}
@endforeach
@endforeach

Accounts

@foreach($accounts as $account)
{{{$account->name}}}
List of budgets with: expenses, left in budget Balance at start of month. Balance at end of month + left in all (relevant budgets)
@foreach($account->budgetInfo as $budget) @endforeach @if($sum != 0) @endif @if($sum != 0) @endif
{{$budget['budget_name']}} {{mf($budget['budgeted'])}} {{mf($budget['spent'])}} {{mf($budget['left'])}}
Sum {{mf($sum)}}
Sum (budgets only) {{mf($sumBudgets)}}
Balance {{mf(Steam::balance($account, $end))}}
@endforeach
@stop @section('scripts') @stop