@include('helpers.form_control', ['type' => 'text',
'name' => 'name',
'label' => trans('messages.name_your_campaign'),
'value' => $campaign->name,
'rules' => $rules,
'help_class' => 'campaign'
])
@if (Acelle\Model\Plugin::isInstalled('acelle/chatgpt') && Acelle\Model\Plugin::getByName('acelle/chatgpt')->isActive())
@include('chat._email_subject', [
'name' => 'subject',
'label' => trans('messages.email_subject'),
'value' => $campaign->subject,
])
@else
@include('helpers.form_control', ['type' => 'text',
'name' => 'subject',
'label' => trans('messages.email_subject'),
'value' => $campaign->subject,
'rules' => $rules,
'help_class' => 'campaign',
'attributes' => [
'data-emojiable' => 'true',
]
])
@endif
@include('helpers.form_control', ['type' => 'text',
'name' => 'from_name',
'label' => trans('messages.from_name'),
'value' => $campaign->from_name,
'rules' => $rules,
'help_class' => 'campaign'
])
@include('helpers.form_control', [
'type' => 'autofill',
'id' => 'sender_from_input',
'name' => 'from_email',
'label' => trans('messages.from_email'),
'value' => $campaign->from_email,
'rules' => $rules,
'help_class' => 'campaign',
'url' => action('SenderController@dropbox'),
'empty' => trans('messages.sender.dropbox.empty'),
'error' => trans('messages.sender.dropbox.error.' . Auth::user()->customer->allowUnverifiedFromEmailAddress(), [
'sender_link' => action('SenderController@index'),
]),
'header' => trans('messages.verified_senders'),
])
@include('helpers.form_control', ['type' => 'checkbox2',
'name' => 'use_default_sending_server_from_email',
'label' => trans('messages.use_sending_server_default_value'),
'value' => $campaign->use_default_sending_server_from_email,
'rules' => $rules,
'help_class' => 'campaign',
'options' => ['0','1'],
])
@include('helpers.form_control', [
'type' => 'autofill',
'id' => 'sender_reply_to_input',
'name' => 'reply_to',
'label' => trans('messages.reply_to'),
'value' => $campaign->reply_to,
'url' => action('SenderController@dropbox'),
'rules' => $campaign->rules(),
'help_class' => 'campaign',
'empty' => trans('messages.sender.dropbox.empty'),
'error' => trans('messages.sender.dropbox.reply.error.' . Auth::user()->customer->allowUnverifiedFromEmailAddress(), [
'sender_link' => action('SenderController@index'),
]),
'header' => trans('messages.verified_senders'),
])
@if ($campaign->type != 'plain-text')
@include('helpers.form_control', ['type' => 'checkbox',
'name' => 'track_open',
'label' => trans('messages.track_opens'),
'value' => $campaign->track_open,
'options' => [false,true],
'help_class' => 'campaign',
'rules' => $rules
])
@include('helpers.form_control', ['type' => 'checkbox',
'name' => 'track_click',
'label' => trans('messages.track_clicks'),
'value' => $campaign->track_click,
'options' => [false,true],
'help_class' => 'campaign',
'rules' => $rules
])
@endif
@include('helpers.form_control', ['type' => 'checkbox',
'name' => 'sign_dkim',
'label' => trans('messages.sign_dkim'),
'value' => $campaign->sign_dkim,
'options' => [false,true],
'help_class' => 'campaign',
'rules' => $rules
])
@include('helpers.form_control', [
'type' => 'checkbox',
'name' => 'custom_tracking_domain',
'label' => trans('messages.custom_tracking_domain'),
'value' => Auth::user()->customer->isCustomTrackingDomainRequired() ? true : $campaign->tracking_domain_id,
'options' => [false,true],
'help_class' => 'campaign',
'rules' => $rules
])
@include('helpers.form_control', [
'type' => 'select',
'name' => 'tracking_domain_uid',
'label' => '',
'value' => $campaign->trackingDomain? $campaign->trackingDomain->uid : null,
'options' => Auth::user()->customer->getVerifiedTrackingDomainOptions(),
'include_blank' => trans('messages.campaign.select_tracking_domain'),
'help_class' => 'campaign',
'rules' => $rules
])
@include('helpers.form_control', [
'type' => 'checkbox',
'name' => 'skip_failed_message',
'label' => trans('messages.skip_failed_message'),
'value' => $campaign->skip_failed_message,
'options' => [false,true],
'help_class' => 'campaign',
'rules' => $rules
])
@if ($campaign->type == 'plain-text')
{!! trans('messages.campaign.plain_text.open_click_tracking_wanring') !!}
@endif
@if ($campaign->template)
{{ trans('messages.webhooks') }}
{{ number_with_delimiter($campaign->campaignWebhooks()->count()) }}
{{ trans('messages.webhooks.wording') }}
@endif