{{ __('secrets.title') }}

{{ __('secrets.subtitle') }}

@if (! $usable) {{ __('secrets.no_key') }} @endif @if (! $unlocked) {{-- The second gate. Being signed in is not enough to read a payment key: the realistic threat is an unlocked machine, and a session is exactly what that hands over. --}}

{{ __('secrets.locked_title') }}

{{ __('secrets.locked_body') }}

{{ __('secrets.unlock') }}
@else

{{ __('secrets.unlocked_note') }}

@foreach ($entries as $entry)

{{ $entry['label'] }}

{{ $entry['key'] }}

{{ __('secrets.source_'.$entry['source']) }}
@if ($entry['outline'])
{{ __('secrets.stored_value') }}
{{ $entry['outline'] }}
@if ($entry['updated_at'])
{{ __('secrets.changed') }}
{{ \Illuminate\Support\Carbon::parse($entry['updated_at'])->diffForHumans() }}
@endif
@endif
@if ($entry['multiline']) {{-- A multi-line PEM key: a single-line password field would mangle it on paste. Not masked — a textarea cannot mask its content in any browser, and every other tool that accepts an SSH key (GitHub included) shows it in the clear while typing for the same reason. --}}

{{ __('secrets.ssh_private_key_hint') }}

@error('entered.'.$entry['field'])

{{ $message }}

@enderror @else @endif
{{-- Test first: a key that is saved and wrong fails later, somewhere else, usually in front of a customer. Only where this entry actually has a checker. --}} @if ($entry['testable']) {{ __('secrets.test') }} @endif {{ __('secrets.save') }} @if ($entry['source'] === 'stored') {{ __('secrets.forget') }} @endif
@endforeach @if ($check !== null)

{{ __('secrets.check_title') }}

@if (! $check['ok']) {{ __('secrets.check_'.$check['reason']) }} @else
{{ __('secrets.check_account') }}:
{{ $check['account'] }}{{ $check['business'] ? ' · '.$check['business'] : '' }}
{{ __('secrets.check_mode') }}:
{{ $check['live'] ? __('secrets.mode_live') : __('secrets.mode_test') }}{{ $check['restricted'] ? ' · '.__('secrets.mode_restricted') : '' }}
{{-- The part nobody can see from outside: a key can be perfectly valid while the endpoint listens for the wrong events, and nothing fails until a payment goes unrecorded. --}}

{{ __('secrets.check_webhooks') }}

@if ($check['webhooks'] === null)

{{ __('secrets.check_webhooks_unknown') }}

@elseif ($check['webhooks'] === []) {{ __('secrets.check_webhooks_none') }} @else @endif @endif
@endif {{ __('secrets.webhook_secret_note') }} @endif