@php /** * The subscription-plan catalogue, as Settings → Subscription plans renders it. * * Configuration only: what each plan costs, what it allows, and — per tier — how long a new * subscriber pays nothing before that price starts. It sits with tax and currency because it is the same kind of * thing — a number the operator sets. How the catalogue is PERFORMING is a different question, read * at a different moment, and lives on its own page (admin/plans.php). * * @var array $rows plans on this page * @var array $pager pagination metadata */ @endphp
{{ t_raw('admin.plans.table_sub') }}
| {{ t_raw('admin.plans.col_plan') }} | {{ t_raw('common.price') }} | {{ t_raw('admin.plans.col_cycle') }} | {{ t_raw('admin.plans.col_max_items') }} | {{ t_raw('admin.plans.col_commission') }} | {{ t_raw('admin.plans.col_restaurants') }} | {{ t_raw('admin.plans.col_earnings') }} | {{ t_raw('common.active') }} | {{ t_raw('common.actions') }} |
|---|---|---|---|---|---|---|---|---|
| {!! plan_tag((string) $p['slug'], (string) $p['name']) !!} | {{ money($p['price']) }} | {{ status_label('billing_cycle', $p['billing_cycle']) }} | @php /* "Unlimited" is not a number the sorter can rank, so it sorts as the largest allowance there is rather than as zero. */ @endphp{!! (int) $p['max_menu_items'] === 0 ? t('admin.plans.unlimited') : number_format((int) $p['max_menu_items']) !!} | {{ $p['commission_percent'] }}% | @if ((int) $p['restaurants'] > 0) {{ number_format((int) $p['restaurants']) }} {{ t_raw('admin.plans.active_subs_sub', [':n' => number_format((int) $p['active_subs'])]) }} @else {{ t_raw('admin.plans.nobody_on_plan') }} @endif | {{ money($p['plan_earnings']) }} {{ t_raw('admin.plans.earnings_split', [':subs' => money($p['subscription_cash']), ':commission' => money($p['commission_cash'])]) }} | {!! $p['is_active'] ? t('common.yes') : t('common.no') !!} |