{{ __('Admin') }} {{ __('Add-ons') }}
{{ __('Admin · Billing & plans · Add-ons') }}

{{ __('Add-ons') }}

{{ __('À-la-carte feature packs a customer buys ON TOP of their plan — e.g. "Campaigns add-on" or "+1 WhatsApp number". Each add-on grants the feature toggles / limits you set on it, merged onto the customer\'s plan. They appear on the customer\'s Account page once they\'re on an active plan.') }}

@php $catalog = \App\Models\Package::featureCatalog(); @endphp
@forelse ($addons as $a) @php $grants = []; foreach ($catalog['capabilities'] as $k => $l) { if ((bool) ($a->{$k} ?? false)) $grants[] = $l; } foreach ($catalog['limits'] as $k => $l) { if (($a->{$k} ?? null) !== null && (int) $a->{$k} !== 0) $grants[] = '+' . (int) $a->{$k} . ' ' . $l; } @endphp @empty @endforelse
{{ __('Name') }} {{ __('Price') }} {{ __('Period') }} {{ __('Grants') }} {{ __('Status') }} {{ __('Actions') }}
{{ $a->pname }}
@if ($a->subtitle)
{{ $a->subtitle }}
@endif
{{ \App\Support\FormatSettings::currency($a->chargeableAmount()) }} {{ $a->lifetime ? __('one-time') : (($a->plan_duration ?: 1) . ' ' . ($a->plan_unit ?: 'month')) }}
@forelse (array_slice($grants, 0, 4) as $g) {{ $g }} @empty {{ __('nothing set') }} @endforelse @if (count($grants) > 4)+{{ count($grants) - 4 }}@endif
{{ $a->status ? __('Active') : __('Off') }}
{{ __('Edit') }}
@csrf
@csrf @method('DELETE')
{{ __('No add-ons yet.') }}
{{ __('Create your first add-on') }}