From c6473c77d4761718de957d3e798938e8259be492 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 29 Apr 2018 10:36:53 +0300 Subject: [PATCH] Check for pro plan for client messages --- resources/views/clients/edit.blade.php | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/resources/views/clients/edit.blade.php b/resources/views/clients/edit.blade.php index 1572556454..42124b5afa 100644 --- a/resources/views/clients/edit.blade.php +++ b/resources/views/clients/edit.blade.php @@ -204,9 +204,11 @@
  • {{ trans('texts.notes') }}
  • -
  • - {{ trans('texts.messages') }} -
  • + @if (Utils::isPro()) +
  • + {{ trans('texts.messages') }} +
  • + @endif
  • {{ trans('texts.classify') }}
  • @@ -244,13 +246,15 @@ {!! Former::textarea('public_notes')->rows(6) !!} {!! Former::textarea('private_notes')->rows(6) !!} -
    - @foreach (App\Models\Account::$customMessageTypes as $type) - {!! Former::textarea('custom_messages[' . $type . ']') - ->placeholder($account->customMessage($type)) - ->label($type) !!} - @endforeach -
    + @if (Utils::isPro()) +
    + @foreach (App\Models\Account::$customMessageTypes as $type) + {!! Former::textarea('custom_messages[' . $type . ']') + ->placeholder($account->customMessage($type)) + ->label($type) !!} + @endforeach +
    + @endif
    {!! Former::select('size_id')->addOption('','') ->fromQuery($sizes, 'name', 'id') !!}