{%- apply spaceless -%}
  {%- if showMore is defined -%}
    <a href="{{ url('mautic_form_index', {'search': searchString}) }}" data-toggle="ajax">
        <span>{{ 'mautic.core.search.more'|trans({'%count%': remaining}) }}</span>
    </a>
  {%- else -%}
    <a href="{{ url('mautic_form_action', {'objectAction': 'view', 'objectId': item.id}) }}" data-toggle="ajax">
      <span class="fw-sb">{{- item.name -}}</span>
      <span class="ml-4 mr-sm">#{{ item.id }}</span>
        {{- include('@MauticCore/Helper/publishstatus_badge.html.twig', {
            'entity': item,
            'status': 'available',
            'simplified': 'true'
        }) -}}
      <span class="pull-right" data-toggle="tooltip" title="{{ 'mautic.form.form.resultcount'|trans }}" data-placement="left">
        <i class="ri-file-list-2-line mr-2"></i>
        {{- item.resultCount -}}
      </span>
    </a>
  {%- endif -%}
{%- endapply -%}
