{% extends "base.html" %} {% block title %}CPMP Portfolio - ICDEV™{% endblock %} {% block content %}
{{ portfolio.total_contracts | default(0) }}
Total Contracts
{{ portfolio.active_contracts | default(0) }}
Active
${{ '{:,.0f}'.format(portfolio.total_value | default(0)) }}
Total Value
${{ '{:,.0f}'.format(portfolio.burn_rate | default(0)) }}
Burn Rate
{{ portfolio.overdue_deliverables | default(0) }}
Overdue Deliverables
{{ (portfolio.health_distribution.yellow | default(0)) + (portfolio.health_distribution.red | default(0)) }}
At-Risk

Health Distribution

{% set green_count = portfolio.health_distribution.green | default(0) %} {% set yellow_count = portfolio.health_distribution.yellow | default(0) %} {% set red_count = portfolio.health_distribution.red | default(0) %} {% set health_total = green_count + yellow_count + red_count %}
Green
{{ green_count }}
Yellow
{{ yellow_count }}
Red
{{ red_count }}

Contracts

{% for contract in contracts %} {% else %} {% endfor %}
Contract # Title Agency Type Status Health POP End Value CPI SPI
{{ contract.contract_number | default('—') }} {{ contract.title | default('—') }} {{ contract.agency | default('—') }} {{ contract.contract_type | default('—') }} {% set cstatus = contract.status | default('unknown') %} {% set cstatus_colors = {'active': 'success', 'complete': 'info', 'at_risk': 'warning', 'overdue': 'error', 'closed': 'info', 'pending': 'warning'} %} {{ cstatus | replace('_', ' ') | title }} {% set health = contract.health | default('unknown') %} {% if health == 'green' %} Green {% elif health == 'yellow' %} Yellow {% elif health == 'red' %} Red {% else %} {{ health | title }} {% endif %} {{ contract.pop_end | default('—') }} ${{ '{:,.0f}'.format(contract.value | default(0)) }} {% set cpi = contract.cpi %} {% if cpi is not none %} {{ cpi | round(2) }} {% else %} {% endif %} {% set spi = contract.spi %} {% if spi is not none %} {{ spi | round(2) }} {% else %} {% endif %}
No contracts in portfolio.

Upcoming Deliverables

{% for d in upcoming_deliverables %} {% else %} {% endfor %}
CDRL # Title Contract Due Date Days Until Due Status
{{ d.cdrl_number | default('—') }} {{ d.title | default('—') }} {{ d.contract_number | default('—') }} {{ d.due_date | default('—') }} {% if d.days_until_due is not none %} {{ d.days_until_due | round(0) | int }} {% else %} — {% endif %} {% set dstatus = d.status | default('pending') %} {% set dstatus_colors = {'submitted': 'success', 'approved': 'success', 'in_progress': 'info', 'pending': 'warning', 'overdue': 'error', 'rejected': 'error', 'draft': 'info'} %} {{ dstatus | replace('_', ' ') | title }}
No upcoming deliverables.
{% endblock %}