@include('automation2._back')

{{ trans('messages.automation.outgoing_webhook') }}

{{ trans('messages.automation.action.outgoing-webhook.desc', [ 'app_name' => Acelle\Model\Setting::get('site_name'), ]) }}

@if ($httpConfig->uid != 'none')
@if ($httpConfig->request_body_type == Acelle\Model\HttpConfig::REQUEST_BODY_TYPE_KEY_VALUE && count($httpConfig->getRequestBodyParams())) @endif @if ($httpConfig->request_body_type == Acelle\Model\HttpConfig::REQUEST_BODY_TYPE_PLAIN) @endif
{{ trans('messages.webhook.request_method') }} {{ $httpConfig->request_method }}
{{ trans('messages.webhook.authorization_options') }} {{ trans('messages.webhook.' . $httpConfig->request_auth_type) }}
{{ trans('messages.webhook.endpoint_url') }} {{ $httpConfig->request_url }}
{{ trans('messages.webhook.headers') }} @if (count($httpConfig->getRequestHeaders())) @foreach ($httpConfig->getRequestHeaders() as $header) @endforeach
{{ $header['key'] ?? 'N/A' }}: {{ $header['value'] ?? 'N/A' }}
@else {{ trans('messages.webhook.no_headers') }} @endif
{{ trans('messages.webhook.unified_body_configuration') }} {{ trans('messages.webhook.' . $httpConfig->request_body_type) }}
{{ trans('messages.webhook.body_parameters') }} @if(count($httpConfig->getRequestBodyParams())) @foreach ($httpConfig->getRequestBodyParams() as $param) @endforeach
{{ $param['key'] ?? 'N/A' }}: {{ $param['value'] ?? 'N/A' }}
@endif
{{ trans('messages.webhook.plain_text') }} {!! $httpConfig->request_body_plain !!}
@if ($httpConfig->uid && $httpConfig->uid != 'none') {{ trans('messages.automation.webhook.logs') }} @endif
@else
{{ trans('messages.automation.webhook.not_setup_yet') }}
@endif

{{ trans('messages.automation.dangerous_zone') }}

{{ trans('messages.automation.action.delete.wording') }}