144 lines
4.3 KiB
PHP
144 lines
4.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Nota Pembayaran</title>
|
|
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background-color: #fff;
|
|
position: relative;
|
|
}
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
.content {
|
|
margin-bottom: 30px;
|
|
padding-bottom: 20px;
|
|
}
|
|
.info {
|
|
margin-bottom: 15px;
|
|
}
|
|
.info table {
|
|
width: 100%;
|
|
}
|
|
.info table th,
|
|
.info table td {
|
|
padding: 8px;
|
|
text-align: left;
|
|
}
|
|
.signature {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
font-style: italic;
|
|
font-size: 12px;
|
|
}
|
|
.table-bordered th,
|
|
.table-bordered td {
|
|
border: 1px solid #ddd;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
@foreach ($kunjungan as $data)
|
|
<h2>KLINIK PRATAMA AISYIYAH AMBULU</h2>
|
|
<p>JL.Hasanudin Gg.III No.94 Telp.085234199394</p>
|
|
<p>AMBULU - JEMBER</p>
|
|
<p>===============================================================================================</p>
|
|
</div>
|
|
<div class="content">
|
|
<div class="info">
|
|
<div class="header">
|
|
<h2 class="text-align-center">Bukti Pembayaran</h2>
|
|
</div>
|
|
<table>
|
|
<tr>
|
|
<th>Nama Lengkap</th>
|
|
<td>: {{ $data->nama_pasien }}</td>
|
|
<th></th>
|
|
<td></td>
|
|
<th></th>
|
|
<td></td>
|
|
<th></th>
|
|
<td></td>
|
|
<th></th>
|
|
<td></td>
|
|
<th></th>
|
|
<td></td>
|
|
<th></th>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Nama Dokter</th>
|
|
<td>: {{ $data->nama_dokter }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>NO Periksa</th>
|
|
<td>: {{ $data->no_periksa }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Biaya</th>
|
|
<td>: {{ $data->askes }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>NO Dana Sehat</th>
|
|
<td>: {{ $data->no_dana_sehat }}</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<?php $totalhargaobat = 0?>
|
|
<td>Untuk Pembayaran</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<th>Biaya Tindakan</th>
|
|
<td>: Rp. {{ number_format($totalhargaobat + $data->total_harga_tindakan, 0, ',', '.') }} </td>
|
|
</tr>
|
|
<tr>
|
|
@foreach ($resep as $item)
|
|
<tr>
|
|
<?php $item->harga = ($item->pembelian == "sendiri") ? 0 : $item->harga;?>
|
|
<td></td>
|
|
<th>Biaya Obat</th>
|
|
<td style="border-bottom: 1px solid black;">: Rp. {{ number_format(($item->harga*$item->jumlah), 0, ',', '.') }}</td>
|
|
<?php $totalhargaobat += ($item->harga*$item->jumlah)?>
|
|
|
|
</tr>
|
|
@endforeach
|
|
<tr>
|
|
<th>Total Pembayaran</th>
|
|
<td></td>
|
|
<td>: Rp. {{ number_format($totalhargaobat + $data->total_harga_tindakan, 0, ',', '.') }}</td>
|
|
|
|
</tr>
|
|
</table>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
<div class="signature">
|
|
@foreach ($kunjungan as $data)
|
|
Ambulu, {{ \Carbon\Carbon::parse($data->tgl_kunjungan)->translatedFormat('d F Y') }} <br>
|
|
@endforeach
|
|
Tanda tangan,<br><br><br>
|
|
.................
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<script>
|
|
// Mencetak surat secara otomatis saat halaman dimuat
|
|
window.onload = function() {
|
|
window.print();
|
|
};
|
|
</script>
|