Gate Care branch management behind Pro like Frontdesk.
Deploy Ladill Care / deploy (push) Successful in 1m25s

Free plans keep a single setup branch but get an upgrade screen for Branches; Pro/Enterprise unlock multi-branch management via plan features.
This commit is contained in:
isaacclad
2026-07-16 09:14:58 +00:00
parent 0181c958f5
commit 85eb04d2a3
9 changed files with 185 additions and 8 deletions
+7
View File
@@ -53,6 +53,13 @@ class PlanService
return $this->hasPaidPlan($organization);
}
public function hasFeature(Organization $organization, string $feature): bool
{
$features = config('care.plans.'.$this->planKey($organization).'.features', []);
return in_array($feature, $features, true);
}
public function activeBranchCount(Organization $organization): int
{
return Branch::query()