App Store add controle for tihs app only premium ( #32w9dfh )

This commit is contained in:
Cüneyt Şentürk 2022-06-25 03:05:33 +03:00
parent 8e30161470
commit e874f006f6
3 changed files with 13 additions and 1 deletions

View File

@ -45,7 +45,9 @@ return [
'popular_this_week' => 'Popular this week',
'install_cloud' => 'Use on 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_premium_plan' => 'This app only works on <strong>Cloud Premium Service</strong>.',
'about' => 'About',

View File

@ -1,6 +1,10 @@
@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)
@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">

View File

@ -1,5 +1,11 @@
@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))
<div x-show="price_type == true" class="text-center text-sm mt-3 mb--2">
<span style="height: 21px;display: block;"></span>