{% if options %}
  {% set distribution_enabled = options.distribution %}
  {% set samples_enabled = options.samples and options.distribution %}
{% endif %}

<section class="report-options">
  <div class="report-card">
    <h2>Data Options</h2>
    <ul class="metric-list compact">
      <li>
        <span>Monte Carlo Distribution</span>
        <strong>
          {% if options %}
            {{ distribution_enabled and "Enabled" or "Disabled" }}
          {% else %}
            Not requested
          {% endif %}
        </strong>
      </li>
      <li>
        <span>Sample Storage</span>
        <strong>
          {% if options %}
            {% if options.samples %}
              {% if samples_enabled %}
                Enabled
              {% else %}
                Requires distribution
              {% endif %}
            {% else %}
              Disabled
            {% endif %}
          {% else %}
            Not requested
          {% endif %}
        </strong>
      </li>
      <li>
        <span>Iterations</span>
        <strong>{{ iterations }}</strong>
      </li>
      <li>
        <span>Percentiles</span>
        <strong>
          {% if percentiles %}
            {% for percentile in percentiles %}
              {{ '%g' % percentile }}{% if not loop.last %}, {% endif %}
            {% endfor %}
          {% else %}
            Defaults
          {% endif %}
        </strong>
      </li>
    </ul>
  </div>
</section>
