<div class="scenario-widget scenario-capex">
  <div class="scenario-widget__header">
    <span class="scenario-widget__location">{{ scenario.location }}, {{ scenario.country }}</span>
    <span class="scenario-widget__config">{{ t.scenario_investment_breakdown_title }}</span>
  </div>
  <div class="scenario-widget__body">
    <div class="scenario-widget__table-wrap">
      <table class="scenario-widget__table">
        <thead>
          <tr>
            <th>{{ t.scenario_table_item_label }}</th>
            <th class="text-right">{{ t.scenario_table_amount_label }}</th>
            <th>Detail</th>
          </tr>
        </thead>
        <tbody>
          {% for item in d.capexItems %}
          <tr>
            <td>{{ item.name }}</td>
            <td class="text-right mono">&euro;{{ "{:,.0f}".format(item.amount) }}</td>
            <td class="text-sm text-slate">{{ item.info }}</td>
          </tr>
          {% endfor %}
        </tbody>
        <tfoot>
          <tr>
            <td><strong>{{ t.scenario_total_capex_label }}</strong></td>
            <td class="text-right mono"><strong>&euro;{{ "{:,.0f}".format(d.capex) }}</strong></td>
            <td></td>
          </tr>
        </tfoot>
      </table>
    </div>
    <div class="scenario-widget__metrics" style="margin-top: 1rem;">
      <div class="scenario-widget__metric">
        <span class="scenario-widget__metric-label">{{ t.scenario_per_court_label }}</span>
        <span class="scenario-widget__metric-value">&euro;{{ "{:,.0f}".format(d.capexPerCourt) }}</span>
      </div>
      <div class="scenario-widget__metric">
        <span class="scenario-widget__metric-label">Per m&sup2;</span>
        <span class="scenario-widget__metric-value">&euro;{{ "{:,.0f}".format(d.capexPerSqm) }}</span>
      </div>
      <div class="scenario-widget__metric">
        <span class="scenario-widget__metric-label">LTV</span>
        <span class="scenario-widget__metric-value">{{ "{:.0f}".format(d.ltv * 100) }}%</span>
      </div>
    </div>
    <div class="scenario-widget__metrics">
      <div class="scenario-widget__metric">
        <span class="scenario-widget__metric-label">{{ t.scenario_equity_label }}</span>
        <span class="scenario-widget__metric-value">&euro;{{ "{:,.0f}".format(d.equity) }}</span>
      </div>
      <div class="scenario-widget__metric">
        <span class="scenario-widget__metric-label">{{ t.scenario_loan_label }}</span>
        <span class="scenario-widget__metric-value">&euro;{{ "{:,.0f}".format(d.loanAmount) }}</span>
      </div>
      <div class="scenario-widget__metric">
        <span class="scenario-widget__metric-label">{{ t.scenario_total_label }}</span>
        <span class="scenario-widget__metric-value">&euro;{{ "{:,.0f}".format(d.capex) }}</span>
      </div>
    </div>
  </div>
  <div class="scenario-widget__cta">
    <a href="{{ url_for('planner.index') }}">{{ t.scenario_cta_try_numbers }}</a>
  </div>
</div>
