{{-- The three things a plan tier actually decides, as badges — supply, catalogue price and address. Written ONCE and used everywhere a plan is offered (reseller billing cards, the providers upgrade page, the domains upgrade card) so a tier can never describe itself differently on two screens. Commercial language on purpose: the reseller is a customer choosing a tier, not an operator reading a feature matrix. "Catalogue at +30%" is a price; "catalog_markup_percent" is a column name. --}} @props(['features']) @php $markup = $features->catalogMarkupPercent(); $maxDomains = $features->maxCustomDomains(); // 30.000000 -> "30", 12.500000 -> "12.5": a price tag, not a decimal column. $markupLabel = rtrim(rtrim(\App\Support\Money::round($markup, 2), '0'), '.'); @endphp
@if ($features->ownProviders()) {{ __('Your own supplier') }} @else {{ __('Catalogue only') }} @endif @if ($features->hasCatalogMarkup()) {{ __('Catalogue at +:pct%', ['pct' => $markupLabel]) }} @else {{ __('Catalogue at provider price') }} @endif @if ($maxDomains === 0) {{ __('Platform subdomain only') }} @elseif ($maxDomains < 0) {{ __('Unlimited custom domains') }} @else {{ trans_choice( '{1}:count custom domain|[2,*]Up to :count custom domains', $maxDomains, ['count' => $maxDomains], ) }} @endif