{% extends '@RxConnexion/Admin/global.html.twig' %}
{% block 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>

    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script>
        //<![CDATA[
        jQ(document).ready(function(){
            report_preview.init();
        });
        //]]>
    </script>
{% endblock %}