@if ($license_error)
{{ $license_error }}
@endif
@if ($license)
@php
$admin = Auth::user()->admin;
$spportedUntil = $license->getSupportedUntil($admin->getTimezone());
if (config('custom.japan')) {
$entitlementLink = '#';
} else {
$entitlementLink = 'https://codecanyon.net/item/acelle-email-marketing-web-application/17796082';
}
if ($license->isActive()) {
$style = 'alert-success';
if ($spportedUntil) {
$title = sprintf('ACTIVE | supported until %s (%s)', $admin->formatDateTime($spportedUntil, 'date_short'), $spportedUntil->diffForHumans());
} else {
$title = '';
}
} elseif ($license->isExpired()) {
$style = 'alert-danger';
$title = trans('messages.support.expired.explanation', [
'expr' => $admin->formatDateTime($spportedUntil, 'datetime_full_with_timezone'),
'diffs' => $spportedUntil->diffForHumans()]
);
} elseif ($license->isInactive()) {
$style = 'alert-danger';
$title = '#';
} else {
// Legacy case, backward compatibility
$style = 'alert-danger';
$title = '';
}
@endphp
{{ trans('messages.license.your_license') }}
{{ trans('messages.your_current_license') }} {{ $license->getType() }}
@else
{{ trans('messages.license.your_license') }}
{{ trans('messages.license.no_license') }}
@endif
{{ trans('messages.license.license_types') }}
{!! trans('messages.license_guide') !!}
@if (!$license)
{{ trans('messages.verify_license') }}
@else
{{ trans('messages.change_license') }}
@endif
@include('helpers.form_control', [
'type' => 'text',
'name' => 'license',
'value' => (request()->license ? request()->license : ''),
'label' => trans('messages.enter_license_and_click_verify'),
'help_class' => 'setting',
'rules' => Acelle\Model\Setting::rules(),
])
@if ($license)
@else
@endif