{% extends '@RxConnexion/Admin/global.html.twig' %}
{% block body %}
    <h3 class="report-header"><strong>{{ page_title }}</strong></h3>
    <table class="report-data" width="100%">
        <thead class="header">
        <tr>
            <th>Branch</th>
            <th>Received</th>
            <th>Encoded</th>
            <th>Handled</th>
            <th>Booked</th>
        </tr>
        </thead>
        <tbody>
        {% set totalCount = 0 %}
        {% for staffSummary in records %}
            {% set trC = loop.index > 1 and loop.index % 2 == 0 ? 'even' : 'odd' %}
            {% set totalCount = totalCount + 1 %}
            <tr class="{{ trC }}">
                <td>{{ staffSummary.fullName is defined ? staffSummary.fullName : ''}}</td>
                <td>{{ staffSummary.faxCount is defined ? staffSummary.faxCount : 0}}</td>
                <td>{{ staffSummary.refCount is defined ? staffSummary.refCount : 0}}</td>
                <td>{{ staffSummary.refIpcCount is defined ? staffSummary.refIpcCount : 0}}</td>
                <td>{{ staffSummary.refHstCount is defined ? staffSummary.refHstCount : 0}}</td>
            </tr>
        {% endfor %}
    </table>
    <span>Total Records: {{ totalCount }}</span>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script>
        //<![CDATA[
        jQ(document).ready(function(){
            report_preview.init();
        });
        //]]>
    </script>
{% endblock %}