rsabhk_hsr/resources/views/module/transaksi/laporan_pdf.blade.php
2025-04-27 21:14:59 +07:00

106 lines
2.5 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<title>Data Transaksi Pasien</title>
<style>
/* Gaya tabel */
table {
border-collapse: collapse;
width: 100%;
}
/* Gaya sel header */
th {
border-bottom: 1px solid black;
text-align: left;
padding: 5px;
}
/* Gaya sel data */
td {
border-bottom: 1px solid black;
padding: 5px;
}
/* Gaya untuk border dalam horizontal */
tr:nth-child(even) td {
border-top: 1px solid black;
}
thead{
background-color: silver;
}
/* Gaya untuk judul tabel */
.table-title {
text-align: center;
font-size: 24px;
/* font-weight: bold; */
/* padding: 10px; */
}
/* posisi text laporan yg dibawah kanan tengah */
.center-right {
text-align: right;
padding-left: 60%;
}
.text-center {
text-align: center;
}
.logo-container {
text-align: center;
}
.logo {
width: 90%;
margin: 0 auto;
}
</style>
</head>
<body>
<p class="table-title">DATA TRANSAKSI PASIEN</p>
<table>
<thead>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>Nama Pasien</th>
<th>Nama Tindakan</th>
<th>Jumlah</th>
<th>Subtotal</th>
<th>Potongan</th>
<th>Total</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach ($transaksi as $data)
<tr>
<td>{{ $no++ }}</td>
<td>{{ date('d/m/Y', strtotime($data->created_at)) }}</td>
<td>{{ $data->registrasi->pasien->nama }}</td>
<td>{{ $data->tindakan->nama }}</td>
<td>{{ $data->jml_tindakan }}</td>
<td>{{ $data->subtotal }}</td>
<td>{{ $data->potongan }}</td>
<td>{{ $data->total }}</td>
</tr>
@endforeach
</tbody>
</table>
<div class="center-right">
<div class="text-center">
@php
$tanggal = \Carbon\Carbon::now();
@endphp
<p>Jakarta, {{ $tanggal->locale('id')->isoFormat('dddd D MMMM YYYY') }}</p>
</div>
</div>
</body>
</html>