@php $fmt = app(\App\Services\Formatter::class); @endphp
@if ($rows->isEmpty()) @else Plan Product Monthly Annual Features Subscribers Visibility @foreach ($rows as $plan)

{{ $plan->name }} @if ($plan->is_trial) Trial @endif @if ($plan->is_featured) Featured @endif

{{ $plan->tagline }}

{{ $plan->product?->name ?? '—' }} {{ $fmt->money($plan->monthly_price) }} @if ($plan->is_trial)

{{ $plan->trial_days }} day trial

@endif {{ $fmt->money($plan->annual_price) }} @if ($plan->annualSavingPercent() > 0)

saves {{ $plan->annualSavingPercent() }}%

@endif {{ count($plan->features ?? []) }} {{ $plan->subscriptions_count }} @if (! $plan->is_active) Inactive @elseif ($plan->is_public) Public @else Private @endif @endforeach
@endif
{{-- -------------------------------------------------------------- form --}}
{{-- ---------------------------------------------------------- price --}}

Price

@php $monthly = (float) ($form['monthly_price'] ?? 0); $annual = (float) ($form['annual_price'] ?? 0); $saving = $monthly > 0 ? (int) round(100 - ($annual / ($monthly * 12) * 100)) : 0; @endphp @if ($monthly > 0 && $annual > 0)

Annual works out at {{ $fmt->money($annual / 12) }} a month — @if ($saving > 0) a {{ $saving }}% discount on paying monthly. @elseif ($saving < 0) {{ abs($saving) }}% more than paying monthly. Check the figures. @else the same as paying monthly. @endif

@endif
@if ($form['is_trial'] ?? false) @endif
{{-- ------------------------------------------------------- features --}}

What this plan unlocks

These keys come from the product's own configuration — anything not ticked is hidden inside the application, not merely unadvertised.

@if (empty($catalogue['features']))

Pick a product first. If you have picked one and still see this, the product's slug has no block in config/thinkrax.php.

@else
@foreach ($catalogue['features'] as $key => $label) @endforeach
@endif
{{-- --------------------------------------------------------- limits --}} @if (! empty($catalogue['limits']))

Caps

Leave a box empty for unlimited.

@foreach ($catalogue['limits'] as $key => $label) @endforeach
@endif {{-- ----------------------------------------------------- marketing --}}

Pricing page

Cancel Save plan