Limit Pro to 3 branches and leave Business unlimited.
Deploy Ladill POS / deploy (push) Successful in 2m15s

Enforce plan location caps in SubscriptionService, surface upgrade
copy on plans and branch settings, and cover the limits in tests.
This commit is contained in:
isaacclad
2026-07-15 15:24:51 +00:00
parent e2b608a506
commit 5e31bdf629
7 changed files with 142 additions and 7 deletions
@@ -52,6 +52,14 @@
<p class="mt-4 rounded-xl bg-amber-50 px-4 py-3 text-sm text-amber-900">
Multi-branch POS is available on <a href="{{ route('pos.pro.index') }}" class="font-semibold underline">Pro or Business</a>.
</p>
@else
@if (! $canAddBranch)
<p class="mt-4 rounded-xl bg-amber-50 px-4 py-3 text-sm text-amber-900">
You've reached the branch limit on Pro (up to 3).
<a href="{{ route('pos.pro.index') }}" class="font-semibold underline">Upgrade to Business</a>
for unlimited locations.
</p>
@endif
@endunless
</x-settings.card>
</x-settings.page>
+2 -1
View File
@@ -61,6 +61,7 @@
<x-plan-tier-price :currency="$currency" :monthly-minor="$proPriceMinor" />
<ul class="mt-5 flex-1 space-y-2 text-sm text-slate-700">
<li>Unlimited products</li>
<li>Up to 3 locations</li>
<li>Restaurant mode</li>
<li>Catalog import</li>
</ul>
@@ -81,7 +82,7 @@
<x-plan-tier-price :currency="$currency" :monthly-minor="$enterprisePriceMinor" dark />
<ul class="mt-5 flex-1 space-y-2 text-sm text-slate-200">
<li>Everything in Pro</li>
<li>Multi-location</li>
<li>Unlimited locations</li>
<li>Advanced reporting</li>
</ul>
<div class="mt-6">
@@ -47,6 +47,14 @@
<a href="{{ route('pos.pro.index') }}" class="font-semibold underline">Pro or Business</a>.
Your account is limited to one branch.
</p>
@else
@if (! empty($canManageBranches) && ! $canAddBranch)
<p class="rounded-xl bg-amber-50 px-4 py-3 text-sm text-amber-900">
You've reached the branch limit on Pro (up to 3).
<a href="{{ route('pos.pro.index') }}" class="font-semibold underline">Upgrade to Business</a>
for unlimited locations.
</p>
@endif
@endunless
</div>
</x-settings.card>