Show 'Pro' label when on trial

This commit is contained in:
Hillel Coren 2016-10-31 12:59:48 +02:00
parent eca4d7ce6a
commit bf6fd23aea
2 changed files with 7 additions and 2 deletions

View File

@ -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 = [];

View File

@ -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>