| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  | @extends('layouts.default') | 
					
						
							|  |  |  | @section('content') | 
					
						
							| 
									
										
										
										
											2015-02-25 19:32:33 +01:00
										 |  |  | {!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $piggyBank) !!} | 
					
						
							|  |  |  | {!! Form::model($piggyBank, ['class' => 'form-horizontal','id' => 'update','url' => route('piggy-banks.update',$piggyBank->id)]) !!} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <input type="hidden" name="repeats" value="0" /> | 
					
						
							|  |  |  | <input type="hidden" name="id" value="{{$piggyBank->id}}" /> | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							|  |  |  |     <div class="col-lg-6 col-md-12 col-sm-6"> | 
					
						
							|  |  |  |         <div class="panel panel-primary"> | 
					
						
							|  |  |  |             <div class="panel-heading"> | 
					
						
							|  |  |  |                 <i class="fa fa-fw fa-exclamation"></i> Mandatory fields | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             <div class="panel-body"> | 
					
						
							| 
									
										
										
										
											2015-02-25 19:32:33 +01:00
										 |  |  |                 @foreach($errors->all() as $err) | 
					
						
							|  |  |  |                     {{$err}} | 
					
						
							|  |  |  |                 @endforeach | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 {!! ExpandedForm::text('name') !!} | 
					
						
							|  |  |  |                 {!! ExpandedForm::select('account_id',$accounts,null,['label' => 'Save on account']) !!} | 
					
						
							|  |  |  |                 {!! ExpandedForm::amount('targetamount') !!} | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2015-04-26 07:42:55 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  |     </div> | 
					
						
							|  |  |  |     <div class="col-lg-6 col-md-12 col-sm-12"> | 
					
						
							|  |  |  |         <!-- panel for optional fields --> | 
					
						
							|  |  |  |         <div class="panel panel-default"> | 
					
						
							|  |  |  |             <div class="panel-heading"> | 
					
						
							|  |  |  |                 <i class="fa fa-smile-o"></i> Optional fields | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             <div class="panel-body"> | 
					
						
							| 
									
										
										
										
											2015-02-25 19:32:33 +01:00
										 |  |  |                 {!! ExpandedForm::date('targetdate') !!} | 
					
						
							|  |  |  |                 {!! ExpandedForm::checkbox('remind_me','1',$preFilled['remind_me'],['label' => 'Remind me']) !!} | 
					
						
							|  |  |  |                 {!! ExpandedForm::select('reminder',$periods,$preFilled['reminder'],['label' => 'Remind every']) !!} | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         <!-- panel for options --> | 
					
						
							|  |  |  |         <div class="panel panel-default"> | 
					
						
							|  |  |  |             <div class="panel-heading"> | 
					
						
							|  |  |  |                 <i class="fa fa-bolt"></i> Options | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             <div class="panel-body"> | 
					
						
							| 
									
										
										
										
											2015-02-25 19:32:33 +01:00
										 |  |  |                 {!! ExpandedForm::optionsList('update','piggy bank') !!} | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2015-04-26 07:42:55 +02:00
										 |  |  | <div class="row"> | 
					
						
							|  |  |  |     <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | 
					
						
							|  |  |  |         <p> | 
					
						
							|  |  |  |             <button type="submit" class="btn btn-lg btn-success"> | 
					
						
							|  |  |  |                 <i class="fa fa-pencil"></i> Update piggy bank | 
					
						
							|  |  |  |             </button> | 
					
						
							|  |  |  |         </p> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-25 19:32:33 +01:00
										 |  |  | {!! Form::close() !!} | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  | @stop |