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

Firefly Piggy bank "{{{$piggyBank->name}}}"

{{{$piggyBank->account->name}}} has a balance of {{mf($piggyBank->account->balance())}}. Of that {{mf($piggyBank->account->balance())}}, you have {{mf(0)}} not yet locked up in other piggy banks. You can add {{mf(max(0,1))}} to this piggy bank.

Piggy bank info

Field Value
Type (repeats) @if($piggyBank->repeats == 1) Repeated expense @else Piggy bank @endif
Name {{{$piggyBank->name}}} (#{{$piggyBank->id}})
Account {{{$piggyBank->account->name}}}
Target amount {{mf($piggyBank->targetamount)}}
Start date @if(is_null($piggyBank->startdate)) No start date @else {{$piggyBank->startdate->format('jS F Y')}} @endif
Target date @if(is_null($piggyBank->targetdate)) No target date @else {{$piggyBank->targetdate->format('jS F Y')}} @endif
Repeats every @if(!is_null($piggyBank->rep_length)) Every {{$piggyBank->rep_every}} {{$piggyBank->rep_length}}(s) @if(!is_null($piggyBank->rep_times)) ({{$piggyBank->rep_times}} times) @else (indefinitely) @endif @else Does not repeat @endif
Reminder @if(is_null($piggyBank->reminder)) (no reminder) @else Every {{$piggyBank->reminder_skip}} {{$piggyBank->reminder}}(s) @endif

Piggy bank instances info

@foreach($piggyBank->piggybankrepetitions()->orderBy('startdate')->get() as $rep)
Field Value
ID #{{$rep->id}}
Current amount {{mf($rep->currentamount)}}
Start date @if(is_null($rep->startdate)) No start date @else {{$rep->startdate->format('jS F Y')}} @endif
Target date @if(is_null($rep->targetdate)) No target date @else {{$rep->targetdate->format('jS F Y')}} @endif
@endforeach
@stop @section('scripts') @stop