{#
  Variables
    - lead
    - integrations
#}
{% if integrations is empty %}
  {{ include('@MauticCore/Helper/no_information.html.twig', {'tip': 'mautic.lead.integrations.header'}) }}
{% else %}
  <div class="row">
    {% for details in integrations %}
      {{ cycle(['', '</div><div class="row">'], loop.index0) }}
      <div class="col-md-6">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">
              {% if details.link is defined %}
                <a href="{{ details.link }}" class="pull-right"><i class="ri-external-link-line"></i></a>
              {% endif %}
              {{ details.integration }}
            </h3>
          </div>
          <div class="panel-body">
            <dl class="dl-horizontal">
              <dt>{{ 'mautic.integration.object'|trans }}</dt><dd>{{ details.integration_entity }}</dd>
              <dt>{{ 'mautic.integration.object_id'|trans }}</dt><dd>{{ details.integration_entity_id }}</dd>
              <dt>{{ 'mautic.core.date.added'|trans }}</dt><dd>{{ dateToText(details.date_added, 'UTC', 'Y-m-d H:i:s', true) }}</dd>
              <dt>{{ 'mautic.integration.last_sync_date'|trans }}</dt><dd>{{ dateToText(details.last_sync_date, 'UTC', 'Y-m-d H:i:s', true) }}</dd>
            </dl>
          </div>
        </div>
      </div>
    {% endfor %}
  </div>
{% endif %}
