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

Firefly Create a new repeated expense

Create repeated expenses to keep track of long-term planned expenses

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

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_id'),['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('targetamount', 'Target amount', ['class' => 'col-sm-4 control-label'])}}
{{Form::input('number','targetamount', Input::old('targetamount'), ['step' => 'any', 'min' => '1', 'class' => 'form-control'])}}
@if($errors->has('targetamount'))

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

@else How much money do you need to save? @endif
{{ Form::label('targetdate', 'Target date', ['class' => 'col-sm-4 control-label'])}}
@if($errors->has('targetdate'))

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

@else A deadline is needed to properly repeat this repeated expesnse. @endif
{{ Form::label('rep_every', 'Repeat every', ['class' => 'col-sm-4 control-label'])}}
@if($errors->has('rep_length'))

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

@else Something about every X years bla bla bla. @endif

Optional fields

{{ Form::label('startdate', 'Start date', ['class' => 'col-sm-4 control-label'])}}
@if($errors->has('startdate'))

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

@else This date indicates when you start(ed) saving money for this piggy bank. This field defaults to today and you should keep it on today. @endif
{{ Form::label('reminder', 'Remind you every', ['class' => 'col-sm-4 control-label'])}}
@if($errors->has('reminder'))

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

@else Enter a number and a period and Firefly will remind you to save money for this repeated expense every now and then. @endif
{{Form::close()}} @stop @section('scripts') @stop