mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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();
|
return Auth::check() && Auth::user()->isTrial();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function isPaidPro()
|
||||||
|
{
|
||||||
|
return static::isPro() && ! static::isTrial();
|
||||||
|
}
|
||||||
|
|
||||||
public static function isEnglish()
|
public static function isEnglish()
|
||||||
{
|
{
|
||||||
return App::getLocale() == 'en';
|
return App::getLocale() == 'en';
|
||||||
@ -652,7 +657,7 @@ class Utils
|
|||||||
return Utils::getYear($offset);
|
return Utils::getYear($offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getMonthOptions()
|
public static function getMonthOptions()
|
||||||
{
|
{
|
||||||
$months = [];
|
$months = [];
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading" style="color:white">
|
<div class="panel-heading" style="color:white">
|
||||||
{{ trans("texts.{$type}") }}
|
{{ trans("texts.{$type}") }}
|
||||||
@if ($type === ADVANCED_SETTINGS && !Utils::isPro())
|
@if ($type === ADVANCED_SETTINGS && ! Utils::isPaidPro())
|
||||||
<sup>{{ strtoupper(trans('texts.pro')) }}</sup>
|
<sup>{{ strtoupper(trans('texts.pro')) }}</sup>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user