{% for infra in farm.infrastructure %}
<div class="perk-card">
    <span class="perk-icon" aria-hidden="true">{{ infra.icon }}</span>
    <strong class="perk-name">{{ infra.name }}</strong>
    <span class="perk-effect">{{ infra.description }}</span>
    {% if infra.owned %}
    <span class="perk-maxed">Owned</span>
    {% elif farm.prestige < infra.min_prestige %}
    <span class="perk-maxed">Requires prestige {{ infra.min_prestige }}</span>
    {% else %}
    <form method="post" action="/game/infrastructure/buy" data-game-action="infrastructure">
        <input type="hidden" name="key" value="{{ infra.key }}">
        <button type="submit" class="btn btn-sm" data-confirm="Buy {{ infra.name }} for {{ format_exact(infra.cost) }} coins?">Buy ({{ format_coins(infra.cost) }})</button>
    </form>
    {% endif %}
</div>
{% endfor %}
