{% set title = _args.title %}
{% set link = _args.link|default(null) %}
{% set target = _args.target|default(null) %}
{% set status = _args.status|default(null) %}
{% set subtext = _args.subtext|default(null) %}
{% set subicon = _args.subicon|default(null) %}
{% set subinfo = _args.subinfo|default(null) %}
{% set actions = _args.actions|default([])|filter((action) => action is not empty) %}
{% set modal = _args.modal|default(null) %}
{% set sidepanel = _args.sidepanel|default(null) %}
<td>
{% if link %}<a href="{{- link -}}"{% if target %} target="{{ target }}"{% endif %}{% if modal %} data-toggle="modal" data-target="#{{ modal }}"{% endif %}{% if sidepanel %} data-toggle="sidepanel"data-target="#{{ sidepanel }}"{% endif %} class="text-medium d-block">{% endif %}
<span class="text-medium d-block">{{ title }}</span>
{% if link %}</a>{% endif %}
{% if status is not empty or subtext %}
<span class="tablesub tablesub--medium">
{% if status is not empty %}
<span class="status status--{{- status -}}"></span>
{% endif %}
{% if subtext %}
<span class="tablesub__text">
<span class="status-text">{{- subtext -}}</span>
{% if subicon %}
<span class="{{ subicon }} ml-2 mr-1 text-gray-light"></span>
{% endif %}
{% if subinfo %}
<span class="sub-text">{{ subinfo }}</span>
{% endif %}
</span>
{% endif %}
</span>
{% endif %}
{% if actions is not empty %}
<span class="table__actions">
{% for action in actions %}
{% include '@ui2022/button--a.html.twig' with {
styles: 'white md',
}|merge(action) %}
{% endfor %}
</span>
{% endif %}
</td>