@extends('layouts.default') @section('content') {!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $account) !!} {!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('accounts.destroy',$account->id)]) !!}
Delete account "{{{$account->name}}}"

Are you sure that you want to delete the {{strtolower($account->accountType->type)}} "{{$account->name}}"?

@if($account->transactions()->count() > 0)

{{ucfirst($account->accountType->type)}} "{{{$account->name}}}" still has {{$account->transactions()->count()}} transaction(s) associated to it. These will be deleted as well.

@endif @if($account->piggyBanks()->count() > 0)

{{ucfirst($account->accountType->type)}} "{{{$account->name}}}" still has {{$account->piggyBanks()->count()}} piggy bank(s) associated to it. These will be deleted as well.

@endif

Cancel

{!! Form::close() !!} @stop