<section class="tab {{tabs.members.id}} {{tabs.members.cssClass}}"
         data-tab="{{tabs.members.id}}"
         data-group="{{tabs.members.group}}">
    {{#unless isGM}}
        <div class="characters-overview minimal">
            {{#each this.characters}}
                {{#if this.isVisible}}
                    <div class="character">
                        <div class="header clickable" data-id="{{this.id}}" data-action="openActorSheet">
                            <img class="profile-img" src="{{this.img}}" style="object-fit: cover;"
                                 title="{{this.name}}" alt="{{this.name}}"/>
                            <span class="name">{{this.name}}</span>
                        </div>
                    </div>
                {{/if}}
            {{/each}}
        </div>
    {{else}}
        <div class="characters-overview">
            <table>
                <thead>
                <tr>
                    <th></th>
                    {{#each this.fields.head}}
                        <th>
                            <div class="character">
                                <div class="header clickable" data-id="{{this.id}}" data-action="openActorDocument">
                                    <img class="profile-img" src="{{this.img}}" style="object-fit: cover;"
                                         title="{{this.name}}" alt="{{this.name}}"/>
                                    <span class="name">{{this.name}}</span>
                                </div>
                                {{#if this.isLimited}}
                                    <div class="mini-attributes">
                                        {{#each this.attributes}}
                                            <div class="mini-attribute" data-actor-id="{{actor.id}}"
                                                 data-attribute="{{this.name}}" data-roll-data="{{this.value}}">
                                                <span class="value">{{this.value}}</span>
                                                <span class="name">{{this.name}}</span>
                                            </div>
                                        {{/each}}
                                    </div>
                                {{/if}}
                            </div>
                        </th>
                    {{/each}}
                </tr>
                </thead>
                <tbody>
                {{#each this.fields}}
                    {{#unless (eq @key "head")}}
                        <tr>
                            <th>
                                {{ @key}}
                            </th>

                            {{#each this}}
                                <td>
                                    {{#if (eq this "-")}}

                                    {{else}}
                                        {{#if (lt this.taw 0)}}
                                            <div class="rollable" data-actor-id="{{this.actor}}"
                                                 data-taw="{{this.taw}}"
                                                 data-name="{{this.name}}">
                                                {{this.taw}}
                                            </div>
                                        {{else}}
                                            Ja
                                        {{/if}}
                                    {{/if}}
                                </td>
                            {{/each}}

                        </tr>
                    {{/unless}}
                {{/each}}
                </tbody>
            </table>
        </div>
    {{/unless}}
</section>