diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php
index 76344f431ecd..386cfa6bdee1 100644
--- a/resources/lang/en/texts.php
+++ b/resources/lang/en/texts.php
@@ -851,6 +851,7 @@ $LANG = array(
'dark' => 'Dark',
'industry_help' => 'Used to provide comparisons against the averages of companies of similar size and industry.',
'subdomain_help' => 'Set the subdomain or display the invoice on your own website.',
+ 'website_help' => 'Display the invoice in an iFrame on your own website',
'invoice_number_help' => 'Specify a prefix or use a custom pattern to dynamically set the invoice number.',
'quote_number_help' => 'Specify a prefix or use a custom pattern to dynamically set the quote number.',
'custom_client_fields_helps' => 'Add a field when creating a client and display the label and value on the PDF.',
diff --git a/resources/views/accounts/client_portal.blade.php b/resources/views/accounts/client_portal.blade.php
index dc9e4d491b73..6cd7da575101 100644
--- a/resources/views/accounts/client_portal.blade.php
+++ b/resources/views/accounts/client_portal.blade.php
@@ -51,12 +51,10 @@
- @if (Utils::isNinja())
- @if (! Utils::isReseller())
+ @if (Utils::isNinja() && ! Utils::isReseller())
{!! Former::inline_radios('domain_id')
->label(trans('texts.domain'))
->radios([
@@ -80,36 +77,38 @@
->help($account->iframe_url ? 'domain_help_website' : 'domain_help') !!}
@endif
- {!! Former::inline_radios('custom_invoice_link')
- ->onchange('onCustomLinkChange()')
- ->label(trans('texts.customize'))
- ->radios([
- trans('texts.subdomain') => ['value' => 'subdomain', 'name' => 'custom_link'],
- trans('texts.website') => ['value' => 'website', 'name' => 'custom_link'],
- ])->check($account->iframe_url ? 'website' : 'subdomain') !!}
- {{ Former::setOption('capitalize_translations', false) }}
+ @if (Utils::isNinja())
- {!! Former::text('subdomain')
- ->placeholder(Utils::isNinja() ? 'app' : trans('texts.www'))
- ->onchange('onSubdomainChange()')
- ->addGroupClass('subdomain')
- ->label(' ')
- ->help(trans('texts.subdomain_help')) !!}
+ {!! Former::inline_radios('custom_invoice_link')
+ ->onchange('onCustomLinkChange()')
+ ->label(trans('texts.customize'))
+ ->radios([
+ trans('texts.subdomain') => ['value' => 'subdomain', 'name' => 'custom_link'],
+ trans('texts.website') => ['value' => 'website', 'name' => 'custom_link'],
+ ])->check($account->iframe_url ? 'website' : 'subdomain') !!}
+ {{ Former::setOption('capitalize_translations', false) }}
+
+ {!! Former::text('subdomain')
+ ->placeholder(Utils::isNinja() ? 'app' : trans('texts.www'))
+ ->onchange('onSubdomainChange()')
+ ->addGroupClass('subdomain')
+ ->label(' ')
+ ->help(trans('texts.subdomain_help')) !!}
+ @endif
{!! Former::text('iframe_url')
->placeholder('https://www.example.com/invoice')
->appendIcon('question-sign')
->addGroupClass('iframe_url')
- ->label(' ')
- ->help(trans('texts.subdomain_help')) !!}
+ ->label(Utils::isNinja() ? ' ' : trans('texts.website'))
+ ->help(trans(Utils::isNinja() ? 'texts.subdomain_help' : 'texts.website_help')) !!}
{!! Former::plaintext('preview')
->value($account->getSampleLink()) !!}
- @endif
-
+
{!! Former::checkbox('enable_client_portal')