{% block _config_messengerconfig_widget %}
<div class="alert alert-info mt-md" role="alert">
    {% trans with {'%link%': 'https://symfony.com/doc/5.4/messenger.html#transport-configuration' } %}mautic.messenger.config.dsn_help_general{% endtrans %}
</div>

<h4 class="fw-sb mt-48 mb-xs">{{ 'mautic.messenger.config.dsn_email'|trans }}</h4>
<div class="text-muted small pb-md">{{ 'mautic.core.config.header.messenger.email.description'|trans }}</div>
<div class="row">
    <div class="panel panel-default mb-md">
        <div class="panel-body">
            {{ form_row(form.messenger_dsn_email) }}
        </div>
    </div>
</div>

<h4 class="fw-sb mt-48 mb-xs">{{ 'mautic.messenger.config.dsn_hit'|trans }}</h4>
<div class="text-muted small pb-md">{{ 'mautic.core.config.header.messenger.hit.description'|trans }}</div>
<div class="row">
    <div class="panel panel-default mb-md">
        <div class="panel-body">
            {{ form_row(form.messenger_dsn_hit) }}
        </div>
    </div>
</div>

<div class="alert alert-info" role="alert">
    {% trans with {'%link%': 'https://symfony.com/doc/5.4/messenger.html#retries-failures' } %}mautic.messenger.config.dsn_help_retry_strategy{% endtrans %}
</div>

<h4 class="fw-sb mt-48 mb-xs">{{ 'mautic.messenger.config.retry_strategy'|trans }}</h4>
<div class="text-muted small pb-md">{{ 'mautic.core.config.header.messenger.retry.description'|trans }}</div>
<div class="row">
    <div class="panel panel-default mb-md">
        <div class="panel-body">
            <div class="row">
                <div class="col-xs-12 col-lg-3">
                    {{ form_row(form.messenger_retry_strategy_max_retries) }}
                </div>
                <div class="col-xs-12 col-lg-3">
                    {{ form_row(form.messenger_retry_strategy_delay) }}
                </div>
                <div class="col-xs-12 col-lg-3">
                    {{ form_row(form.messenger_retry_strategy_multiplier) }}
                </div>
                <div class="col-xs-12 col-lg-3">
                    {{ form_row(form.messenger_retry_strategy_max_delay) }}
                </div>
            </div>
        </div>
    </div>
</div>

<div class="alert alert-info" role="alert">
    {% trans with {'%link%': 'https://symfony.com/doc/5.4/messenger.html#saving-retrying-failed-messages' } %}mautic.messenger.config.dsn_help_failed{% endtrans %}
</div>

<h4 class="fw-sb mt-48 mb-xs">{{ 'mautic.messenger.config.dsn_failed'|trans }}</h4>
<div class="text-muted small pb-md">{{ 'mautic.core.config.header.messenger.failed.description'|trans }}</div>
<div class="row">
    <div class="panel panel-default mb-md">
        <div class="panel-body">
            {{ form_row(form.messenger_dsn_failed) }}   
        </div>
    </div>
</div>
{% endblock %}
