@extends('layouts.default') @section('content') {{ Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $piggyBank) }} {{Form::model($piggyBank, ['class' => 'form-horizontal','id' => 'update','url' => route('piggy_banks.update',$piggyBank->id)])}}
Mandatory fields
{{Form::ffText('name')}} {{Form::ffSelect('account_id',$accounts,null,['label' => 'Save on account'])}} {{Form::ffAmount('targetamount')}}

Optional fields
{{Form::ffDate('targetdate')}} {{Form::ffCheckbox('remind_me','1',$preFilled['remind_me'],['label' => 'Remind me'])}} {{Form::ffSelect('reminder',$periods,$preFilled['reminder'],['label' => 'Remind every'])}}
Options
{{Form::ffOptionsList('update','piggy bank')}}
{{--

Mandatory fields

Optional fields

{{ 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 add money to this piggy bank every now and then. @endif
--}} {{Form::close()}} @stop