@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
