@php $stateMeta = [ 'active' => ['label' => __('Paused now'), 'color' => 'amber'], 'scheduled' => ['label' => __('Scheduled'), 'color' => 'sky'], 'finished' => ['label' => __('Finished'), 'color' => 'slate'], ]; @endphp

{{ __('Commission pauses') }}

{{ __('While paused, no commission is earned on any plan or pool. Ending a pause applies from that day forward; nothing is back-paid.') }}

@if ($canManage) {{ __('Pause commission') }} @endif
@if ($current)
@if ($current['pause']->ends_on) {{ __('Commission paused from :from to :to.', ['from' => $current['pause']->starts_on->format('j M Y'), 'to' => $current['pause']->ends_on->format('j M Y')]) }} @else {{ __('Commission paused from :from until a director ends it.', ['from' => $current['pause']->starts_on->format('j M Y')]) }} @endif
@endif
@if ($canManage) @endif @forelse ($rows as $row) @php($p = $row['pause']) @if ($canManage) @endif @empty @endforelse
{{ __('From') }} {{ __('To') }} {{ __('Reason') }} {{ __('Set by') }} {{ __('Status') }}{{ __('Actions') }}
{{ $p->starts_on->format('j M Y') }} {{ $p->ends_on?->format('j M Y') ?? __('Until ended') }} {{ $p->reason }} {{ $p->creator?->name ?? __('Not available') }} @if ($p->endedBy) {{ __('Ended by :name', ['name' => $p->endedBy->name]) }} @endif {{ $stateMeta[$row['state']]['label'] }}
@if ($row['state'] !== 'finished') @endif @if ($row['state'] === 'scheduled') @endif
@if ($canManage) {{ __('Pause commission for :name', ['name' => $profile->user?->name]) }}

{{ __('No commission is earned on any day inside the pause, on any plan or pool. A pause starts today or later; commission already earned is never changed.') }}

{{ __('Leave blank to pause until a director ends it.') }}

{{ __('Cancel') }} {{ __('Pause commission') }} {{ __('Saving…') }}
{{ __('End the pause') }}

{{ __('Commission is earned again from this day. Days already paused stay paused, so nothing is back-paid.') }}

{{ __('Cancel') }} {{ __('Save') }} {{ __('Saving…') }}
@endif