Show 'Pro' label when on trial
This commit is contained in:
parent
eca4d7ce6a
commit
bf6fd23aea
2 changed files with 7 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue