Tighten Care free tier and bill Pro/Enterprise per branch.
Deploy Ladill Care / deploy (push) Successful in 29s
Deploy Ladill Care / deploy (push) Successful in 29s
Free keeps core records, appointments, and basic workflows; Pro unlocks lab, pharmacy, billing, and Queue. Both paid tiers bill per branch with unlimited branches. Enterprise adds multi-dept workflows, analytics, AI-assisted healthcare integration, and priority support (not Afia).
This commit is contained in:
@@ -52,8 +52,11 @@ class BranchController extends Controller
|
||||
->where('organization_id', $organization->id)
|
||||
->count();
|
||||
|
||||
if (! app(PlanService::class)->canAddBranch($organization, $currentCount)) {
|
||||
return back()->withInput()->with('error', 'Your plan allows one branch. Upgrade to Care Pro for unlimited branches.');
|
||||
$plans = app(PlanService::class);
|
||||
if (! $plans->canAddBranch($organization, $currentCount)) {
|
||||
return redirect()
|
||||
->route('care.pro.index')
|
||||
->with('upsell', $plans->branchLimitMessage($organization));
|
||||
}
|
||||
|
||||
$validated = $request->validate([
|
||||
|
||||
Reference in New Issue
Block a user