{% set absUrl = app.request.getSchemeAndHttpHost() ~ app.request.baseUrl|replace({'/app_dev.php': ''}) %}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="{{ absUrl ~ asset('bundles/rxconnexion/admin/css/report/report_wkpdf.css') }}" />
</head>
<body>
<h3 class="report-header"><strong>{{ page_title }}</strong> From: {{ dateFrom }} To: {{ dateTo }}</h3>
<h6 style="text-align: center">CBT Productivity Report</h6>
<h6 style="text-align: center">Encounters</h6>
<table class="report-data" width="100%">
    <thead class="header">
    <tr>
        <th>ACTIVITY</th>
        <th>Processed</th>
    </tr>
    </thead>
    <tbody>
    {% for record in records.encounterProcessed %}
        {% set trC = loop.index > 1 and loop.index % 2 == 0 ? 'even' : 'odd' %}
        <tr class="{{ trC }}">
            <td>{{ record.chartType }}</td>
            <td>{{ record.processCount }}</td>
        </tr>
    {% endfor %}
    {% for record1 in records.endorsed %}
        {% set trC = loop.index > 1 and loop.index % 2 == 0 ? 'even' : 'odd' %}
        <tr class="{{ trC }}">
            <td>Endorsed</td>
            <td>{{ record1.endorsedCount }}</td>
        </tr>
    {% endfor %}
</table>

</body>
</html>