- segment_type: "h1"
  content: "{{ document.organization.name }} - Risk Report"

- segment_type: "body"
  content: "Created at: {{ document.created_at|date:'Y-m-d' }}"

- segment_type: "h2"
  content: "Risks"

- segment_type: "body"
  content: |
    {% for item in risks_with_controls %}
    <div class="risk">
      <h3>Risk: {{ item.risk.name }}</h3>
      <div class="controls">
        <h4>Mitigating Controls:</h4>
        {% for control in item.controls %}
          <div class="control">
            <span class="name">{{ control.control__name }}</span> -
            <span class="weight">Weight: {{ control.weight }}</span>
          </div>
        {% endfor %}
      </div>
    </div>
    {% endfor %}