{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, button, filter_badge %} {% block title %}{{ _('Weekly Time Goals') }} - {{ config.APP_NAME }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Weekly Goals')} ] %} {{ page_header( icon_class='fas fa-bullseye', title_text=_('Weekly Time Goals'), subtitle_text=_('Set and track your weekly hour targets'), breadcrumbs=breadcrumbs, actions_html='' + _('New Goal') + '' ) }}

{{ _('Total Goals') }}

{{ stats.total_goals }}

{{ _('Completed') }}

{{ stats.completed }}

{{ _('Failed') }}

{{ stats.failed }}

{{ _('Success Rate') }}

{{ stats.completion_rate }}%

{% if current_goal %}

{{ _('Current Week Goal') }}

{{ _('Week') }}

{{ current_goal.week_label }}

{{ _('Target Hours') }}

{{ current_goal.target_hours }}h

{{ _('Actual Hours') }}

{{ current_goal.actual_hours }}h

{{ _('Progress') }} {{ current_goal.progress_percentage }}%

{{ _('Remaining Hours') }}

{{ current_goal.remaining_hours }}h

{{ _('Days Remaining') }}

{{ current_goal.days_remaining }}

{{ _('Avg Hours/Day Needed') }}

{{ current_goal.average_hours_per_day }}h

{{ _('View Details') }} {{ _('Edit Goal') }}
{% else %}

{{ _('No goal set for this week') }}

{{ _('Create a weekly time goal to start tracking your progress') }}

{{ _('Create Goal') }}
{% endif %} {% if goals %}

{{ _('Goal History') }}

{% for goal in goals %}

{{ goal.week_label }}

{% if goal.status == 'completed' %} {{ _('Completed') }} {% elif goal.status == 'active' %} {{ _('Active') }} {% elif goal.status == 'failed' %} {{ _('Failed') }} {% endif %}

{{ _('Target') }}: {{ goal.target_hours }}h | {{ _('Actual') }}: {{ goal.actual_hours }}h

{{ _('Progress') }} {{ goal.progress_percentage }}%
{% if goal.status == 'completed' %}
{% elif goal.status == 'failed' %}
{% else %}
{% endif %}
{% endfor %}
{% endif %} {% endblock %}