Move Branches and Team into Settings as Pro features.
Deploy Ladill Frontdesk / deploy (push) Successful in 48s
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user