Add dashboard upgrade banner for free Care plans.
Deploy Ladill Care / deploy (push) Successful in 38s
Deploy Ladill Care / deploy (push) Successful in 38s
Surface Pro and Enterprise pricing on the healthcare dashboard for orgs still on the free tier. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -238,4 +238,10 @@ return [
|
||||
'api_key' => env('QUEUE_API_KEY_CARE'),
|
||||
],
|
||||
|
||||
'upgrade_banner' => [
|
||||
'title' => 'Unlock Care Pro or Enterprise',
|
||||
'description' => 'Unlimited branches, lab & pharmacy modules, encounter billing — from GHS 199/mo.',
|
||||
'route' => 'care.pro.index',
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
@@ -79,6 +79,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('partials.upgrade-banner')
|
||||
|
||||
<div class="grid grid-cols-2 gap-4 lg:grid-cols-5">
|
||||
@foreach ($operationalCards 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">
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
@php $banner = config('care.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
|
||||
@@ -70,7 +70,9 @@ class CareProTest extends TestCase
|
||||
$this->actingAs($this->owner)
|
||||
->get(route('care.dashboard'))
|
||||
->assertOk()
|
||||
->assertSee('Upgrade to Pro');
|
||||
->assertSee('Upgrade to Pro')
|
||||
->assertSee('Unlock Care Pro or Enterprise')
|
||||
->assertSee('View plans');
|
||||
}
|
||||
|
||||
public function test_subscribe_upgrades_organization_to_pro(): void
|
||||
|
||||
Reference in New Issue
Block a user