{% 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 id="header-id">
        <th>Health Facility</th>
        <th>Chart</th>
        <th>Chart Date</th>
        <th>Full Name</th>
        <th>Status</th>
    </tr>
    </thead>
    <tbody>
    {% set totalCount = 0 %}
    {% for record in records %}
        {% set trC = loop.index > 1 and loop.index % 2 == 0 ? 'even' : 'odd' %}
        {% set totalCount = totalCount + 1 %}
        <tr class="{{ trC }}">
            <td>{{ record.health_facility_desc }}</td>
            <td>{{ record.chart_type_desc }}</td>
            <td>{{ record.chart_date }}</td>
            <td>{{ record.provider_fullName }}</td>
            <td>{{ record.chart_status_desc }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>
<div>Total Records: {{ totalCount }}</div>
</body>
</html>