{% set e = viewParams.employee %}
{% set s = viewParams.summary %}

{% if viewParams.employee.id <= 0 %}
  {{ translate("No employee with email address '{{ employeeEmail }}' found.", { employeeEmail: viewParams.employeeEmail }) }}
{% else %}
  <div class="font-bold">{{ viewParams.employeeEmail }}</div>

  {% if viewParams.summary and viewParams.summary|length > 0 %}
    <table class="table-default dense mt-2">
      <tbody>
        {% for data in viewParams.summary %}
          <tr>
          <td>{{ (data.year ~ '-' ~ data.month ~ '-01')|date('F Y') }}</td>
            <td class="text-right">{{ data.worked_hours_total }} h</td>
          </tr>
        {% endfor %}
      </tbody>
    </table>
  {% else %}
    {{ translate('No summary available for this employee.') }}
  {% endif %}
{% endif %}