{{#if crafting.hasQuickAlchemy}}
{{/if}}
    {{#if crafting.abilities.alchemical.entries}}
  1. {{localize "PF2E.CraftingTab.Alchemical.AdvancedAlchemy"}}
      {{> resourceRow resource=crafting.abilities.alchemical.resource resourceCost=crafting.abilities.alchemical.resourceCost}} {{#each crafting.abilities.alchemical.entries as |ability|}}
    1. {{ability.label}}
      1. {{localize "PF2E.CraftingTab.Alchemical.ReagentCost"}}:

        {{ability.resourceCost}}

        {{localize "PF2E.CraftingTab.Alchemical.AdvancedAlchemyLevel"}}:

        {{ability.maxItemLevel}}
      2. {{#each ability.prepared as |formula|}} {{> preparedFormula ability=ability formula=formula}} {{/each}} {{#unless ability.prepared}}
      3. {{localize "PF2E.FormulaListEmpty"}}

      4. {{/unless}}
    2. {{/each}}
  2. {{/if}} {{#each crafting.abilities.prepared as |ability i|}}
  3. {{ability.label}} {{#if ability.insufficient}} {{/if}}

    {{localize "PF2E.LevelN" level=ability.maxItemLevel}}
      {{#if ability.resource}} {{> resourceRow resource=ability.resource resourceCost=ability.resourceCost}} {{/if}} {{#each ability.prepared as |formula|}} {{> preparedFormula ability=ability formula=formula}} {{/each}} {{#if remainingSlots}}
    1. {{localize "PF2E.Actor.Character.Crafting.RemainingSlots" remaining=remainingSlots}}
    2. {{else if (and ability.resource (not ability.prepared.length))}}
    3. {{localize "PF2E.FormulaListEmpty"}}

    4. {{/if}}
  4. {{/each}} {{#if crafting.hasDailyCrafting}}
  5. {{/if}}
{{localize "PF2E.FormulaKnownTitle"}}
    {{!-- Add section for each formula level --}} {{#each crafting.knownFormulas as |section|}}
  1. {{localize "PF2E.LevelN" level=section.level}}

    {{localize "PF2E.CraftDCTitle"}}
    {{localize "PF2E.Actor.Character.Crafting.Cost"}}
    {{localize "PF2E.CraftingTab.CraftQuantityTitle"}}
    {{!-- Exists only due to localization reasons regarding a resizing button. We hide this button--}} {{#if @root.editable}}
    {{/if}}
  2. {{!-- Add formula items for each formula level --}} {{#each section.formulas as |formula i|}}
  3. {{formula.dc}}
    {{formula.cost}}
    +
    {{#if @root.editable}}
    {{/if}}
  4. {{/each}} {{else if @root.editable}}
  5. {{localize "PF2E.FormulaListEmpty"}}

  6. {{/each}}
{{#*inline "resourceRow"}}
  • {{localize "PF2E.CraftingTab.Alchemical.TotalCost"}}:

    {{resourceCost}}

    {{localize resource.label}}:

    /

    {{resource.max}}
  • {{/inline}} {{#*inline "preparedFormula"}}
  • {{formula.item.name}}

    {{#if (or ability.resource ability.isDailyPrep)}} + {{else}} {{localize "PF2E.Actor.Character.Crafting.BatchQuantity" quantity=formula.quantity}} {{/if}}
    {{#if @root.editable}}
    {{#if ability.isAlchemical}} {{else if ability.isPrepared}} {{#unless formula.expended}} {{/unless}} {{/if}}
    {{/if}}
  • {{/inline}}