{% for quest in farm.quests %}
<li class="quest-item{% if quest.claimed %} quest-done{% endif %}">
    <div class="quest-head"><span>{{ quest.label }}</span><span class="quest-reward">{% if quest.reward_stars %}+{{ format_exact(quest.reward_stars) }} &#9733;{% else %}+{{ format_coins(quest.reward_coins) }}{% endif %}</span></div>
    <div class="quest-bar"><span class="quest-fill" style="--quest-pct: {% if quest.goal %}{{ (100 * quest.progress / quest.goal)|round(0, 'floor') }}{% else %}0{% endif %}%"></span></div>
    <div class="quest-foot">
        <span class="quest-progress">{{ format_exact(quest.progress) }}/{{ format_exact(quest.goal) }}</span>
        {% if quest.can_claim %}
        <form method="post" action="/game/quests/claim" data-game-action="claim-quest">
            <input type="hidden" name="quest" value="{{ quest.kind }}">
            <input type="hidden" name="scope" value="{{ quest.scope }}">
            <button type="submit" class="btn btn-sm btn-primary">Claim</button>
        </form>
        {% elif quest.claimed %}
        <span class="quest-claimed">Done</span>
        {% endif %}
    </div>
</li>
{% else %}
<li class="game-lb-empty">No quests today.</li>
{% endfor %}
