mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Show 'Pro' label when on trial
This commit is contained in:
parent
eca4d7ce6a
commit
bf6fd23aea
@ -163,6 +163,11 @@ class Utils
|
||||
return Auth::check() && Auth::user()->isTrial();
|
||||
}
|
||||
|
||||
public static function isPaidPro()
|
||||
{
|
||||
return static::isPro() && ! static::isTrial();
|
||||
}
|
||||
|
||||
public static function isEnglish()
|
||||
{
|
||||
return App::getLocale() == 'en';
|
||||
@ -652,7 +657,7 @@ class Utils
|
||||
return Utils::getYear($offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static function getMonthOptions()
|
||||
{
|
||||
$months = [];
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" style="color:white">
|
||||
{{ trans("texts.{$type}") }}
|
||||
@if ($type === ADVANCED_SETTINGS && !Utils::isPro())
|
||||
@if ($type === ADVANCED_SETTINGS && ! Utils::isPaidPro())
|
||||
<sup>{{ strtoupper(trans('texts.pro')) }}</sup>
|
||||
@endif
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user