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

Firefly Create a new piggy bank

Create piggy banks to make saving money easier

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.

{{Form::open(['class' => 'form-horizontal','url' => route('piggybanks.store')])}}

Mandatory fields

@if($errors->has('name'))

{{$errors->first('name')}}

@else For example: new bike, new camera @endif
{{Form::select('account_id',$accounts,Input::old('account_id') ?: Input::get('account'),['class' => 'form-control'])}} @if($errors->has('account_id'))

{{$errors->first('account_id')}}

@else Indicate on which account you've got your savings. @endif
{{ Form::label('target', 'Target amount', ['class' => 'col-sm-4 control-label'])}}
{{Form::input('number','target', Input::old('target'), ['step' => 'any', 'min' => '1', 'class' => 'form-control'])}}
@if($errors->has('target'))

{{$errors->first('target')}}

@else How much money do you need to save? @endif
If you need to save money annually (to save for taxes) use this form and fill in the fields that will appear.

Mandatory fields for repeating piggy banks

Fields be here.

Optional fields for non-repeating piggy banks

Fields be here

Optional fields for repeating piggy banks

Fields be here.
{{Form::close()}} @stop @section('scripts') @stop