{% extends 'front.html.twig' %}
{% block title %}Health Facilities{% endblock %}
{% block content %}
<div class="kt-subheader kt-grid__item"></div>
<div class="kt-container kt-grid__item kt-grid__item--fluid">
<div class="kt-portlet kt-portlet--mobile">
<div class="kt-portlet__head kt-portlet__head--lg">
<div class="kt-portlet__head-label">
<h3 class="kt-portlet__head-title">Health Facilities</h3>
</div>
</div>
<div class="kt-portlet__body">
<table class="table">
<thead>
<tr>
<th class="text-right">Sr. No.</th>
<th>Facility</th>
<th class="text-right">Population (Tribal)</th>
<th class="text-right">Population (Non-tribal)</th>
<th class="text-right">As per RHS</th>
<th class="text-right">Existing</th>
<th class="text-right">Gap</th>
<th class="text-right">Gap %</th>
</tr>
</thead>
<tbody>
{% for facility in facilities %}
<tr>
<td class="text-right">{{ loop.index }}</td>
<td>
<a href="{{ path('health_facility_district') }}" data-toggle="kt-tooltip" title="View Details">{{ facility.facility }}</a>
</td>
<td class="text-right">{{ facility.population_t }}</td>
<td class="text-right">{{ facility.population_nt }}</td>
<td class="text-right">{{ facility.rhs }}</td>
<td class="text-right">{{ facility.existing }}</td>
<td class="text-right">{{ facility.gap }}</td>
<td class="text-right">{{ facility.gap_percent }}</td>
</tr>
{% else %}
<tr>
<td colspan="8" class="text-center">No data found.</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}