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

Firefly Piggy banks

Set targets and save money

Saving money is hard. Piggy banks allow you to group money from an account together. If you also set a target (and a target date) you can save towards your goals.

@if($count == 0)

Create new piggy bank

@endif
@if($count > 0)

Accounts used for piggy banks

@foreach($accounts as $account) @endforeach
Account Current balance Left for (other) piggy banks Total target
{{{$account->name}}} {{mf($account->balance)}} {{mf($account->left)}} {{mf($account->total)}}

Piggy banks

@foreach($piggybanks as $piggybank)

{{{$piggybank->name}}} {{mf($piggybank->target)}}

@if(!is_null($piggybank->targetdate))

Target date: {{$piggybank->targetdate->format('jS F Y')}}

@endif
{{$piggybank->pct}}
@endforeach

Create new piggy bank

@endif @stop @section('scripts') @stop