<form autocomplete="off">
  <h1>
    {{localize 'SCENE-PACKER.asset-report.name'}}
    {{#if sceneName}}
    - {{sceneName}}
    {{/if}}
  </h1>
  <p class="notes">
    {{localize 'SCENE-PACKER.asset-report.notes' mode=mode}}
  </p>

  <div class="report-details">
    {{#if scenes}}
    <section>
      <h2><i class="fas fa-angle-double-down"></i> {{localize 'SCENE-PACKER.asset-report.scenes'}} ({{ dependencies.scenes }}/{{ scenes.length }})</h2>
      <ul class="asset-list hidden">
        {{#each scenes}}
        {{> "modules/scene-packer/templates/asset-report/partials/details.html" entityType="Scene"}}
        {{/each}}
      </ul>
    </section>
    {{/if}}

    {{#if journals}}
    <section>
      <h2><i class="fas fa-angle-double-down"></i> {{localize 'SCENE-PACKER.asset-report.journals'}} ({{ dependencies.journals }}/{{ journals.length }})</h2>
      <ul class="asset-list hidden">
        {{#each journals}}
        {{> "modules/scene-packer/templates/asset-report/partials/details.html" entityType="JournalEntry"}}
        {{/each}}
      </ul>
    </section>
    {{/if}}

    {{#if actors}}
    <section>
      <h2><i class="fas fa-angle-double-down"></i> {{localize 'SCENE-PACKER.asset-report.actors'}} ({{ dependencies.actors }}/{{ actors.length }})</h2>
      <ul class="asset-list hidden">
        {{#each actors}}
        {{> "modules/scene-packer/templates/asset-report/partials/details.html" entityType="Actor"}}
        {{/each}}
      </ul>
    </section>
    {{/if}}

    {{#if items}}
    <section>
      <h2><i class="fas fa-angle-double-down"></i> {{localize 'SCENE-PACKER.asset-report.items'}} ({{ dependencies.items }}/{{ items.length }})</h2>
      <ul class="asset-list hidden">
        {{#each items}}
        {{> "modules/scene-packer/templates/asset-report/partials/details.html" entityType="Item"}}
        {{/each}}
      </ul>
    </section>
    {{/if}}

    {{#if macros}}
    <section>
      <h2><i class="fas fa-angle-double-down"></i> {{localize 'SCENE-PACKER.asset-report.macros'}} ({{ dependencies.macros }}/{{ macros.length }})</h2>
      <ul class="asset-list hidden">
        {{#each macros}}
        {{> "modules/scene-packer/templates/asset-report/partials/details.html" entityType="Macro"}}
        {{/each}}
      </ul>
    </section>
    {{/if}}

    {{#if playlists}}
    <section>
      <h2><i class="fas fa-angle-double-down"></i> {{localize 'SCENE-PACKER.asset-report.playlists'}} ({{ dependencies.playlists }}/{{ playlists.length }})</h2>
      <ul class="asset-list hidden">
        {{#each playlists}}
        {{> "modules/scene-packer/templates/asset-report/partials/details.html" entityType="Playlist"}}
        {{/each}}
      </ul>
    </section>
    {{/if}}

    {{#if tables}}
    <section>
      <h2><i class="fas fa-angle-double-down"></i> {{localize 'SCENE-PACKER.asset-report.tables'}} ({{ dependencies.tables }}/{{ tables.length }})</h2>
      <ul class="asset-list hidden">
        {{#each tables}}
        {{> "modules/scene-packer/templates/asset-report/partials/details.html" entityType="RollTable"}}
        {{/each}}
      </ul>
    </section>
    {{/if}}
  </div>

  <footer class="footer">
    <div class="form-group">
      <label for="hide-ok">{{localize 'SCENE-PACKER.asset-report.hide-ok'}}</label>
      <div class="form-fields">
        <input type="checkbox" id="hide-ok" name="hide-ok" data-dtype="Boolean" checked>
      </div>
    </div>
  </footer>

  <footer class="footer flexrow">
    <button type="button" name="close">
      <i class="fas fa-times"></i> {{localize 'Close'}}
    </button>
    <button type="button" name="copy">
      <i class="fas fa-copy"></i> {{localize 'SCENE-PACKER.asset-report.copy'}}
    </button>
  </footer>
</form>
