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

Create new piggy bank

Create new repeated expense

Current piggy banks

@if($countNonRepeating == 0)

No piggy banks found.

@else @foreach($piggybanks as $piggyBank) @if($piggyBank->repeats == 0)

{{{$piggyBank->name}}}

{{mf($piggyBank->currentRelevantRep()->currentamount)}}
{{$piggyBank->currentRelevantRep()->pct()}}%
{{mf($piggyBank->targetamount)}}
@if($accounts[$piggyBank->account_id]['account']->leftOnAccount > 0) Add money @endif @if($piggyBank->currentRelevantRep()->currentamount > 0) Remove money @endif

@if(!is_null($piggyBank->targetdate)) Target date: {{$piggyBank->targetdate->format('M jS, Y')}}
@endif @if(!is_null($piggyBank->reminder)) Next reminder: {{$piggyBank->nextReminderDate()->format('M jS, Y')}} ({{$piggyBank->reminder}}) @endif

@endif @endforeach @endif

Current repeated expenses

@if($countRepeating == 0)

No repeated expenses found.

@else @foreach($piggybanks as $repeated) @if($repeated->repeats == 1)

{{{$repeated->name}}}

{{mf($repeated->currentRelevantRep()->currentamount)}}
{{$repeated->currentRelevantRep()->pct()}}%
{{mf($repeated->targetamount)}}
@if($accounts[$repeated->account_id]['account']->leftOnAccount > 0) Add money @endif @if($repeated->currentRelevantRep()->currentamount > 0) Remove money @endif
@if(!is_null($repeated->reminder)) Next reminder: {{$repeated->nextReminderDate()->format('M jS, Y')}} ({{$piggyBank->reminder}}) @endif
@endif @endforeach @endif

Account information

@foreach($accounts as $account) @endforeach
Account Left for piggy banks
{{{$account['account']->name}}} {{mf($account['left'])}}
@stop