{{ _('Budget') }}

{% set months = ['January','February','March','April','May','June','July','August','September','October','November','December'] %}
{{ _('Total Budget:') }} ${{ total_budget|currency }}
{% for row in budget_by_year.years %} {% endfor %} {% for u in budget_by_year.unscheduled %} {% endfor %}
{{ _('Year') }} {{ _('Amount') }} {{ _('% of Total') }}
{{ row.year }} ${{ row.amount|currency }} {% if total_budget > 0 %}{{ (row.amount / total_budget * 100)|round(1) }}%{% endif %}
{{ _('Not scheduled') }} ${{ u.amount|currency }} {% if total_budget > 0 %}{{ (u.amount / total_budget * 100)|round(1) }}%{% endif %}

{{ _('Set spend dates on each item to assign it to a year.') }}

{{ _('No budget items yet. Add items above.') }}

{% if tasks %}
{{ _('Spend dates') }}
{{ _('Download Template') }}
{% for task in tasks %}
{{ task.name }} {% if task.id in task_budgets %} ${{ task_budgets[task.id].subtotal|currency }} {% else %} $0 {% endif %}
{% if task.id in task_budgets %} {% for item in task_budgets[task.id]["items"] %} {% set item_timing = proposal.budget_item_timings.get(item.id, {}) %}
{{ item.name }}
{{ item.cost_per_unit|currency }}/unit × {{ item.units|currency }} {{ _('units') }} {{ (item.cost_per_unit * item.units)|currency }}
{% if item_timing.get('start_month') and item_timing.get('start_year') %} {{ _(months[item_timing.get('start_month')|int - 1]) }} {{ item_timing.get('start_year') }} · {{ item_timing.get('duration_months', 1) }} {{ _('months') }} {% else %} {{ _('Not scheduled') }} {% endif %}
{% endfor %} {% endif %}
{% endfor %}
{% if not budget_items %}

{{ _('No budget items yet. Add items above.') }}

{% endif %}
{{ _('Indirect') }} ({{ indirect_percent|round|int }}%) ${{ indirect_amount|currency }}
{{ _('Total Budget:') }} ${{ total_with_indirect|currency }}
{% else %}

{{ _('No tasks available.') }} {{ _('Add tasks in the Scope section first.') }}

{% endif %}