{{-- Three plan cards (design: Pricing). $plans grouped by tier; $interval 'yearly'|'monthly'. --}} @php $pick = fn ($tier) => ($plans[$tier] ?? collect())->firstWhere('billing_interval', \App\Enums\BillingInterval::Yearly) ?? ($plans[$tier] ?? collect())->first(); $free = $pick('free'); $pro = $pick('pro'); $biz = $pick('business'); $proMonthly = ($plans['pro'] ?? collect())->firstWhere('billing_interval', \App\Enums\BillingInterval::Monthly); $bizMonthly = ($plans['business'] ?? collect())->firstWhere('billing_interval', \App\Enums\BillingInterval::Monthly); @endphp
{{ $free->description }}
Start free{{ $pro->description }}
Upgrade to Pro{{ $biz->description }}
@if ($biz->is_active) Choose Business @else @endif