{{#each spellcastingEntries as |entry eid|}}
  1. {{#unless entry.isRitual}} {{/unless}} {{#if entry.isPrepared}} {{/if}}

    {{#unless entry.isRitual}}
    {{/unless}} {{#if ../options.editable}}
    {{#if (or entry.isPrepared entry.isSpontaneous entry.isInnate)}} {{/if}} {{#unless entry.isRitual}} {{/unless}}
    {{/if}}
    {{#if entry.hasCollection}}
    {{> "systems/pf2e/templates/actors/partials/spell-collection.hbs" entry=entry}}
    {{/if}}
  2. {{/each}}
{{#if options.editable}} {{/if}}