@if (array_key_exists("name", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'name', 'value' => $server->name, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("domain", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'domain', 'value' => $server->domain, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("api_key", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'api_key', 'value' => $server->api_key, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("host", Acelle\Model\SendingServer::types()[request()->type]["cols"]) && request()->type != 'sparkpost-api' && request()->type != 'mailgun-api')
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'host', 'value' => $server->host, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if ( array_key_exists("host", Acelle\Model\SendingServer::types()[request()->type]["cols"]) && request()->type == 'sparkpost-api' )
@include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'host', 'value' => $server->host, 'help_class' => 'sending_server', 'options' => Acelle\Model\SendingServerSparkPost::HOSTS, 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if ( array_key_exists("host", Acelle\Model\SendingServer::types()[request()->type]["cols"]) && request()->type == 'mailgun-api' )
@include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'host', 'value' => $server->host, 'help_class' => 'sending_server', 'options' => Acelle\Model\SendingServer::mailgunRegionSelectOptions(), 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("aws_access_key_id", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'aws_access_key_id', 'value' => $server->aws_access_key_id, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("aws_secret_access_key", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'aws_secret_access_key', 'value' => $server->aws_secret_access_key, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("aws_region", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'aws_region', 'value' => $server->aws_region, 'help_class' => 'sending_server', 'options' => Acelle\Model\SendingServer::awsRegionSelectOptions(), 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("smtp_username", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'smtp_username', 'value' => $server->smtp_username, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("smtp_password", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'smtp_password', 'value' => $server->smtp_password, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("smtp_port", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'smtp_port', 'value' => $server->smtp_port, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("smtp_protocol", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'smtp_protocol', 'value' => $server->smtp_protocol, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("sendmail_path", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'sendmail_path', 'value' => $server->sendmail_path, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("default_from_email", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'default_from_email', 'value' => $server->default_from_email, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif

{{ trans('messages.sending_quota') }}

{!! trans('messages.options.wording') !!}

@include('helpers.form_control', [ 'type' => 'text', 'class' => 'numeric', 'name' => 'quota_value', 'value' => $server->quota_value, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type), 'default_value' => '1000', ])
@include('helpers.form_control', [ 'type' => 'text', 'class' => 'numeric', 'name' => 'quota_base', 'value' => $server->quota_base, 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type), 'default_value' => '1', ])
@include('helpers.form_control', ['type' => 'select', 'name' => 'quota_unit', 'value' => $server->quota_unit, 'label' => trans('messages.quota_time_unit'), 'options' => Acelle\Model\Plan::quotaTimeUnitOptions(), 'include_blank' => trans('messages.choose'), 'help_class' => 'sending_server', 'rules' => Acelle\Model\SendingServer::rules(request()->type) ])
@if ( array_key_exists("bounce_handler_id", Acelle\Model\SendingServer::types()[request()->type]["cols"]) || array_key_exists("feedback_loop_handler_id", Acelle\Model\SendingServer::types()[request()->type]["cols"]))

{{ trans('messages.handlers') }}

@if (array_key_exists("bounce_handler_id", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@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' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif @if (array_key_exists("feedback_loop_handler_id", Acelle\Model\SendingServer::types()[request()->type]["cols"]))
@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' => Acelle\Model\SendingServer::rules(request()->type) ])
@endif
@endif
@if(Auth::user()->admin->can('test', $server)) {{ trans('messages.sending_server.test') }} @endif {{ trans('messages.cancel') }}