Add dashboard upgrade banner for free Frontdesk plans.
Deploy Ladill Frontdesk / deploy (push) Successful in 1m13s
Deploy Ladill Frontdesk / deploy (push) Successful in 1m13s
Show the Pro upsell CTA on the reception dashboard so free orgs can discover plans without opening the sidebar. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -335,4 +335,10 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'upgrade_banner' => [
|
||||||
|
'title' => 'Unlock Frontdesk Pro or Enterprise',
|
||||||
|
'description' => 'Unlimited kiosks, webhooks, iCal sync & scheduled reports — from GHS 79/mo.',
|
||||||
|
'route' => 'frontdesk.pro.index',
|
||||||
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
@include('frontdesk.partials.reception-quick-actions')
|
@include('frontdesk.partials.reception-quick-actions')
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@include('partials.upgrade-banner')
|
||||||
|
|
||||||
<div class="grid grid-cols-2 gap-4 lg:grid-cols-4">
|
<div class="grid grid-cols-2 gap-4 lg:grid-cols-4">
|
||||||
@foreach ($cards as $card)
|
@foreach ($cards as $card)
|
||||||
<a href="{{ $card['href'] }}" class="rounded-2xl border border-slate-200 bg-white p-5 transition hover:border-indigo-300 hover:shadow-sm">
|
<a href="{{ $card['href'] }}" class="rounded-2xl border border-slate-200 bg-white p-5 transition hover:border-indigo-300 hover:shadow-sm">
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
@php $banner = config('frontdesk.upgrade_banner'); @endphp
|
||||||
|
@if (empty($hasPaidPlan) && ! empty($banner))
|
||||||
|
<div class="mb-6 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
|
||||||
@@ -71,7 +71,9 @@ class FrontdeskProTest extends TestCase
|
|||||||
$this->actingAs($this->owner)
|
$this->actingAs($this->owner)
|
||||||
->get(route('frontdesk.dashboard'))
|
->get(route('frontdesk.dashboard'))
|
||||||
->assertOk()
|
->assertOk()
|
||||||
->assertSee('Upgrade to Pro');
|
->assertSee('Upgrade to Pro')
|
||||||
|
->assertSee('Unlock Frontdesk Pro or Enterprise')
|
||||||
|
->assertSee('View plans');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_subscribe_upgrades_organization(): void
|
public function test_subscribe_upgrades_organization(): void
|
||||||
|
|||||||
Reference in New Issue
Block a user