{% extends 'base_admin.html.twig' %} {% block title %}Payments Check{% endblock %} {% block body %}

Payments Check

{% include ('template_parts/_date_ranges.html.twig') %}
{{ employer }} {% if monthly_date_period is not null %} {% for month in monthly_date_period %} {% endfor %} {% for employee in employees %} {% for month in monthly_date_period %} {% if employer is not null %} {% set allPayments = paymentService.getCountAmountPaidForMonthAndEmployee(employee, month, employer) %} {% else %} {% set allPayments = paymentService.getCountAmountPaidForMonthAndEmployeeAllEmployers(employee, month) %} {% endif %} {% endfor %} {% endfor %}
{{ month.format('M-Y') }}
{{ employee.firstName }} {{ employee.lastName }} {% if allPayments |length > 1 %} {% if employer is not null %} {{ paymentService.getAmountPaidForMonthAndEmployee(employee, month, employer) | number_format(2) }}({{ allPayments | length }}) {% else %} {{ paymentService.getAmountPaidForMonthAndEmployeeAllEmployers(employee, month) | number_format(2) }}({{ allPayments | length }}) {% endif %} {% else %} {% if employer is not null %} {{ paymentService.getAmountPaidForMonthAndEmployee(employee, month, employer) | number_format(2) }} {% else %} {{ paymentService.getAmountPaidForMonthAndEmployeeAllEmployers(employee, month) | number_format(2) }} {% endif %} {% endif %}
{% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% include 'template_parts/_js_date_ranges.html.twig' %} {% endblock javascripts %} {% block datatable %} {% endblock datatable %}