diff --git a/app/Models/Account.php b/app/Models/Account.php index e59def937753..61643b68df36 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -1085,6 +1085,11 @@ class Account extends Eloquent } } + public function isPaid() + { + return Utils::isNinja() ? $this->isPro() : Utils::isWhiteLabel(); + } + /** * @param null $plan_details * diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index e16cea901f57..3b3acb910b2b 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -305,7 +305,7 @@ $LANG = array( 'specify_colors' => 'Specify colors', 'specify_colors_label' => 'Select the colors used in the invoice', 'chart_builder' => 'Chart Builder', - 'ninja_email_footer' => 'Use :site to invoice your clients and get paid online for free!', + 'ninja_email_footer' => 'Created by :site. Create. Send. Get Paid.', 'go_pro' => 'Go Pro', 'quote' => 'Quote', 'quotes' => 'Quotes', diff --git a/resources/views/emails/design2_html.blade.php b/resources/views/emails/design2_html.blade.php index 6ff1b8db388e..f4a6e3b48414 100644 --- a/resources/views/emails/design2_html.blade.php +++ b/resources/views/emails/design2_html.blade.php @@ -63,10 +63,14 @@ @section('footer')
- {{ $account->present()->address }}
-
- @if ($account->website)
- {{ $account->website }}
+ @if (! $account->isPaid())
+ {!! trans('texts.ninja_email_footer', ['site' => link_to(NINJA_WEB_URL . '?utm_source=email_footer', APP_NAME)]) !!}
+ @else
+ {{ $account->present()->address }}
+
+ @if ($account->website)
+ {{ $account->website }}
+ @endif
@endif
- {{ $account->present()->address }}
-
- @if ($account->website)
- {{ $account->website }}
+ @if (! $account->isPaid())
+ {!! trans('texts.ninja_email_footer', ['site' => link_to(NINJA_WEB_URL . '?utm_source=email_footer', APP_NAME)]) !!}
+ @else
+ {{ $account->present()->address }}
+
+ @if ($account->website)
+ {{ $account->website }}
+ @endif
@endif