{{-- Redigera avsändarprofil form (#2957 slice 6c, card #3020). Included by senderprofile/edit only. Expects: $senderprofile, $domain, $dkim (public key or null). - PUT senderprofile.update with name, email (read-only, the controller ignores changes) and primary (1 when checked; unchecked clears the company's primary profile), as before. - DKIM: without a signed key a button starts the process (POST senderprofile.dkim, script in senderprofile/edit); the DNS record box (#dkim-info) shows once dkim_at is set, as before. - DELETE senderprofile.destroy in its own form, confirmed in a native dialog; the button stays disabled for the primary profile and nuhet.se addresses, as before. The old save confirmation only fired when the e-mail changed, which the read-only field rules out. --}} @php $deleteLocked = $senderprofile->isPrimarySenderProfile() || ends_with($senderprofile->email, 'nuhet.se'); $primaryChecked = old() ? (bool) old('primary') : $senderprofile->isPrimarySenderProfile(); @endphp
@csrf @method('PUT')

{{ __('senderprofile.form.dkim.label') }}

@if (is_null($senderprofile->dkim_signtable_id))
{{ __('senderprofile.form.dkim.NotSecureExplanation') }} @else
{{ __('senderprofile.nh.edit.dkimDone') }}
{{ __('senderprofile.form.dkim.secureExplanation') }} @endif
dkim_at)) hidden @endif> @if (! $senderprofile->DKIMSign)

{{ __('senderprofile.form.dkim.guide') }}

@include('senderprofile.partials.nh-copy', [ 'target' => 'dkiminfo', 'label' => __('senderprofile.nh.edit.copy'), 'copied' => __('senderprofile.dkim.copyToastrContent'), 'failed' => __('senderprofile.nh.edit.copyFailed'), ]) @endif
{{ __('senderprofile.form.primaryExplanation') }}
@include('senderprofile.partials.nh-automatic-replies') {{ __('senderprofile.form.save') }} {{ __('senderprofile.form.abort') }}
@csrf @method('DELETE')
@include('senderprofile.partials.nh-confirm', [ 'dialogId' => 'nh-senderdelete-dialog', 'title' => __('senderprofile.nh.delete.title'), 'text' => __('senderprofile.nh.delete.text'), 'cancel' => __('senderprofile.nh.delete.cancel'), 'confirm' => __('senderprofile.nh.delete.confirm'), 'danger' => true, ])