<h1>Laporan - Jumlah kunjungan {{tgl}}</h1>

<br/><br/><br/>
{% if data.totala > 0 %}
<table border="1">
	<tr>
		<th>Tgl</th>
		<th>Total</th>
		<th>Shift</th>
		<th>Px</th>
		<th>L</th>
		<th>P</th>
		<th>Baru</th>
		<th>Lama</th>
		<th>Dhuafa</th>
		<th>Khusus</th>
		<th>Umum</th>
	</tr>
	{% for d in data.tabel %}
	<tr>
		<td rowspan="2" style="text-align:center;border-top:1px solid blue">{{d.tgl}}</td>
		<td rowspan="2" style="text-align:center;border-top:1px solid blue">{{d.total}}</td>
		<td style="border-top:1px solid blue">Pagi</td>
		<td style="border-top:1px solid blue">{% if d.ptotal == 0 %}-{% else %}{{d.ptotal}}{% endif %}</td>
		<td style="border-top:1px solid blue">{% if d.plaki == 0 %}-{% else %}{{d.plaki}}{% endif %}</td>
		<td style="border-top:1px solid blue">{% if d.pperempuan == 0 %}-{% else %}{{d.pperempuan}}{% endif %}</td>
		<td style="border-top:1px solid blue">{% if d.pbaru == 0 %}-{% else %}{{d.pbaru}}{% endif %}</td>
		<td style="border-top:1px solid blue">{% if d.plama == 0 %}-{% else %}{{d.plama}}{% endif %}</td>
		<td style="border-top:1px solid blue">{% if d.pd == 0 %}-{% else %}{{d.pd}}{% endif %}</td>
		<td style="border-top:1px solid blue">{% if d.pk == 0 %}-{% else %}{{d.pk}}{% endif %}</td>
		<td style="border-top:1px solid blue">{% if d.pu == 0 %}-{% else %}{{d.pu}}{% endif %}</td>
	</tr>
	<tr>
		<td>Sore</td>
		<td>{% if d.stotal == 0 %}-{% else %}{{d.stotal}}{% endif %}</td>
		<td>{% if d.slaki == 0 %}-{% else %}{{d.slaki}}{% endif %}</td>
		<td>{% if d.sperempuan == 0 %}-{% else %}{{d.sperempuan}}{% endif %}</td>
		<td>{% if d.sbaru == 0 %}-{% else %}{{d.sbaru}}{% endif %}</td>
		<td>{% if d.slama == 0 %}-{% else %}{{d.slama}}{% endif %}</td>
		<td>{% if d.sd == 0 %}-{% else %}{{d.sd}}{% endif %}</td>
		<td>{% if d.sk == 0 %}-{% else %}{{d.sk}}{% endif %}</td>
		<td>{% if d.su == 0 %}-{% else %}{{d.su}}{% endif %}</td>
	</tr>
	{% endfor %}
</table>
{% else %}
	- Kunjungan Masih Kosong -<br/><br/>
{% endif %}