{% extends "base.html" %} {% block title %}Project Summary | CalMiner{% endblock %} {% block content %} {% include "partials/reports_header.html" with context %} {% include "partials/reports/options_card.html" with options=include_options iterations=iterations percentiles=percentiles %} {% include "partials/reports/filters_card.html" with filters=filters %}

Project Details

Name
{{ project.name }}
Location
{{ project.location or "—" }}
Operation Type
{{ project.operation_type | replace("_", " ") | title }}
Scenarios
{{ scenario_count }}
Created
{{ project.created_at | format_datetime }}
Updated
{{ project.updated_at | format_datetime }}

Financial Summary

  • Total Inflows {{ aggregates.financials.total_inflows | currency_display(project.currency) }}
  • Total Outflows {{ aggregates.financials.total_outflows | currency_display(project.currency) }}
  • Net Cash Flow {{ aggregates.financials.total_net | currency_display(project.currency) }}

Deterministic Metrics

{% if aggregates.deterministic_metrics %} {% for key, metric in aggregates.deterministic_metrics.items() %} {% endfor %}
Metric Average Best Worst
{{ key | replace("_", " ") | title }} {{ metric.average | format_metric(key, project.currency) }} {{ metric.maximum | format_metric(key, project.currency) }} {{ metric.minimum | format_metric(key, project.currency) }}
{% else %}

Deterministic metrics are unavailable for the current filters.

{% endif %}

Scenario Breakdown

Deterministic metrics and Monte Carlo summaries for each scenario.

{% if scenarios %} {% for item in scenarios %}

{{ item.scenario.name }}

{{ item.scenario.status | title }} · {{ item.scenario.primary_resource or "No primary resource" }}

Currency {{ item.scenario.currency or project.currency or "—" }}
{% include "partials/reports/scenario_actions.html" with scenario=item.scenario %}

Financial Totals

  • Inflows {{ item.financials.inflows | currency_display(item.scenario.currency or project.currency) }}
  • Outflows {{ item.financials.outflows | currency_display(item.scenario.currency or project.currency) }}
  • Net {{ item.financials.net | currency_display(item.scenario.currency or project.currency) }}
By Category
{% if item.financials.by_category %}
    {% for label, value in item.financials.by_category.items() %}
  • {{ label | replace("_", " ") | title }} {{ value | currency_display(item.scenario.currency or project.currency) }}
  • {% endfor %}
{% else %}

No financial inputs recorded.

{% endif %}

Deterministic Metrics

Discount Rate {{ item.metrics.discount_rate | percentage_display }}
NPV {{ item.metrics.npv | currency_display(item.scenario.currency or project.currency) }}
IRR {{ item.metrics.irr | percentage_display }}
Payback Period {{ item.metrics.payback_period | period_display }}
{% if item.metrics.notes %}
    {% for note in item.metrics.notes %}
  • {{ note }}
  • {% endfor %}
{% endif %}

Monte Carlo Summary

{% if item.monte_carlo and item.monte_carlo.available %}

Iterations: {{ item.monte_carlo.iterations }} {% if percentiles %} · Percentiles: {% for percentile in percentiles %} {{ '%g' % percentile }}{% if not loop.last %}, {% endif %} {% endfor %} {% endif %}

{% include "partials/reports/monte_carlo_table.html" with metrics=item.monte_carlo.metrics currency=item.scenario.currency or project.currency percentiles=percentiles %} {% else %}

Monte Carlo metrics are unavailable for this scenario.

{% if item.monte_carlo and item.monte_carlo.notes %}
    {% for note in item.monte_carlo.notes %}
  • {{ note }}
  • {% endfor %}
{% endif %} {% endif %}
{% endfor %} {% else %}

No scenarios match the current filters.

{% endif %}
{% endblock %}