| 
									
										
										
										
											2014-07-26 08:05:02 +02:00
										 |  |  | @extends('layouts.default') | 
					
						
							|  |  |  | @section('content') | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							|  |  |  |     <div class="col-lg-12 col-md-12 col-sm-12"> | 
					
						
							|  |  |  |         <h1>Firefly | 
					
						
							|  |  |  |             <small>Delete "{{{$account->name}}}"</small> | 
					
						
							|  |  |  |         </h1> | 
					
						
							|  |  |  |         <p class="lead"> | 
					
						
							|  |  |  |             Remember that deleting something is permanent. | 
					
						
							|  |  |  |         </p> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-07-28 14:53:04 +02:00
										 |  |  | {{Form::open(['class' => 'form-horizontal','url' => route('accounts.destroy')])}} | 
					
						
							| 
									
										
										
										
											2014-07-26 08:05:02 +02:00
										 |  |  | {{Form::hidden('id',$account->id)}} | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							| 
									
										
										
										
											2014-07-28 14:53:04 +02:00
										 |  |  |     <div class="col-lg-12 col-md-12 col-sm-12"> | 
					
						
							| 
									
										
										
										
											2014-07-26 08:05:02 +02:00
										 |  |  |         @if($account->transactions()->count() > 0) | 
					
						
							|  |  |  |         <p class="text-info"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             Account "{{{$account->name}}}" still has {{$account->transactions()->count()}} transaction(s) associated to it. | 
					
						
							|  |  |  |             These will be deleted as well. | 
					
						
							|  |  |  |         </p> | 
					
						
							|  |  |  |         @endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         <p class="text-danger"> | 
					
						
							|  |  |  |             Press "Delete permanently" If you are sure you want to delete "{{{$account->name}}}". | 
					
						
							|  |  |  |         </p> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							|  |  |  |     <div class="col-lg-6"> | 
					
						
							|  |  |  |         <div class="form-group"> | 
					
						
							|  |  |  |             <div class="col-sm-8"> | 
					
						
							|  |  |  |                 <button type="submit" class="btn btn-default btn-danger">Delete permanently</button> | 
					
						
							|  |  |  |                 <a href="{{route('accounts.index')}}" class="btn-default btn">Cancel</a> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {{Form::close()}} | 
					
						
							|  |  |  | @stop |