diff --git a/app/Models/Traits/SendsEmails.php b/app/Models/Traits/SendsEmails.php index 1bf1f5052142..ab310dfe8a57 100644 --- a/app/Models/Traits/SendsEmails.php +++ b/app/Models/Traits/SendsEmails.php @@ -110,7 +110,7 @@ trait SendsEmails */ public function getEmailFooter() { - if ($this->email_footer) { + if ($this->isPro() && $this->email_footer) { // Add line breaks if HTML isn't already being used return strip_tags($this->email_footer) == $this->email_footer ? nl2br($this->email_footer) : $this->email_footer; } else { diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 2f835553b1d9..37a5b6d4c63e 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2379,7 +2379,7 @@ $LANG = array( 'freq_two_months' => 'Two months', 'freq_yearly' => 'Annually', 'profile' => 'Profile', - 'payment_type_help' => 'Sets the default payment type.', + 'payment_type_help' => 'Sets the default manual payment type.', 'industry_Construction' => 'Construction', 'your_statement' => 'Your Statement', 'statement_issued_to' => 'Statement issued to', diff --git a/resources/views/accounts/client_portal.blade.php b/resources/views/accounts/client_portal.blade.php index 027848d38e27..3849ad4815ef 100644 --- a/resources/views/accounts/client_portal.blade.php +++ b/resources/views/accounts/client_portal.blade.php @@ -38,7 +38,7 @@ {!! Former::populateField('require_invoice_signature', intval($account->require_invoice_signature)) !!} {!! Former::populateField('require_quote_signature', intval($account->require_quote_signature)) !!} -@include('accounts.nav', ['selected' => ACCOUNT_CLIENT_PORTAL]) +@include('accounts.nav', ['selected' => ACCOUNT_CLIENT_PORTAL, 'advanced' => true])
@@ -324,9 +324,11 @@
-
- {!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!} -
+@if (Auth::user()->isPro()) +
+ {!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!} +
+@endif {!! Former::close() !!} diff --git a/resources/views/accounts/details.blade.php b/resources/views/accounts/details.blade.php index d47dd2e14e92..ca551840d241 100644 --- a/resources/views/accounts/details.blade.php +++ b/resources/views/accounts/details.blade.php @@ -1,12 +1,5 @@ @extends('header') -@section('head') - @parent - - - -@stop - @section('content') @parent @@ -59,6 +52,16 @@
@endif + + {!! Former::select('size_id') + ->addOption('','') + ->fromQuery($sizes, 'name', 'id') !!} + + {!! Former::select('industry_id') + ->addOption('','') + ->fromQuery($industries, 'name', 'id') + ->help('texts.industry_help') !!} + @@ -82,63 +85,19 @@
-

{!! trans('texts.settings') !!}

+

{!! trans('texts.defaults') !!}

-
- -
-
-
+ {!! Former::select('payment_type_id') + ->addOption('','') + ->fromQuery(Cache::get('paymentTypes')->sortBy('name'), 'name', 'num_days') + ->help(trans('texts.payment_type_help')) !!} -
 
- {!! Former::select('payment_type_id') - ->addOption('','') - ->fromQuery(Cache::get('paymentTypes'), 'name', 'num_days') - ->help(trans('texts.payment_type_help')) !!} - - {!! Former::select('payment_terms') - ->addOption('','') - ->fromQuery(Cache::get('paymentTerms'), 'name', 'num_days') - ->help(trans('texts.payment_terms_help')) !!} - -
-
- -
 
- {!! Former::select('size_id') - ->addOption('','') - ->fromQuery($sizes, 'name', 'id') !!} - - {!! Former::select('industry_id') - ->addOption('','') - ->fromQuery($industries, 'name', 'id') - ->help('texts.industry_help') !!} - -
-
- -
- {!! Former::textarea('email_footer')->style('display:none')->raw() !!} -
- @include('partials/quill_toolbar', ['name' => 'signature']) - -
-
- -
-
+ {!! Former::select('payment_terms') + ->addOption('','') + ->fromQuery(Cache::get('paymentTerms'), 'name', 'num_days') + ->help(trans('texts.payment_terms_help')) !!}
@@ -159,32 +118,10 @@ +