{% extends 'front.html.twig' %}
{% block title %}Bed Capacities in {{ beds[0].facility }}{% 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">Bed Capacities in {{ beds[0].facility }}</h3>
</div>
</div>
<div class="kt-portlet__body">
{% include 'facility_dashboard/_filter_form.html.twig' %}
<table class="table">
<thead>
<tr>
<th class="text-right text-nowrap">Sr. No.</th>
<th>Department</th>
<th class="text-right">Beds Sanctioned for Males as per IPHS</th>
<th class="text-right">Functional Beds for Males</th>
<th class="text-right">Vacant Beds for Males</th>
<th class="text-right">Beds Sanctioned for Females as per IPHS</th>
<th class="text-right">Functional Beds for Females</th>
<th class="text-right">Vacant Beds for Females</th>
</tr>
</thead>
<tbody>
{% for bed in beds %}
<tr>
<td class="text-right">{{ loop.index }}</td>
<td class="text-nowrap">
<a href="{{ path('facilities_department', {'id': bed.ward_id }) }}" data-toggle="kt-tooltip" title="View Details">{{ bed.department }}</a>
</td>
<td class="text-right">{{ bed.iphs_m }}</td>
<td class="text-right">{{ bed.avail_m }}</td>
<td class="text-right">{{ bed.avail_m - bed.occ_m }}</td>
<td class="text-right">{{ bed.iphs_f }}</td>
<td class="text-right">{{ bed.avail_f }}</td>
<td class="text-right">{{ bed.avail_f - bed.occ_f }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
{% block scripts %}
{{ parent() }}
<script>
$('#type').val('{{ app.request.get('type') }}');
$('#level').val('{{ app.request.get('level') }}');
$('#department').val('{{ app.request.get('department_id') }}');
$('select').selectpicker();
</script>
{% endblock %}