{% 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>
<h2><strong>{{ page_title }}</strong></h2>
<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>

</body>
</html>