settings, 'plan', 'free'); } public function isPro(Organization $organization): bool { return $this->plan($organization) === 'pro'; } public function maxBranches(Organization $organization): ?int { $plan = config('care.plans.'.$this->plan($organization)); return $plan['max_branches'] ?? null; } public function canAddBranch(Organization $organization, int $currentCount): bool { $max = $this->maxBranches($organization); return $max === null || $currentCount < $max; } public function proPriceMinor(): int { return (int) config('care.plans.pro.price_minor', 15000); } }