{% extends '@theme/fullpage.html.twig' %} {% from "macros/widgets.html.twig" import nothing_found %} {% import "macros/progressbar.html.twig" as progress %} {% block title %}{{ 'project' | trans }} {{ project.name }}{% endblock %} {% block stylesheets %} {% if tabler_bundle.isRightToLeft() %} {{ encore_entry_link_tags('app-rtl') }} {% else %} {{ encore_entry_link_tags('app') }} {% endif %} {{ encore_entry_link_tags('chart') }} {% endblock %} {% block head %} {{ encore_entry_script_tags('app') }} {{ encore_entry_script_tags('chart') }} {% endblock %} {% block javascripts %} {% import "macros/webloader.html.twig" as webloader %} {{ webloader.init_frontend_loader() }} {% endblock %} {% block page_classes %}page{% endblock %} {% block page_content %} {% set show_progress = (stats.hasBudget() and portal.isBudgetStatsVisible()) or (stats.hasTimeBudget() and portal.isTimeBudgetStatsVisible()) %} {% set show_month_stats = statsPerMonth is not null %}

1 %}href="{{ app.request.pathinfo }}?year={{ year }}&month={{ month - 1 }}{% if detailsMode != 'table' %}&details={{ detailsMode }}{% endif %}"{% endif %}>
{{ project.name }}

{% if show_month_stats %}

{{ 'shared_project_timesheets.view.chart.per_month_title' | trans({'%year%': year}) }}

{% include '@CustomerPortal/view/chart/annual-chart.html.twig' with {year: year, month: month, statsPerMonth: statsPerMonth} %}
{% endif %} {% if show_progress %}

{{ 'shared_project_timesheets.view.stats.title' | trans }}

{% if stats.hasBudget() and portal.isBudgetStatsVisible() %} {% endif %} {% if stats.hasTimeBudget() and portal.isTimeBudgetStatsVisible() %} {% endif %}
{{ 'budget' | trans }} {{ progress.progressbar_budget(stats, currency) }}
{{ 'timeBudget' | trans }} {{ progress.progressbar_timebudget(stats) }}
{% endif %}

{{ 'shared_project_timesheets.view.table.title' | trans }}

{% if monthlyChartVisible %} {% endif %}
{% if timeRecords is empty %} {{ nothing_found() }} {% elseif statsPerDay is null %} {% if portal.entryUserVisible %} {% endif %} {% if portal.entryRateVisible %} {% endif %} {% for record in timeRecords %} {% if portal.entryUserVisible %} {% endif %} {% if portal.entryRateVisible %} {% if record.differentHourlyRates %} {% else %} {% endif %} {% endif %} {% endfor %} {% if timeRecords is not empty %} {% if portal.entryUserVisible %} {% endif %} {% if portal.entryRateVisible %} {% endif %} {% endif %}
{{ 'date' | trans }}{{ 'user' | trans }}{{ 'description' | trans }} {{ 'duration'|trans }}{{ 'hourlyRate' | trans }} {{ 'total_rate' | trans }}
{{ record.date | date_short }}{{ record.user.displayName }}{{ record.description | e | nl2br }} {{ record.duration | duration }} {% for info in record.hourlyRates %}
{{ info.duration | duration }} - {{ info.hourlyRate | format_currency(currency) }}
{% endfor %}
{% if record.hourlyRates is not empty %} {{ record.hourlyRates[0].hourlyRate | format_currency(currency) }} {% endif %} {{ record.rate | format_currency(currency) }}
{{ durationSum | duration }} {{ rateSum | format_currency(currency) }}
{% else %} {% include '@CustomerPortal/view/chart/monthly-chart.html.twig' with {year: year, month: month, statsPerDay: statsPerDay} %} {% endif %}
{% endblock %}