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

Firefly Budgets and limits

These are your budgets and if set, their "limits". Firefly uses an "envelope system" for your budgets, which means that for each period of time (for example a month) a virtual "envelope" can be created containing a certain amount of money. Money spent within a budget is removed from the envelope.

Group by date Create a limit

@foreach($budgets as $budget) @endforeach
Budget Current envelope(s)  
{{{$budget->name}}}
Envelope
Left
@foreach($budget->limits as $limit) @foreach($limit->limitrepetitions as $index => $rep)
{{mf($rep->amount,false)}}
@if($rep->left() < 0) {{mf($rep->left(),false)}} @else {{mf($rep->left(),false)}} @endif
@if($limit->repeat_freq == 'monthly') {{$rep->startdate->format('F Y')}} @else NO FORMAT @endif
@if($limit->repeats == 1)
auto repeats
@endif
@if($limit->repeats == 0 || ($limit->repeats == 1 && $index == 0)) @endif
@endforeach @endforeach

Add another limit

@stop