App Store add controle for tihs app only premium ( #32w9dfh )
This commit is contained in:
parent
8e30161470
commit
e874f006f6
@ -45,7 +45,9 @@ return [
|
|||||||
'popular_this_week' => 'Popular this week',
|
'popular_this_week' => 'Popular this week',
|
||||||
'install_cloud' => 'Use on Cloud Service',
|
'install_cloud' => 'Use on Cloud Service',
|
||||||
'get_cloud' => 'Get Cloud Service',
|
'get_cloud' => 'Get Cloud Service',
|
||||||
|
'get_premium_cloud' => 'Get Premium Cloud',
|
||||||
'only_works_cloud' => 'This app only works on <strong>Cloud Service</strong>.',
|
'only_works_cloud' => 'This app only works on <strong>Cloud Service</strong>.',
|
||||||
|
'only_premium_plan' => 'This app only works on <strong>Cloud Premium Service</strong>.',
|
||||||
|
|
||||||
'about' => 'About',
|
'about' => 'About',
|
||||||
|
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
@props(['module', 'installed', 'enable'])
|
@props(['module', 'installed', 'enable'])
|
||||||
|
|
||||||
@if (in_array('onprime', $module->where_to_use))
|
@if (! empty($module->plan))
|
||||||
|
<a href="{{ $module->action_url }}" class="bg-green hover:bg-green-700 rounded-md text-white text-sm text-center w-full py-2 truncate" target="_blank">
|
||||||
|
{{ trans('modules.get_premium_cloud') }}
|
||||||
|
</a>
|
||||||
|
@elseif (in_array('onprime', $module->where_to_use))
|
||||||
@if ($installed)
|
@if ($installed)
|
||||||
@can('delete-modules-item')
|
@can('delete-modules-item')
|
||||||
<a href="{{ route('apps.app.uninstall', $module->slug) }}" class="bg-red text-white rounded-md text-sm text-center w-1/2 py-2 truncate">
|
<a href="{{ route('apps.app.uninstall', $module->slug) }}" class="bg-red text-white rounded-md text-sm text-center w-1/2 py-2 truncate">
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
@props(['module'])
|
@props(['module'])
|
||||||
|
|
||||||
|
@if (! empty($module->plan))
|
||||||
|
<div class="text-center text-sm mt-3 mb--2 bg-red-100 rounded-lg p-2 cursor-default">
|
||||||
|
<span class="text-sm text-red-700">
|
||||||
|
{!! trans('modules.only_premium_plan') !!}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
@if (in_array('onprime', $module->where_to_use))
|
@if (in_array('onprime', $module->where_to_use))
|
||||||
<div x-show="price_type == true" class="text-center text-sm mt-3 mb--2">
|
<div x-show="price_type == true" class="text-center text-sm mt-3 mb--2">
|
||||||
<span style="height: 21px;display: block;"></span>
|
<span style="height: 21px;display: block;"></span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user