Deploy Ladill Care / deploy (push) Successful in 1m2s
Pro dashboards now pitch Enterprise instead of the Free unlock copy, and plan context is shared with the banner so Pro tenants no longer see Free messaging. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
839 B
PHP
19 lines
839 B
PHP
@php
|
|
$canSeeBilling = \App\Support\StaffUx::showBilling(auth()->user());
|
|
$plan = $planKey ?? 'free';
|
|
$banner = match ($plan) {
|
|
'pro' => config('care.upgrade_banner.pro'),
|
|
'free' => config('care.upgrade_banner.free'),
|
|
default => null,
|
|
};
|
|
@endphp
|
|
@if ($canSeeBilling && ! 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">{{ $banner['cta'] ?? 'View plans' }}</a>
|
|
</div>
|
|
@endif
|