{% extends '../template.html' %}
{% block subcontent %}
<h1>Report - Jumlah kunjungan {{tgl}}</h1>
<form>
	<span class="monthly">
		{% date monthly year[2018-2030] nodate %}
	</span>
	<input type="submit" value="Go"/>
	<button type="submit" name="xls" value="y" style="margin-left:30px" class="btn-success btn"><i class="far fa-file"></i></button>
</form>
<br/><br/><br/>
{% if data.totala > 0 %}
<table class="data">
	<tr>
		<th>Tgl</th>
		<th>Dhuafa</th>
		<th>Khusus</th>
		<th>Umum</th>
		<th>MOU</th>
		<th>Total</th>
	</tr>
	{% for d in data.tabel %}
	<tr>
		<td>{{d.tgl}}</td>
		<td>{{d.d}}</td>
		<td>{{d.k}}</td>
		<td>{{d.u}}</td>
		<td>{{d.m}}</td>
		<td>{{d.total}}</td>
	</tr>
	{% endfor %}
	<tr>
		<td><b>Total</b></td>
		<td><b>{{data.totald}}</b></td>
		<td><b>{{data.totalk}}</b></td>
		<td><b>{{data.totalu}}</b></td>
		<td><b>{{data.totalm}}</b></td>
		<td><b>{{data.totala}}</b></td>
	</tr>
</table>
{% else %}
	- Kunjungan Masih Kosong -<br/><br/>
{% endif %}
{% endblock %}
{% block script %}
<script type="text/javascript">
	$(document).ready(function() {
		menuSelected("mKunjungan","smRekap");
		$("select[name=monthly_month]").val("{{bln}}").change();
		$("select[name=monthly_year]").val("{{thn}}").change();
	});
</script>
{% endblock %}