{{-- One editable list: the tab strip across the lists this page edits, then the options with rename, reorder and switch off. Used by Stages and Reasons and by Sectors and Sources. Needs: $lists, $list, $options, $usage, $editingId, and optionally $hint. --}}
@foreach ($lists as $key => $label) @endforeach

{{ $lists[$list] }}

{{ $hint ?? __('Offered when an opportunity is closed this way.') }} {{ __('Records keep the option they were given, so an option is switched off rather than deleted, and renaming it renames it everywhere.') }}

@forelse ($options as $option) @empty @endforelse
{{ __('Order') }} {{ __('Option') }} {{ __('Used on') }} {{ __('Status') }} {{ __('Actions') }}
@if ($editingId === $option->id)
{{ __('Save') }} {{ __('Cancel') }} @else {{ $option->label }} @endif
{{ number_format($usage[$option->value] ?? 0) }} @if ($option->is_active) {{ __('Offered') }} @else {{ __('Switched off') }} @endif
@if ($editingId !== $option->id) @endif @if ($option->is_active) @else @endif
{{ __('Add') }} {{ __('Adding…') }}