diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 23e7b5710b..f03eb9e65f 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -431,9 +431,12 @@ class AccountController extends BaseController */ private function showBankAccounts() { + $account = auth()->user()->account; + return View::make('accounts.banks', [ 'title' => trans('texts.bank_accounts'), 'advanced' => ! Auth::user()->hasFeature(FEATURE_EXPENSES), + 'warnPaymentGateway' => ! $account->account_gateways->count(), ]); } diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 466d9d3fd7..8c6f7b3fb3 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2481,7 +2481,7 @@ $LANG = array( 'time_hr' => 'hr', 'time_hrs' => 'hrs', 'clear' => 'Clear', - + 'warn_payment_gateway' => 'Note: to accept online payments :link to add a payment gateway.', ); return $LANG; diff --git a/resources/views/accounts/banks.blade.php b/resources/views/accounts/banks.blade.php index bf15e3d3a1..0d46c21cd8 100644 --- a/resources/views/accounts/banks.blade.php +++ b/resources/views/accounts/banks.blade.php @@ -4,6 +4,10 @@ @parent @include('accounts.nav', ['selected' => ACCOUNT_BANKS]) +@if (isset($warnPaymentGateway) && $warnPaymentGateway) +