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

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

@include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'host', 'value' => $server->host, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'disabled' =>($server->id && $errors->isEmpty()), ]) @include('helpers.form_control', [ 'type' => 'password', 'class' => '', 'name' => 'api_key', 'value' => $server->api_key, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'eye' => true, 'disabled' =>($server->id && $errors->isEmpty()), ]) @include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'host', 'value' => $server->host, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'disabled' =>($server->id && $errors->isEmpty()), ]) @include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'smtp_username', 'value' => $server->smtp_username, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'disabled' =>($server->id && $errors->isEmpty()), ]) @include('helpers.form_control', [ 'type' => 'password', 'class' => '', 'name' => 'smtp_password', 'value' => $server->smtp_password, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'eye' => true, 'disabled' =>($server->id && $errors->isEmpty()), ]) @include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'smtp_port', 'value' => $server->smtp_port, 'help_class' => 'sending_server', 'rules' => $server->getRules(), 'disabled' =>($server->id && $errors->isEmpty()), ]) @include('helpers.form_control', [ 'type' => 'text', 'class' => '', 'name' => 'smtp_protocol', 'value' => $server->smtp_protocol, '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.sparkpost.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.sparkpost.intro') !!}

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