diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 947c0fcd6916..e735f868d531 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2414,6 +2414,10 @@ $LANG = array( 'item_tax1' => 'Item Tax1', 'item_tax2' => 'Item Tax2', + 'delete_company' => 'Delete Company', + 'delete_company_help' => 'Permanently delete the company along with all data and setting.', + 'delete_company_message' => 'Warning: This will permanently delete your company, there is no undo.', + ); return $LANG; diff --git a/resources/views/accounts/management.blade.php b/resources/views/accounts/management.blade.php index 099c32dbb3f0..8dd73a2be6f7 100644 --- a/resources/views/accounts/management.blade.php +++ b/resources/views/accounts/management.blade.php @@ -274,10 +274,10 @@ {!! Former::close() !!} {!! Former::open('settings/cancel_account')->addClass('cancel-account') !!} - {!! Former::actions( Button::danger(trans('texts.cancel_account'))->large()->withAttributes(['onclick' => 'showCancelConfirm()'])->appendIcon(Icon::create('trash'))) !!} + {!! Former::actions( Button::danger($account->hasMultipleAccounts() ? trans('texts.delete_company') : trans('texts.cancel_account'))->large()->withAttributes(['onclick' => 'showCancelConfirm()'])->appendIcon(Icon::create('trash'))) !!}