{% extends "client_portal/base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ _('Projects') }} - {{ _('Client Portal') }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Client Portal'), 'url': url_for('client_portal.dashboard')}, {'text': _('Projects')} ] %} {{ page_header( icon_class='fas fa-folder-open', title_text=_('Projects'), subtitle_text=_('Projects for %(client_name)s', client_name=client.name), breadcrumbs=breadcrumbs ) }} {% if project_stats %}
{% for stat in project_stats %}

{{ stat.project.name }}

{{ stat.project.status|capitalize }}
{% if stat.project.description %}

{{ stat.project.description }}

{% endif %}

{{ _('Total Hours') }}

{{ "%.2f"|format(stat.total_hours) }}h

{{ _('Time Entries') }}

{{ stat.entry_count }}

{% if stat.project.hourly_rate %}

{{ _('Hourly Rate') }}

{{ "%.2f"|format(stat.project.hourly_rate) }} {{ stat.project.client_obj.default_hourly_rate and 'EUR' or '' }}

{% endif %}
{% endfor %}
{% else %}

{{ _('No projects found') }}

{{ _('There are no projects available at this time. Projects will appear here once they are created and assigned to your account.') }}

{% endif %} {% endblock %}