<div class="the_struk" style="width:300px;padding:5px">
	<table border=0 style="width:300px">
		<tr>
			<td style="width:50px">
				<img src="{% nav public %}img/logo attaawun small.png" style="display:block;width:50px;height:50px"/>
			</td>
			<td>
				<div style="text-align:center;font-family:verdana;font-size:12px">
					KLINIK RUMAH SEHAT AT-TA'AWUN
				</div>
				<div style="text-align:center;font-family:verdana;font-size:9px">
					Ruko Grand Galaxy City Blok RSK 3 No. 11<br>
					Jl. Boulevard Raya Timur, Jaka Setia, Bekasi<br>
					Telp. : 021-82748989<br>
					E-mail : rs.attaawun@gmail.com
				</div>
			</td>
		</tr>
		<tr>
			<td colspan="2" style="border-top:2px solid #ccc;border-bottom:2px solid #ccc">
		</tr>
		<tr>
			<td colspan="2" style="height:30px">
				<h2 style="text-align:center;font-family:verdana;font-size:13px">
					BUKTI BEROBAT JALAN
				</h2>
			</td>
		</tr>
	</table>
	<table style="font-family:calibri;font-size:12px">
		<tr>
			<td style="width:120px"><b>No. RM</b></td>
			<td>:</td>
			<td style="width:175px;font-size:20px"><b>{{data.kunjungan.gol}}-{{ data.kunjungan.pasien.no_rekmed }}</b></td>
		</tr>
		<tr>
			<td>Tgl Kunjungan</td>
			<td>:</td>
			<td>{{ data.kunjungan.tanggal}} - {{ data.kunjungan.jam}}</td>
		</tr>
		<tr>
			<td>Nama Pasien</td>
			<td>:</td>
			<td>{{ data.kunjungan.pasien.nama }}</td>
		</tr>
		<tr>
			<td>Poli / Dokter</td>
			<td>:</td>
			<td>{{ data.kunjungan.poli }} / {{ data.kunjungan.dokter }}</td>
		</tr>
		<tr>
			<td colspan="3" style="padding-top:10px">
				<b><i>TINDAKAN DAN LAYANAN MEDIS</i></b>
			</td>
		</tr>
	</table>
	<table style="font-family:calibri;font-size:12px;border-top:2px solid #ccc">
		<tr>
			<th style="width:220px;border-bottom:2px solid #ccc">Jenis Pemeriksaan</th>
			<th style="width:80px;border-bottom:2px solid #ccc">Biaya</th>
		</tr>
		{% for b in data.biaya %}
		{% if b.nama == 'Registrasi' %}
		<tr>
			<td>{{b.nama}}</td>
			<td style="text-align:right">{{ b.harga | currency }}</td>
		</tr>
		{% endif %}
		{% endfor %}
		{% for t in data.tindakan %}
		<tr>
			<td>{{t.nama}}</td>
			<td style="text-align:right">{{ t.harga | currency }}</td>
		</tr>
		{% endfor %}
		<tr>
			<td>Obat</td>
			<td style="text-align:right">{{ totalobat | currency }}</td>
		</tr>
		{% for b in data.biaya %}
		{% if b.nama != 'Registrasi' %}
		<tr>
			<td>{{b.nama}}</td>
			<td style="text-align:right">{{ b.harga | currency }}</td>
		</tr>
		{% endif %}
		{% endfor %}
		<tr>
			<td style="border-top:2px solid #ccc;border-bottom:2px solid #ccc">TOTAL BIAYA RAWAT JALAN</td>
			<td style="font-size:20px;text-align:right;border-top:2px solid #ccc;border-bottom:2px solid #ccc"><b>{{ total | currency }}</b></td>
		</tr>
	</table>
	<table style="font-size:12px">
		{% if data.pembayaran.cash > 0 %}
		<tr>
			<td style="width:120px"></td>
			<td style="width:100px">Cash</td>
			<td style="width:80px;text-align:right">{{ data.pembayaran.cash | currency }}</td>
		</tr>
		{% endif %}
		{% if data.pembayaran.transfer > 0 %}
		<tr>
			<td style="width:120px"></td>
			<td style="width:100px">Transfer</td>
			<td style="width:80px;text-align:right">{{ data.pembayaran.transfer | currency }}</td>
		</tr>
		{% endif %}
		{% if data.pembayaran.qris > 0 %}
		<tr>
			<td style="width:120px"></td>
			<td style="width:100px">QRIS</td>
			<td style="width:80px;text-align:right">{{ data.pembayaran.qris | currency }}</td>
		</tr>
		{% endif %}
		{% if data.pembayaran.hutang > 0 %}
		<tr>
			<td style="width:120px"></td>
			<td style="width:100px">Sisa</td>
			<td style="width:80px;text-align:right">{{ data.pembayaran.hutang | currency }}</td>
		</tr>
		{% endif %}
		<tr>
			<td colspan=3 style="width:300px;text-align:right;padding-top:30px">Bekasi, {{ data.kunjungan.tanggal}}</td>
		</tr>
	</table>
	<br/>
	<div style="font-size:10px;height:20px;width:300px;text-align:bottom">(Periksa kembali tagihan dan uang kembalian anda)</div>
</div>