@if (!$server->id)
request()->type]) }}" method="POST" class="form-validate-jqueryz"> {{ csrf_field() }} @else {{ csrf_field() }} @endif

{!! trans('messages.sending_servers.sendmail.intro') !!}

@include('helpers.form_control', [ 'type' => 'text', 'placeholder' => 'Example: /usr/bin/sendmail', 'class' => '', 'name' => 'sendmail_path', 'value' => $server->sendmail_path, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'disabled' =>($server->id && $errors->isEmpty()), ])
@if ($server->id && Auth::user()->customer->can('test', $server) && $errors->isEmpty()) {{ trans('messages.sending_server.test_connection') }} {{ trans('messages.sending_server.send_a_test_email') }} {{ trans('messages.edit') }} {{ trans('messages.cancel') }} @else {{ trans('messages.cancel') }} @endif
@if ($server->id)
{{ csrf_field() }}

{{ trans('messages.sending_servers.configuration_settings') }}

{{ trans('messages.sending_servers.configuration_settings.sendgrid.intro') }}

@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'name', 'value' => $server->name, 'help_class' => 'sending_server', 'rules' => $server->getConfigRules(), ]) @include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'default_from_email', 'value' => $server->default_from_email, 'help_class' => 'sending_server', 'rules' => $server->getConfigRules(), ]) @include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'bounce_handler_id', 'label' => trans("messages.bounce_handler"), 'value' => $server->bounce_handler_id, 'help_class' => 'sending_server', 'include_blank' => trans('messages.choose'), 'options' => Acelle\Model\BounceHandler::getSelectOptions(), 'rules' => $server->getConfigRules(), ]) @include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'feedback_loop_handler_id', 'label' => trans("messages.feedback_loop_handler"), 'value' => $server->feedback_loop_handler_id, 'help_class' => 'sending_server', 'include_blank' => trans('messages.choose'), 'options' => Acelle\Model\FeedbackLoopHandler::getSelectOptions(), 'rules' => $server->getConfigRules(), ])

{!! trans('messages.sending_servers.sending_limit.mailgun.intro') !!}

@include ('sending_servers.form._sending_limit', [ 'quotaValue' => $server->quota_value, 'quotaBase' => $server->quota_base, 'quotaUnit' => $server->quota_unit, ])

{{ trans('messages.sending_servers.sending_identity') }}

{!! trans('messages.sending_servers.local_identity.intro') !!}

@if (is_null($identities)) @include('elements._notification', [ 'level' => 'warning', 'title' => 'Error fetching identities list', 'message' => 'Please check your connection to AWS', ]) @else @foreach ($allIdentities as $domain => $attributes) @if (!is_null($attributes['UserId'])) @elseif ($attributes['VerificationStatus'] == 'Success') @else @endif @endforeach
{{ trans('messages.domain') }} {{ trans('messages.status') }} {{ trans('messages.sending_server.identity.available_for_all') }} {{ trans('messages.sending_server.identity.added_by') }} {{ trans('messages.sending_server.identity.action') }}
{{ $domain }} @if ($attributes['VerificationStatus'] == 'Success') {{ trans('messages.sending_domain_status_active') }} @else {{ trans('messages.sending_domain_status_inactive') }} @endif Private @if (checkEmail($domain)) @else @endif {{ $attributes['UserName'] }} {{ trans('messages.sending_serbers.remove_email_domain') }}
@endif

{{ trans('messages.sending_serbers.add_email_domain') }}

{{ trans('messages.sending_serbers.smtp.allow_verify.intro') }}

@include('helpers.form_control', [ 'type' => 'checkbox2', 'label' => trans('messages.allow_unverified_from_email'), 'name' => 'options[allow_unverified_from_email]', 'value' => $server->getOption('allow_unverified_from_email'), 'help_class' => 'sending_server', 'options' => ['no', 'yes'], ]) @include('helpers.form_control', [ 'type' => 'checkbox2', 'label' => trans('messages.allow_verify_domain_against_system'), 'name' => 'options[allow_verify_domain_against_acelle]', 'value' => $server->getOption('allow_verify_domain_against_acelle'), 'help_class' => 'sending_server', 'options' => ['no', 'yes'], ]) @include('helpers.form_control', [ 'type' => 'checkbox2', 'label' => trans('messages.allow_verify_email_against_system'), 'name' => 'options[allow_verify_email_against_acelle]', 'value' => $server->getOption('allow_verify_email_against_acelle'), 'help_class' => 'sending_server', 'options' => ['no', 'yes'], ])
{{ trans('messages.cancel') }}
@endif