{{#if toggles.spellcasting}}{{> (resolvePath "templates/actors/partials/toggles.hbs") toggles=toggles.spellcasting}}{{/if}} {{#each spellCollectionGroups as |group tab|}}
{{> collectionGroup collections=group tab=tab}}
{{/each}}
{{#*inline "collectionGroup"}}
    {{#each collections as |entry|}}
  1. {{#unless entry.isEphemeral}} {{/unless}}

    {{#if @root.editable}}
    {{#if (or entry.isFocusPool entry.isRitual)}} {{/if}} {{#if (or entry.isPrepared entry.isSpontaneous entry.isInnate)}} {{/if}} {{#unless entry.isEphemeral}} {{/unless}}
    {{/if}}
    {{#unless entry.isRitual}}
    {{#if entry.isPrepared}} {{/if}} {{#if entry.isFocusPool}}
    {{#times @root.data.resources.focus.max}} {{/times}}

    {{localize "PF2E.Focus.Pool"}}

    {{/if}}
    {{localize entry.statistic.label}}
    {{lookup @root.numberToRank entry.statistic.rank}}
    {{/unless}} {{#if entry.hasCollection}} {{> (resolvePath "templates/actors/partials/spell-collection.hbs") entry=entry}} {{/if}}
  2. {{/each}}
{{#if (eq tab "known-spells")}} {{/if}} {{/inline}}