<h1>Report - Gaji Dokter Bulan {{tgl}}</h1>

{% for n, d in data %}
<br/><br/><br/>
<h3>{{ n }}</h3>
<table border="1">
	<tr>
		<th rowspan="3" style="text-align:center">Tgl</th>
		<th colspan="8" style="text-align:center">Konsultasi</th>
		<th colspan="8" style="text-align:center">Tindakan</th>
		<th rowspan="3" style="text-align:center">Sub Total</th>
	</tr>
	<tr>
		<th colspan="2" style="text-align:center">Dhuafa</th>
		<th colspan="2" style="text-align:center">Khusus</th>
		<th colspan="2" style="text-align:center">Umum</th>
		<th colspan="2" style="text-align:center">MoU</th>
		<th colspan="2" style="text-align:center">Dhuafa</th>
		<th colspan="2" style="text-align:center">Khusus</th>
		<th colspan="2" style="text-align:center">Umum</th>
		<th colspan="2" style="text-align:center">MoU</th>
	</tr>
	<tr>
		<th>px</th>
		<th>nominal</th>
		<th>px</th>
		<th>nominal</th>
		<th>px</th>
		<th>nominal</th>
		<th>px</th>
		<th>nominal</th>
		<th>px</th>
		<th>nominal</th>
		<th>px</th>
		<th>nominal</th>
		<th>px</th>
		<th>nominal</th>
		<th>px</th>
		<th>nominal</th>
	</tr>
	{% for t, d2 in d.detail %}
	<tr>
		<td>{{t}}</td>
		<td>{{d2.k1px}}</td>
		<td>{{d2.k1nominal}}</td>
		<td>{{d2.k2px}}</td>
		<td>{{d2.k2nominal}}</td>
		<td>{{d2.k3px}}</td>
		<td>{{d2.k3nominal}}</td>
		<td>{{d2.k4px}}</td>
		<td>{{d2.k4nominal}}</td>
		<td>{{d2.t1px}}</td>
		<td>{{d2.t1nominal}}</td>
		<td>{{d2.t2px}}</td>
		<td>{{d2.t2nominal}}</td>
		<td>{{d2.t3px}}</td>
		<td>{{d2.t3nominal}}</td>
		<td>{{d2.t4px}}</td>
		<td>{{d2.t4nominal}}</td>
		<td>{{d2.subtotal}}</td>
	</tr>
	{% endfor %}
	<tr>
		<td colspan="17"><b>Total</b></td>
		<td><b>{{d.total}}</b></td>
	</tr>
</table>
{% endfor %}