112 lines
2.7 KiB
PHP
112 lines
2.7 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Data Registrasi 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 REGISTRASI PASIEN</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Tgl Registrasi</th>
|
|
<th>Nama Pasien</th>
|
|
<th>Tgl Lahir</th>
|
|
<th>Jenis Kelamin</th>
|
|
<th>Asuransi</th>
|
|
<th>Ruang Pelayanan</th>
|
|
<th>Pegawai</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php
|
|
$no = 1;
|
|
@endphp
|
|
@foreach ($registrasi as $data)
|
|
<tr>
|
|
<td>{{ $no++ }}</td>
|
|
<td>{{ date('d/m/Y', strtotime($data->tgl_registrasi)) }}</td>
|
|
<td>{{ $data->pasien->nama }}</td>
|
|
<td>{{ $data->pasien->tgl_lahir }}</td>
|
|
<td>
|
|
@if ($data->pasien->jenis_kelamin === "male")
|
|
Laki-laki
|
|
@else
|
|
Perempuan
|
|
@endif
|
|
</td>
|
|
<td>{{ $data->asuransi->nama ?? null }}</td>
|
|
<td>{{ $data->ruangPelayanan->nama}}</td>
|
|
<td>{{ $data->pegawai->nama }}</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>
|