{{ __('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
{{-- 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