Move Branches and Team into Settings as Pro features.
Deploy Ladill Frontdesk / deploy (push) Successful in 48s

Gate multi-branch and team management behind paid plans, nest their
routes under Settings, and remove them from the sidebar Administration
section.
This commit is contained in:
isaacclad
2026-07-16 08:13:42 +00:00
parent 59433f2b7b
commit 5526a10342
19 changed files with 377 additions and 50 deletions
@@ -32,6 +32,8 @@ class SettingsController extends Controller
$monthlyUsage = $usage->forOrganization($organization);
$plan = $plans->plan($organization);
$freeEmailAllowance = $plans->freeEmailsPerMonth($organization);
$member = $this->member($request);
$permissions = app(FrontdeskPermissions::class);
return view('frontdesk.settings.edit', [
'organization' => $organization,
@@ -45,6 +47,10 @@ class SettingsController extends Controller
'isPro' => $plans->isPro($organization),
'isEnterprise' => $plans->isEnterprise($organization),
'hasPaidPlan' => $plans->hasPaidPlan($organization),
'hasBranchesFeature' => $plans->hasFeature($organization, 'branches'),
'hasTeamFeature' => $plans->hasFeature($organization, 'team'),
'canViewBranches' => $permissions->can($member, 'admin.branches.view'),
'canViewTeam' => $permissions->can($member, 'admin.members.view'),
'billedBranches' => $plans->billedBranches($organization),
'activeBranchCount' => $plans->activeBranchCount($organization),
'proPriceMinor' => $plans->proPricePerBranchMinor(),