mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Check user is confirmed to upgrade to pro
This commit is contained in:
parent
5d1f6fd837
commit
5183e569cb
@ -61,7 +61,7 @@
|
|||||||
->value($account->company->present()->discountMessage) !!}
|
->value($account->company->present()->discountMessage) !!}
|
||||||
@endif
|
@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'))) !!}
|
{!! Former::actions( Button::info(trans('texts.plan_change'))->large()->withAttributes(['onclick' => 'showChangePlan()'])->appendIcon(Icon::create('edit'))) !!}
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
@ -82,7 +82,9 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if (Utils::isNinjaProd())
|
@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))
|
@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'))) !!}
|
{!! Former::actions( Button::success(trans('texts.white_label_button'))->large()->withAttributes(['onclick' => 'loadImages("#whiteLabelModal");$("#whiteLabelModal").modal("show");'])->appendIcon(Icon::create('plus-sign'))) !!}
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
Reference in New Issue
Block a user