@extends('layouts.default') @section('content') {!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $repeatedExpense) !!} {!! Form::model($repeatedExpense, ['class' => 'form-horizontal','id' => 'update','url' => route('repeated.update',$repeatedExpense->id)]) !!}
Mandatory fields
{!! ExpandedForm::text('name') !!} {!! ExpandedForm::select('account_id',$accounts,null,['label' => 'Save on account']) !!} {!! ExpandedForm::amount('targetamount') !!} {!! ExpandedForm::date('targetdate',null,['label' => 'First target date']) !!} {!! ExpandedForm::select('rep_length',$periods,null,['label' => 'Repeats every']) !!} {!! ExpandedForm::integer('rep_every',null,['label' => 'Skip period']) !!} {!! ExpandedForm::integer('rep_times',null,['label' => 'Repeat times']) !!}

Optional fields
{!! ExpandedForm::checkbox('remind_me','1',$preFilled['remind_me'],['label' => 'Remind me']) !!} {!! ExpandedForm::select('reminder',$periods,$preFilled['reminder'],['label' => 'Remind every']) !!}
Options
{!! ExpandedForm::optionsList('update','piggy bank') !!}
{!! Form::close() !!} @stop