{tileMembers} members
{tilePts} points this week
£{tileMoney.toFixed(2)} cash this week
{tileChores} chores done
{#if !summary?.summaries?.length}

No data yet this week

{:else}
{#each summary.summaries as s} {@const m = members.find((m2: any) => m2.id === s.memberId)} {@const total = totalChoresFor(s.memberId)} {@const pct = total > 0 ? Math.round((s.choresCompleted / total) * 100) : 0}
{s.memberName} {#if m} Kanban → {/if}
{pct}%
Points {s.pointsEarned}
Cash £{Number(s.moneyEarned || 0).toFixed(2)}
Done {s.choresCompleted}/{total}
{/each}
{/if}
{#if summary?.summaries?.length}
{:else}

No data yet

{/if}
{#if templates.length === 0}

No templates created

{:else}
{#each templates as t}
{t.name} {t.defaultFrequency} · {t.defaultValue} {t.defaultType}
{/each}
{/if}