{% load i18n %}

{% trans "Capacity Forecast" %} {% trans "(30-day prediction based on 7-day trend)" %}

{% if predictions %}
{% for pred in predictions %} {% endfor %}
{% trans "Pool Name" %} {% trans "Current Free (GiB)" %} {% trans "Predicted in 30 Days (GiB)" %} {% trans "Status" %}
{{ pred.name }} {{ pred.current_free|floatformat:2 }} {% if pred.predicted_value is not None %} {{ pred.predicted_value|floatformat:2 }} {% else %} {% trans "N/A" %} {% endif %} {% if pred.will_run_out %} {% trans "Full in" %} {{ pred.days_until_full }} {% trans "days" %} {% elif pred.predicted_value is not None and pred.predicted_value < pred.current_free %} {% trans "Declining" %} {% elif pred.predicted_value is not None %} {% trans "Healthy" %} {% else %} {% trans "Insufficient data" %} {% endif %}
{% trans "Note:" %} {% trans "Predictions are based on linear regression of the last 7 days of capacity data. Actual usage may vary." %}
{% else %}

{% trans "No prediction data available." %}

{% endif %}