Skip to content

Commit

Permalink
apps show page information section update..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Mar 21, 2023
1 parent 36011f6 commit 48d9e7f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 9 deletions.
3 changes: 2 additions & 1 deletion resources/lang/en-GB/modules.php
Expand Up @@ -34,7 +34,6 @@
'billed_once' => 'Billed Once',
'save_year' => 'You save <strong>:price</strong> a year!',
'if_paid_year' => 'Or <strong>:price/mo</strong> if paid yearly',
'information_monthly' => 'This option is valid only for <a href=":url" target="_blank" class="to-black-400 hover:bg-full-2 bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize"><strong>Cloud Service</strong></a>',
'install' => 'Install',
'buy_now' => 'Buy Now',
'get_api_key' => '<a href=":url" target="_blank" class="text-green">Click here</a> to get your API key.',
Expand All @@ -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 <a href=":url" target="_blank" class="to-black-400 hover:bg-full-2 bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize"><strong>Cloud.</strong></a>',
'information_monthly' => 'This option is valid only for <a href=":url" target="_blank" class="to-black-400 hover:bg-full-2 bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize"><strong>Cloud Service</strong></a>',
'only_works_cloud' => 'This app is available only on <strong>Cloud</strong>.',
'only_premium_plan' => 'This app is available only on <strong>Premium Cloud</strong>.',
'not_found' => 'No app found',
Expand Down
Expand Up @@ -2,21 +2,43 @@

@if (! empty($module->plan))
<div x-show="price_type == 'monthly' || price_type == 'yearly'" 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 x-show="price_type == 'monthly'" class="text-sm text-red-700">
{!! 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)
]) !!}
</span>

<span x-show="price_type == 'yearly'" class="text-sm text-red-700">
{!! 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)
]) !!}
</span>
</div>
@elseif (in_array('onprime', $module->where_to_use))
<div x-show="price_type == 'monthly'" class="text-center text-sm mt-3">
<span style="font-size: 12px;">
<span class="text-red">*</span>
{!! 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)]) !!}
<div x-show="price_type == 'monthly'" class="text-center text-sm mt-3 mb--2 bg-red-100 rounded-lg p-2 cursor-default">
<span x-show="price_type == 'monthly'" class="text-sm text-red-700">
{!! 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)
]) !!}
</span>
</div>
@else
<div x-show="price_type == 'monthly' || price_type == 'yearly'" 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_works_cloud') !!}
<span x-show="price_type == 'monthly'" class="text-sm text-red-700">
{!! 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)
]) !!}
</span>

<span x-show="price_type == 'yearly'" class="text-sm text-red-700">
{!! 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)
]) !!}
</span>
</div>
@endif

0 comments on commit 48d9e7f

Please sign in to comment.