From 5183e569cb5b92c3d062b226ecee0a775fc0a278 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 8 May 2017 11:44:11 +0300 Subject: [PATCH] Check user is confirmed to upgrade to pro --- resources/views/accounts/management.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/accounts/management.blade.php b/resources/views/accounts/management.blade.php index 62d614a93a..7729b354f2 100644 --- a/resources/views/accounts/management.blade.php +++ b/resources/views/accounts/management.blade.php @@ -61,7 +61,7 @@ ->value($account->company->present()->discountMessage) !!} @endif - @if (Utils::isNinjaProd()) + @if (Utils::isNinjaProd() && Auth::user()->confirmed) {!! Former::actions( Button::info(trans('texts.plan_change'))->large()->withAttributes(['onclick' => 'showChangePlan()'])->appendIcon(Icon::create('edit'))) !!} @endif @else @@ -82,7 +82,9 @@ @endif @if (Utils::isNinjaProd()) - {!! Former::actions( Button::success(trans('texts.plan_upgrade'))->large()->withAttributes(['onclick' => 'showChangePlan()'])->appendIcon(Icon::create('plus-sign'))) !!} + @if (Auth::user()->confirmed) + {!! Former::actions( Button::success(trans('texts.plan_upgrade'))->large()->withAttributes(['onclick' => 'showChangePlan()'])->appendIcon(Icon::create('plus-sign'))) !!} + @endif @elseif (!$account->hasFeature(FEATURE_WHITE_LABEL)) {!! Former::actions( Button::success(trans('texts.white_label_button'))->large()->withAttributes(['onclick' => 'loadImages("#whiteLabelModal");$("#whiteLabelModal").modal("show");'])->appendIcon(Icon::create('plus-sign'))) !!} @endif