{#if role === 'parent'}
No manual bonus configs.
{:else} {#each manualConfigs() as bc} {@const val = bc.rewardType === 'cash' ? `£${Number(bc.rewardValue).toFixed(2)}` : bc.rewardType === 'points' ? `${bc.rewardValue} pts` : bc.rewardValue} {@const targeted = bc.memberId ? parentMembers.find((m: any) => m.id === bc.memberId) : null}No outstanding claims
{:else} {#each parentMembers as m} {@const requested = memberRequested(m.id)} {@const outstanding = memberOutstanding(m.id)} {@const total = memberRequestedTotal(m.id)} {#if requested.length > 0 || outstanding.length > 0}£{total.toFixed(2)} requested
{/if} {#if requested.length > 0}Requested
{#each requested as r} {/each} {#if requested.length > 1} {/if} {/if} {#if outstanding.length > 0}Outstanding
{#each outstanding as r}Response:
{ if (customMessage[m.id]) selectedMessage[m.id] = customMessage[m.id]; }} />Loading...
{:else if error}{error}
{:else}All done!
{:else} {#each dailyPending as chore} {/each} {/if}All done!
{:else} {#each weeklyPending as chore} {/each} {/if}Nothing yet
{:else} {#each completedToday as c} {@const chore = assigned.find((a) => a.id === c.assignedChoreId)} {#if chore} {/if} {/each} {/if}Nothing to claim
{:else} {#if claimableRewardsChild.length > 1} {/if} {#each claimableRewardsChild as r}No pending requests
{:else} {#each requestedRewardsChild as r}