{{-- 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
@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, ])