Add 3-tier plans, Paystack prepaid Pro, and Enterprise contact-sales card.
Deploy Ladill Frontdesk / deploy (push) Successful in 2m46s

Sidebar settings and upgrade share one footer with consistent spacing.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-30 01:55:38 +00:00
co-authored by Cursor
parent 1f6df54d8c
commit 5be14d0982
9 changed files with 419 additions and 73 deletions
+14 -2
View File
@@ -37,16 +37,28 @@ class AppServiceProvider extends ServiceProvider
View::composer('partials.sidebar', function ($view) {
/** @var User|null $user */
$user = auth()->user();
$planKey = 'free';
$isPro = false;
$isEnterprise = false;
$hasPaidPlan = false;
if ($user) {
$organization = app(OrganizationResolver::class)->resolveForUser($user);
if ($organization) {
$isPro = app(PlanService::class)->isPro($organization);
$plans = app(PlanService::class);
$planKey = $plans->planKey($organization);
$isPro = $planKey === 'pro';
$isEnterprise = $planKey === 'enterprise';
$hasPaidPlan = $plans->hasPaidPlan($organization);
}
}
$view->with('isPro', $isPro);
$view->with([
'planKey' => $planKey,
'isPro' => $isPro,
'isEnterprise' => $isEnterprise,
'hasPaidPlan' => $hasPaidPlan,
]);
});
View::composer(['partials.topbar'], function ($view) {