{{-- 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
@if ($free)
{{ $free->name }}
{{ $free->formattedPrice() }}forever

{{ $free->description }}

Start free
@endif @if ($pro) @endif @if ($biz)
{{ $biz->name }}@unless($biz->is_active)Coming soon@endunless
{{ $biz->monthlyEquivalent() }}/ month, billed yearly

{{ $biz->description }}

@if ($biz->is_active) Choose Business @else @endif
@endif