From e874f006f62754026258f2fd8140fcf611c6f0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sat, 25 Jun 2022 03:05:33 +0300 Subject: [PATCH] App Store add controle for tihs app only premium ( #32w9dfh ) --- resources/lang/en-GB/modules.php | 2 ++ .../views/components/layouts/modules/show/buttons.blade.php | 6 +++++- .../components/layouts/modules/show/information.blade.php | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/resources/lang/en-GB/modules.php b/resources/lang/en-GB/modules.php index 97f94c791..b3b2a5ccd 100644 --- a/resources/lang/en-GB/modules.php +++ b/resources/lang/en-GB/modules.php @@ -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 Cloud Service.', + 'only_premium_plan' => 'This app only works on Cloud Premium Service.', 'about' => 'About', diff --git a/resources/views/components/layouts/modules/show/buttons.blade.php b/resources/views/components/layouts/modules/show/buttons.blade.php index 9d11ff3fc..12c1c69f7 100644 --- a/resources/views/components/layouts/modules/show/buttons.blade.php +++ b/resources/views/components/layouts/modules/show/buttons.blade.php @@ -1,6 +1,10 @@ @props(['module', 'installed', 'enable']) -@if (in_array('onprime', $module->where_to_use)) +@if (! empty($module->plan)) + + {{ trans('modules.get_premium_cloud') }} + +@elseif (in_array('onprime', $module->where_to_use)) @if ($installed) @can('delete-modules-item') diff --git a/resources/views/components/layouts/modules/show/information.blade.php b/resources/views/components/layouts/modules/show/information.blade.php index 4f7d7d788..4a7bfdc34 100644 --- a/resources/views/components/layouts/modules/show/information.blade.php +++ b/resources/views/components/layouts/modules/show/information.blade.php @@ -1,5 +1,11 @@ @props(['module']) +@if (! empty($module->plan)) +
+ + {!! trans('modules.only_premium_plan') !!} + +
@if (in_array('onprime', $module->where_to_use))