@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'),['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

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