| 
									
										
										
										
											2015-03-01 13:39:16 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  |     <div class="modal-dialog"> | 
					
						
							| 
									
										
										
										
											2015-03-01 13:39:16 +01:00
										 |  |  |         <form style="display: inline;" id="remove" action="{{route('piggy-banks.remove',$piggyBank->id)}}" method="POST"> | 
					
						
							|  |  |  |             {!! Form::token() !!} | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  |         <div class="modal-content"> | 
					
						
							|  |  |  |             <div class="modal-header"> | 
					
						
							|  |  |  |                 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> | 
					
						
							|  |  |  |                 <h4 class="modal-title" id="myModalLabel">Remove money from {{{$piggyBank->name}}}</h4> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             <div class="modal-body"> | 
					
						
							|  |  |  |                 <p> | 
					
						
							| 
									
										
										
										
											2015-02-25 19:32:33 +01:00
										 |  |  |                     The maximum amount you can remove is {!! Amount::format($piggyBank->currentRelevantRep()->currentamount) !!} | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  |                 </p> | 
					
						
							|  |  |  |                 <div class="input-group"> | 
					
						
							|  |  |  |                     <div class="input-group-addon">€</div> | 
					
						
							|  |  |  |                     <input step="any" class="form-control" id="amount" autocomplete="off" name="amount" max="{{round($piggyBank->currentRelevantRep()->currentamount,2)}}" type="number"> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             <div class="modal-footer"> | 
					
						
							|  |  |  |                 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | 
					
						
							|  |  |  |                 <button type="submit" class="btn btn-primary">Remove</button> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2015-03-01 13:39:16 +01:00
										 |  |  |         </form> | 
					
						
							| 
									
										
										
										
											2015-02-24 21:10:25 +01:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2015-03-01 13:39:16 +01:00
										 |  |  | 
 |