From f8c4fb0def9bc87cd07bb99daf5e4f92ff1f2573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Wed, 17 Dec 2025 17:36:52 +0100 Subject: [PATCH] add best value to yearly price --- app/Http/Middleware/HandleInertiaRequests.php | 2 +- config/subscriptions.php | 2 +- resources/js/pages/welcome.tsx | 16 +++++++--------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index 7ef00d76..9b687518 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -53,7 +53,7 @@ class HandleInertiaRequests extends Middleware 'pricing' => [ 'plans' => config('subscriptions.plans', []), 'defaultPlan' => config('subscriptions.default_plan', 'monthly'), - 'bestValuePlan' => config('subscriptions.best_value', null), + 'bestValuePlan' => config('subscriptions.best_value_plan', null), 'promo' => config('subscriptions.promo', []), ], 'sidebarOpen' => ! $request->hasCookie('sidebar_state') || $request->cookie('sidebar_state') === 'true', diff --git a/config/subscriptions.php b/config/subscriptions.php index 5207a78d..8b6064c9 100644 --- a/config/subscriptions.php +++ b/config/subscriptions.php @@ -113,7 +113,7 @@ return [ | */ - 'best_value_plan' => null, + 'best_value_plan' => 'yearly', /* |-------------------------------------------------------------------------- diff --git a/resources/js/pages/welcome.tsx b/resources/js/pages/welcome.tsx index 0695e974..ba456b5f 100644 --- a/resources/js/pages/welcome.tsx +++ b/resources/js/pages/welcome.tsx @@ -40,8 +40,6 @@ function LandingPlanCard({ plan, isDefault, isBestValue, - promoEnabled, - promoBadge, }: { plan: Plan; isDefault: boolean; @@ -68,16 +66,16 @@ function LandingPlanCard({ Best Value )} -
+

{plan.name}

- {promoEnabled && isDefault && ( -
- {promoBadge} -
- )}
@@ -519,7 +517,7 @@ export default function Welcome({
{pricing.promo.enabled && ( -

+

🎉 Get a founder discount •{' '}