@php // No quota is enforced any more (plan doctrine): these are plain counts, // shown because an owner still wants to see how big a reseller has grown. $planFeatures = $subscription?->plan?->planFeatures(); @endphp
{{ __('Back to resellers') }}
@if ($canManage) @if ($canComp) @endif @endif
{{-- ── Subscription ── --}}
{{ __('Subscription') }} @if ($subscription)

{{ $subscription->plan?->name ?? __('Plan') }}

{{ money($subscription->price, $subscription->currency) }} / {{ __(ucfirst($subscription->billing_period)) }}
@else

{{ __('No subscription assigned.') }}

@endif
@if ($subscription)
{{ __('Current period ends') }}
{{ rf_date($subscription->current_period_end) }}
{{ __('Next charge') }}
{{ $subscription->next_charge_at ? rf_date($subscription->next_charge_at) : __('Never') }}
{{ __('Trial ends') }}
{{ rf_date($subscription->trial_ends_at) }}
{{ __('Dunning attempts') }}
{{ $subscription->dunning_attempts }}
@if ($subscription->grace_ends_at && $subscription->status === 'past_due')
{{ __('Past due — will suspend on :date unless the wallet is topped up.', ['date' => rf_date($subscription->grace_ends_at)]) }}
@endif @if ($canManage)
@if (in_array($subscription->status, ['suspended', 'cancelled', 'expired'], true)) @else @endif @if (! in_array($subscription->status, ['cancelled', 'expired'], true)) @endif
@endif @elseif ($canManage)
@endif
{{-- Charge history --}}
{{ __('Charge history') }}
@if ($canRefund)@endif @forelse ($charges as $charge) @if ($canRefund) @endif @empty @endforelse
{{ __('Period') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Charged') }}{{ __('Action') }}
{{ rf_date($charge->period_start) }} – {{ rf_date($charge->period_end) }} {{ money($charge->amount, $charge->currency) }} @php $tone = ['paid' => 'success', 'pending' => 'warning', 'failed' => 'danger', 'refunded' => 'neutral'][$charge->status] ?? 'neutral'; @endphp {{ __(ucfirst($charge->status)) }} {{ rf_date($charge->charged_at) }} @if ($charge->status === 'paid') @else — @endif
{{-- Wallet ledger tail --}}
{{ __('Recent wallet activity') }}
@forelse ($ledger as $entry) @empty @endforelse
{{ __('Type') }} {{ __('Amount') }} {{ __('Balance') }} {{ __('Date') }}
{{ __(ucfirst(str_replace('_', ' ', $entry->type))) }} {{ money($entry->amount, $entry->currency) }} {{ money($entry->balance_after, $entry->currency) }} {{ rf_datetime($entry->created_at) }}
{{-- ── Sidebar: wallet + usage vs limits ── --}}
{{ __('Wallet balance') }}
{{ money($balance, $panel->base_currency) }}

{{ __('Held in the owner panel; funds both order costs and plan charges.') }}

{{ __('Usage') }}

{{ __('Nothing here is capped — the plan is a membership, not a quota.') }}

{{ __('Clients') }} {{ number_format($usage['clients']) }}
{{ __('Domains') }} {{ number_format($usage['domains']) }}
{{ __('Orders (24h)') }} {{ number_format($usage['orders_today']) }}
{{ __('Own providers') }} {{ number_format($usage['own_providers']) }}
@if ($planFeatures)
@if ($planFeatures->ownProviders()) {{ __('Own providers') }} @else {{ __('Catalogue only') }} @endif {{ __(':on of :total modules', ['on' => $planFeatures->enabledModuleCount(), 'total' => count(\App\Support\Plans\PlanFeatures::MODULES)]) }}
@php $offModules = array_keys(array_filter($planFeatures->modules(), fn ($on) => ! $on)); @endphp @if ($offModules !== [])

{{ __('Not included:') }} {{ implode(', ', array_map(fn ($k) => __(\App\Support\Plans\PlanFeatures::MODULES[$k][1]), $offModules)) }}

@endif
@endif
{{ __('Quick links') }}
{{ __('Base currency') }}{{ $panel->base_currency }}
{{ __('Slug') }}{{ $panel->slug }}
{{ __('Status') }}{{ $panel->status ? __('Enabled') : __('Disabled') }}
{{-- ══ Modals ══ --}}
@error('assignPlanId')

{{ $message }}

@enderror

{{ __('A comped plan is free (price 0) and never charged.') }}

@error('compPlanId')

{{ $message }}

@enderror
@error('compReason')

{{ $message }}

@enderror

{{ __('Future periods bill this amount. The change is logged.') }}

@error('overridePrice')

{{ $message }}

@enderror

{{ __('Push the period end and next charge forward by N days — no charge.') }}

@error('extendDays')

{{ $message }}

@enderror