From 48d9e7fd6416dde4947f47d8be8d951d34f9935c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 21 Mar 2023 14:49:39 +0300 Subject: [PATCH] apps show page information section update.. --- resources/lang/en-GB/modules.php | 3 +- .../modules/show/information.blade.php | 38 +++++++++++++++---- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/resources/lang/en-GB/modules.php b/resources/lang/en-GB/modules.php index b6ac0024d88..6ba02361c1c 100644 --- a/resources/lang/en-GB/modules.php +++ b/resources/lang/en-GB/modules.php @@ -34,7 +34,6 @@ 'billed_once' => 'Billed Once', 'save_year' => 'You save :price a year!', 'if_paid_year' => 'Or :price/mo if paid yearly', - 'information_monthly' => 'This option is valid only for Cloud Service', 'install' => 'Install', 'buy_now' => 'Buy Now', 'get_api_key' => 'Click here to get your API key.', @@ -50,6 +49,8 @@ 'get_premium_cloud' => 'Get Premium Cloud', 'switch_to_cloud' => 'Switch to Cloud', 'hosted_on_akaunting' => 'Hosted on akaunting.com', + 'information_on_preme' => ':period option is available only on Cloud.', + 'information_monthly' => 'This option is valid only for Cloud Service', 'only_works_cloud' => 'This app is available only on Cloud.', 'only_premium_plan' => 'This app is available only on Premium Cloud.', 'not_found' => 'No app found', diff --git a/resources/views/components/layouts/modules/show/information.blade.php b/resources/views/components/layouts/modules/show/information.blade.php index c1281fd8983..8cf72be253e 100644 --- a/resources/views/components/layouts/modules/show/information.blade.php +++ b/resources/views/components/layouts/modules/show/information.blade.php @@ -2,21 +2,43 @@ @if (! empty($module->plan))
- - {!! trans('modules.only_premium_plan') !!} + + {!! trans('modules.information_on_preme', [ + 'period' => trans('modules.monthly'), + 'url' => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) + ]) !!} + + + + {!! trans('modules.information_on_preme', [ + 'period' => trans('modules.yearly'), + 'url' => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) + ]) !!}
@elseif (in_array('onprime', $module->where_to_use)) -
- - * - {!! trans('modules.information_monthly', ['url' => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug)]) !!} +
+ + {!! trans('modules.information_on_preme', [ + 'period' => trans('modules.monthly'), + 'url' => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) + ]) !!}
@else
- - {!! trans('modules.only_works_cloud') !!} + + {!! trans('modules.information_on_preme', [ + 'period' => trans('modules.monthly'), + 'url' => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) + ]) !!} + + + + {!! trans('modules.information_on_preme', [ + 'period' => trans('modules.yearly'), + 'url' => 'https://akaunting.com/features/why-akaunting-cloud?utm_source=software&utm_medium=app_show&utm_campaign=' . str_replace('-', '_', $module->slug) + ]) !!}
@endif