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

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

{{-- The one thing that makes every mailbox on this page decorative. Said here as well as on the front page, because this is where somebody comes to find out why no mail arrived — and the test button below reports success regardless, since MailboxTester builds its own transport on purpose (a check that honoured MAIL_MAILER=log would report success while writing to a file). --}} @if (in_array(config('mail.default'), ['log', 'array', null], true)) {{ __('admin.notice.mail_not_delivering', ['mailer' => (string) (config('mail.default') ?? 'null')]) }} @endif @if (! $usable) {{ __('mail_settings.no_key') }} @endif {{-- 1. The server. One of it, so one card. --}}

{{ __('mail_settings.server_title') }}

{{ __('mail_settings.server_hint') }}

@error('encryption')

{{ $message }}

@enderror
@if (! $passwordConfirmed) {{-- The second gate. $host is the platform's outbound relay for every purpose at once — being signed in is not enough to repoint it, the same reasoning as the credentials page. --}}

{{ __('mail_settings.confirm_first') }}

{{ __('mail_settings.confirm_button') }}
@else {{ __('mail_settings.save') }} @endif
{{-- 2. The mailboxes. NO input field inside a — R20. --}}

{{ __('mail_settings.boxes_title') }}

{{-- One shared recipient field for every row's test button below — a field ABOVE the table, not one growing inside a (R20). --}}

{{ __('mail_settings.test_hint') }}

@if ($testResult) {{ $testedKey }}: @if ($testResult['ok']) {{ __('mail_settings.test_ok') }} @else {{ __('mail_settings.test_failed') }} {{ $testResult['error'] }} @endif @endif @foreach ($mailboxes as $box) @endforeach
{{ __('mail_settings.address') }} {{ __('mail_settings.last_verified') }}
{{ $box->address }} {{ $box->key }} {{ $box->last_verified_at?->local()->isoFormat('DD.MM.YYYY HH:mm') ?? __('mail_settings.never_verified') }} {{-- R18: icon beside its text, single line, size-4. Two spans swapped by wire:loading, same pattern as admin/host-create.blade.php's save button — the disabled attribute alone left an operator staring at a greyed-out button with no sign anything was happening for up to the full connect timeout. --}} {{ __('mail_settings.test') }} {{ __('mail_settings.testing') }} {{ __('mail_settings.edit') }}
{{-- 3. The mapping. One @foreach ($mailboxes as $box) @endforeach
@endforeach @error('purposes.system')

{{ $message }}

@enderror {{ __('mail_settings.save') }}