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

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

@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'aws_access_key_id', 'value' => $server->aws_access_key_id, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'disabled' => ($server->id && $errors->isEmpty()), ]) @include('helpers.form_control', [ 'type' => 'password', 'class' => '', 'name' => 'aws_secret_access_key', 'value' => $server->aws_secret_access_key, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'eye' => true, 'disabled' => ($server->id && $errors->isEmpty()), ]) @include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'aws_region', 'value' => $server->aws_region, 'help_class' => 'sending_server', 'options' => Acelle\Model\SendingServer::awsRegionSelectOptions(), 'rules' => $server->getRules(), 'disabled' => ($server->id && $errors->isEmpty()), ])
@if (isset($bigNotices)) {!! implode("", $bigNotices) !!} @endif
@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.aws.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(), ])

{{ trans('messages.sending_servers.sending_limit.aws.intro') }}

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