{{ __('admin.nav.customers') }}

{{ __('admin.customers_sub') }}

@forelse ($rows as $r) @empty @endforelse
{{ __('admin.col.customer') }} {{ __('admin.col.plan') }} {{ __('admin.col.mrr') }} {{ __('admin.col.status') }} {{ __('admin.col.actions') }}
{{-- The row leads somewhere now. The list was the end of the road: an operator answering a question had the name here and the mail client in another window. --}} {{ $r['name'] }}

{{ $r['instance'] }}.clupilot.com

{{ $r['plan'] }} @if ($r['granted']) {{ __('admin.granted_badge') }} @endif @if ($r['pending_change']) {{-- Booked, not yet landed. Said on the row that answers "what is this customer on", because that is where the question is asked. --}}

{{ __('admin.pending_change', ['plan' => $r['pending_change']['plan'], 'date' => $r['pending_change']['at']]) }}

@endif
{{ $r['mrr'] }} {{ __('admin.status.'.$r['status']) }}
@unless ($r['closed']) @endunless @if (auth()->user()?->can('customers.grant_plan')) @endif {{-- A withdrawal that came in by telephone or by post. Only where the window is genuinely open — an operator offered a button that would be refused is an operator who promises a customer something we then take back. --}} @if ($r['withdrawal_open'] && auth()->user()?->can('customers.manage')) @endif {{-- Impersonation borrows the customer's PORTAL session; this is administrator access to their Nextcloud itself. Two different things, so two buttons. --}} @if ($r['instance_uuid'] && auth()->user()?->can('instances.adminlogin')) @endif
@csrf
{{ __('admin.customers_empty') }}

{{ __('admin.by_plan') }}