2025-04-27 23:22:00 +07:00

43 lines
1.1 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Invoice #{{ $transaksi->id }}</title>
<style>
body { font-family: sans-serif; font-size: 12px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
th { background-color: #f2f2f2; }
.total { text-align: right; margin-top: 20px; font-size: 14px; }
</style>
</head>
<body>
<h2>INVOICE</h2>
<p>No Invoice: <strong>{{ $transaksi->id }}</strong></p>
<p>Tanggal: <strong>{{ $transaksi->created_at->format('d/m/Y') }}</strong></p>
<p>Pasien: <strong>{{ $transaksi->register->patient->name }}</strong></p>
<table>
<thead>
<tr>
<th>Tindakan</th>
<th>Harga</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ $transaksi->tindakan?->name }}</td>
<td>Rp {{ number_format($transaksi->price, 0, ',', '.') }}</td>
</tr>
</tbody>
</table>
<div class="total">
<strong>Total: Rp {{ number_format($transaksi->price, 0, ',', '.') }}</strong>
</div>
</body>
</html>