Files
ladill-care/resources/views/partials/upgrade-banner.blade.php
T
isaaccladandCursor eb06baaa44
Deploy Ladill Care / deploy (push) Successful in 38s
Hide Care Pro upgrade banner from team members.
Only account owners with billing access see the View plans CTA.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 23:06:34 +00:00

14 lines
681 B
PHP

@php
$banner = config('care.upgrade_banner');
$canSeeBilling = \App\Support\StaffUx::showBilling(auth()->user());
@endphp
@if ($canSeeBilling && 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