{% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% block box_title %} {% if not title is empty %}{{ title|trans }}{% endif %} {% endblock %} {% block box_attributes %} id="PaginatedWorkingTimeChart" data-href="#" data-reload="" {% endblock %} {% block box_tools %} {% endblock %} {% block box_body %}
{{ render_widget('DailyWorkingTimeChart', options|merge({'begin': data.begin, 'end': data.end})) }}
{% endblock %} {% block box_footer %}
{{ data.day|duration }}
{{ 'stats.workingTimeToday'|trans({'%day%': 'now'|date_short}) }}
{{ data.week|duration }}
{{ 'stats.workingTimeWeek'|trans({'%week%': data.begin|date_format('W')}) }}
{{ data.month|duration }}
{{ 'stats.workingTimeMonth'|trans({'%month%': data.thisMonth|month_name, '%year%': data.thisMonth|date_format('Y')}) }}
{% if data.financial is not null %}
{{ data.financial|duration }}
{{ 'stats.workingTimeFinancialYear'|trans }}
{% else %}
{{ data.year|duration }}
{{ 'stats.workingTimeYear'|trans({'%year%': data.thisMonth|date_format('Y')}) }}
{% endif %}
{% endblock %} {% endembed %}