{% set dateColumn = 'col-3 text-center' %} {% set alkalinityColumn = 'col-2 text-center' %} {% set pHColumn = 'col-2 text-center' %} {% set chlorineColumn = 'col-2 text-center' %} {% set takenByColumn = 'col-3 text-center' %}

Chemistry Record History

{% if secondaryRecords|length > 0 %}

Primary

{% endif %}
DATE
ALK
pH
CHL
TAKEN BY
{% for record in chemistryRecords %} {# @var record \App\Entity\ChemistryRecord #}
{{ record.date|date('m/d/Y') }}
{{ record.totalAlkalinity }}
{{ record.pH }}
{{ record.chlorine }}
{{ record.isTakenByTech == 1 ? 'Tech':'Client' }}
{% endfor %}
{% if secondaryRecords|length > 0 %}

Secondary

DATE
ALK
pH
CHL
TAKEN BY
{% for record in secondaryRecords %} {# @var record \App\Entity\SecondaryChemistryRecord #}
{{ record.date|date('m/d/Y') }}
{{ record.totalAlkalinity }}
{{ record.pH }}
{{ record.chlorine }}
{{ record.isTakenByTech == 1 ? 'Tech':'Client' }}
{% endfor %}
{% endif %}