@if (Acelle\Model\Plugin::isInstalled('acelle/chatgpt') && Acelle\Model\Plugin::getByName('acelle/chatgpt')->isActive())
@include('chat._email_subject', [
'name' => 'subject',
'value' => $email->subject,
])
@else
@include('helpers.form_control', ['type' => 'text',
'name' => 'subject',
'label' => trans('messages.email_subject'),
'value' => $email->subject,
'rules' => $email->rules(),
'help_class' => 'email',
'placeholder' => trans('messages.automation.email.subject.placeholder'),
'attributes' => [
'data-emojiable' => 'true',
]
])
@endif
@include('helpers.form_control', ['type' => 'text',
'name' => 'from_name',
'label' => trans('messages.from_name'),
'value' => $email->from_name,
'rules' => $email->rules(),
'help_class' => 'email',
'placeholder' => trans('messages.automation.email.from_name.placeholder'),
])
@include('helpers.form_control', [
'type' => 'autofill',
'id' => 'sender_from_input',
'name' => 'from_email',
'label' => trans('messages.from_email'),
'value' => $email->from_email,
'rules' => $email->rules(),
'help_class' => 'email',
'url' => action('SenderController@dropbox'),
'empty' => trans('messages.sender.dropbox.empty'),
'error' => trans('messages.sender.dropbox.error.' . Auth::user()->customer->allowUnverifiedFromEmailAddress(), [
'sender_link' => action('SendingDomainController@index'),
]),
'header' => trans('messages.verified_senders'),
'placeholder' => trans('messages.automation.email.from.placeholder'),
])
@include('helpers.form_control', [
'type' => 'autofill',
'id' => 'sender_reply_to_input',
'name' => 'reply_to',
'label' => trans('messages.reply_to'),
'value' => $email->reply_to,
'url' => action('SenderController@dropbox'),
'rules' => $email->rules(),
'help_class' => 'email',
'empty' => trans('messages.sender.dropbox.empty'),
'error' => trans('messages.sender.dropbox.reply.error.' . Auth::user()->customer->allowUnverifiedFromEmailAddress(), [
'sender_link' => action('SendingDomainController@index'),
]),
'header' => trans('messages.verified_senders'),
'placeholder' => trans('messages.automation.email.from.placeholder'),
])
@include('helpers.form_control', ['type' => 'checkbox3',
'name' => 'track_open',
'label' => trans('messages.automation.email.track_open'),
'value' => $email->track_open,
'options' => [false,true],
'help_class' => 'email',
'rules' => $email->rules(),
])
@include('helpers.form_control', ['type' => 'checkbox3',
'name' => 'track_click',
'label' => trans('messages.automation.email.track_click'),
'value' => $email->track_click,
'options' => [false,true],
'help_class' => 'email',
'rules' => $email->rules(),
])
@include('helpers.form_control', ['type' => 'checkbox3',
'name' => 'sign_dkim',
'label' => trans('messages.automation.email.add_sign_dkim'),
'value' => $email->sign_dkim,
'options' => [false,true],
'help_class' => 'email',
'rules' => $email->rules(),
])
@include('helpers.form_control', [
'type' => 'checkbox3',
'name' => 'custom_tracking_domain',
'label' => trans('messages.custom_tracking_domain'),
'value' => Auth::user()->customer->isCustomTrackingDomainRequired() ? true : ($email->tracking_domain_id || request()->custom_tracking_domain),
'options' => [false,true],
'help_class' => 'email',
'readonly' => Auth::user()->customer->isCustomTrackingDomainRequired(),
'rules' => $email->rules()
])
@include('helpers.form_control', [
'type' => 'select',
'name' => 'tracking_domain_uid',
'label' => '',
'value' => $email->trackingDomain? $email->trackingDomain->uid : null,
'options' => Auth::user()->customer->getVerifiedTrackingDomainOptions(),
'include_blank' => trans('messages.automation.email.select_tracking_domain'),
'help_class' => 'email',
'rules' => $email->rules()
])
@include('helpers.form_control', [
'type' => 'checkbox3',
'name' => 'skip_failed_message',
'label' => trans('messages.skip_failed_message'),
'value' => $email->skip_failed_message,
'options' => [false,true],
'help_class' => 'campaign',
'rules' => $email->rules()
])
@if ($email->template)
{{ trans('messages.webhooks') }}
{{ number_with_delimiter($email->emailWebhooks()->count()) }}
{{ trans('messages.webhooks.wording') }}
@endif