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 •{' '}