diff --git a/public/img/modules/save30arrow3.png b/public/img/modules/save30arrow3.png new file mode 100644 index 000000000..156c72d4a Binary files /dev/null and b/public/img/modules/save30arrow3.png differ diff --git a/resources/lang/en-GB/modules.php b/resources/lang/en-GB/modules.php index 6dce6e04b..f6c10851a 100644 --- a/resources/lang/en-GB/modules.php +++ b/resources/lang/en-GB/modules.php @@ -9,13 +9,23 @@ return [ 'new' => 'New', 'top_free' => 'Top Free', 'free' => 'FREE', + 'monthly' => 'Monthly', + 'yearly' => 'Yearly', + 'yearly_pricing' => 'Yearly Pricing', + 'monthly_price' => 'from :price', + 'per_month' => 'per month', + 'billed_yearly' => 'Billed Yearly', + 'billed_monthly' => 'Billed Monthly', + '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.', 'no_apps' => 'There are no apps in this category, yet.', 'become_developer' => 'Are you a developer? Here you can learn how to create an app and start selling today!', 'recommended_apps' => 'Recommended Apps', - 'can_not_install' => 'You can not install :app app. Beacuse monthly subscription just support cloud', + 'can_not_install' => 'Monthly subscriptions are available only on Cloud service. Learn more.', 'about' => 'About', diff --git a/resources/views/modules/item/show.blade.php b/resources/views/modules/item/show.blade.php index 585d46b19..04b25061a 100644 --- a/resources/views/modules/item/show.blade.php +++ b/resources/views/modules/item/show.blade.php @@ -15,7 +15,7 @@
+
+@endif
+
+@if ($module->price != '0.0000')
+
+@endif
diff --git a/resources/views/partials/modules/show/buttons.blade.php b/resources/views/partials/modules/show/buttons.blade.php
new file mode 100644
index 000000000..5e3128876
--- /dev/null
+++ b/resources/views/partials/modules/show/buttons.blade.php
@@ -0,0 +1,51 @@
+@if ($installed)
+ @can('delete-modules-item')
+
+ {{ trans('modules.button.uninstall') }}
+
+ @endcan
+
+ @can('update-modules-item')
+ @if ($enable)
+
+ {{ trans('modules.button.disable') }}
+
+ @else
+
+ {{ trans('modules.button.enable') }}
+
+ @endif
+ @endcan
+@else
+ @can('create-modules-item')
+ @if ($module->install)
+ @if (!empty($module->isPurchase) && (!empty($module->purchase_type) && $module->purchase_type == 'monthly'))
+