Add dashboard upgrade banner for free POS plans.
Deploy Ladill POS / deploy (push) Successful in 1m0s

Highlight Pro and Business plans on the register overview for merchants on the free tier.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-30 18:13:22 +00:00
co-authored by Cursor
parent e1053746ac
commit 88e1c28aac
4 changed files with 20 additions and 0 deletions
+6
View File
@@ -29,4 +29,10 @@ return [
'max_locations' => (int) env('POS_FREE_MAX_LOCATIONS', 1),
'max_products' => (int) env('POS_FREE_MAX_PRODUCTS', 50),
],
'upgrade_banner' => [
'title' => 'Unlock POS Pro or Business',
'description' => 'Unlimited registers & catalog, stock tracking & ecosystem sync — from GHS 79/mo.',
'route' => 'pos.pro.index',
],
];
@@ -0,0 +1,10 @@
@php $banner = config('pos.upgrade_banner'); @endphp
@if (empty($hasPaidPlan) && ! empty($banner))
<div class="flex flex-col gap-3 rounded-2xl border border-indigo-200 bg-gradient-to-r from-indigo-50 to-emerald-50 px-5 py-4 sm:flex-row sm:items-center sm:justify-between">
<div>
<p class="font-semibold text-slate-900">{{ $banner['title'] }}</p>
<p class="mt-0.5 text-sm text-slate-600">{{ $banner['description'] }}</p>
</div>
<a href="{{ route($banner['route']) }}" class="btn-primary shrink-0">View plans</a>
</div>
@endif
+2
View File
@@ -12,6 +12,8 @@
])
</div>
@include('partials.upgrade-banner')
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-xs font-medium uppercase tracking-wide text-slate-400">Today's sales</p>
+2
View File
@@ -47,6 +47,8 @@ class PosRegisterTest extends TestCase
->get(route('pos.dashboard'))
->assertOk()
->assertSee('Overview')
->assertSee('Unlock POS Pro or Business')
->assertSee('View plans')
->assertSee('favicon.ico', false);
}