<div class="fantasy-settlement-compact-overview">
    <div class="fantasy-settlement-compact-command-row">
        {{#if overview.owner}}<button type="button" class="fantasy-settlement-command-card" data-action="openSettlementOwner" data-settlement-authority-drop="owner" data-settlement-authority-drag data-authority-entity-id="{{overview.owner.entityId}}" data-authority-entity-type="{{overview.owner.entityType}}" {{#if isGM}}draggable="true"{{/if}}><span class="nexus-entity-image is-emblem">{{#if overview.owner.imageSrc}}<img src="{{overview.owner.imageSrc}}" alt="">{{else}}<i class="fas fa-shield-halved"></i>{{/if}}</span><span><em>Owned by</em><strong>{{overview.owner.name}}</strong><small>{{overview.owner.subtitle}}</small></span></button>{{else}}<div class="fantasy-settlement-command-card is-empty" data-settlement-authority-drop="owner"><i class="fas fa-shield-halved"></i><span><em>Owned by</em><strong>No faction controls this place</strong></span></div>{{/if}}
        {{#if overview.leader}}<button type="button" class="fantasy-settlement-command-card" data-action="openSettlementLeader" data-settlement-authority-drop="leader" data-settlement-authority-drag data-authority-entity-id="{{overview.leader.entityId}}" data-authority-entity-type="npc" {{#if isGM}}draggable="true"{{/if}}><span class="nexus-entity-image is-person">{{#if overview.leader.imageSrc}}<img src="{{overview.leader.imageSrc}}" alt="">{{else}}<i class="fas fa-user"></i>{{/if}}</span><span><em>{{overview.authority.label}}</em><strong>{{overview.leader.name}}</strong><small>{{overview.leader.subtitle}}</small></span></button>{{else}}<div class="fantasy-settlement-command-card is-empty" data-settlement-authority-drop="leader"><i class="{{overview.authority.icon}}"></i><span><em>{{overview.authority.label}}</em><strong>{{overview.authority.emptyLabel}}</strong></span></div>{{/if}}
    </div>
    {{#if profileRows.length}}
    <h3 class="npc-profile-section-heading"><span><i class="fas fa-feather-pointed"></i> Information</span></h3>
    <div class="npc-profile-facts">
        {{#each profileRows}}
        <article class="npc-profile-fact {{#if multiline}}is-wide{{/if}}">
            <span>{{label}}</span>
            <strong>{{value}}</strong>
        </article>
        {{/each}}
    </div>
    {{/if}}
    <h3 class="npc-profile-section-heading"><span><i class="fas fa-coins"></i> Economy</span></h3>
    {{#if overview.trade}}<button type="button" class="fantasy-settlement-trade-summary" data-action="openSettlementTrade" data-settlement-trade-drop><span class="nexus-entity-image is-place">{{#if overview.trade.imageSrc}}<img src="{{overview.trade.imageSrc}}" alt="">{{else}}<i class="{{overview.trade.icon}}"></i>{{/if}}</span><span><em>{{overview.trade.label}}</em><strong>{{overview.trade.name}}</strong><small>{{overview.trade.subtitle}}</small></span></button>{{else}}{{#if canManageTrade}}<button type="button" class="fantasy-settlement-trade-summary" data-action="openSettlementTrade" data-settlement-trade-drop><span class="nexus-entity-image is-place"><i class="fas fa-route"></i></span><span><em>Trade position</em><strong>Manage trade network</strong><small>Drop a Location here</small></span></button>{{/if}}{{/if}}
    {{#if hasEconomy}}{{{economyHtml}}}{{else}}<div class="fantasy-settlement-empty-inline">No economy recorded.</div>{{/if}}
    <h3 class="npc-profile-section-heading"><span><i class="fas fa-store"></i> Establishments</span></h3>
    <div class="fantasy-settlement-compact-establishments">{{#each cards}}<button type="button" class="fantasy-settlement-compact-establishment" data-action="openSettlementSite" data-card-kind="{{kind}}" data-card-id="{{id}}"><span class="nexus-entity-image is-place">{{#if artSrc}}<img src="{{artSrc}}" alt="">{{else}}{{#if imageSrc}}<img src="{{imageSrc}}" alt="">{{else}}<i class="{{icon}}"></i>{{/if}}{{/if}}</span><span><strong>{{name}}</strong><small>{{subtitle}}</small></span></button>{{else}}<div class="fantasy-settlement-empty">No establishments recorded.</div>{{/each}}</div>
</div>
