This commit is contained in:
2024-05-16 17:12:51 +07:00
parent 0ac3e4d451
commit f838b37045

View File

@@ -0,0 +1,297 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@php
$dynamicVariableName = 'font_size_' . now()->timestamp;
$$dynamicVariableName = 10;
@endphp
<style>
.triangle1 {
width: 0;
height: 0;
border-left: 10.24px solid transparent;
border-right: 318.24px solid transparent;
border-bottom: 75.5px solid #008C8C;
position: absolute;
top: -55.12px;
left: -60.91px;
transform: rotate(-12deg);
}
.triangle2 {
width: 0;
height: 0;
border-left: 10.24px solid transparent;
border-right: 550.24px solid transparent;
border-bottom: 110.5px solid #19BBBB;
position: absolute;
top: -55.12px;
left: -100.91px;
transform: rotate(-20deg);
}
body {
margin: 0;
padding: 0;
height: 100vh;
background-color: #ffffff;
/* Ganti dengan warna latar belakang yang diinginkan */
}
.content-<?php echo now()->timestamp; ?> {
padding: 20px;
text-align: left;
font-family: 'Calibri', sans-serif;
}
.content-<?php echo now()->timestamp; ?> img {
width: 15%;
max-width: 600px; /* batasan lebar maksimum gambar */
margin-top: 1px; /* jarak antara segitiga dan gambar */
margin-bottom: 5px;
}
.corner-text-<?php echo now()->timestamp; ?> {
font-size: {{ $$dynamicVariableName }}px;
color: #666666;
position: absolute;
}
.top-right-<?php echo now()->timestamp; ?> {
top: 10px;
right: 10px;
}
.bottom-right-<?php echo now()->timestamp; ?> {
bottom: 10px;
right: 10px;
text-align: right;
}
.bottom-left-<?php echo now()->timestamp; ?> {
bottom: 10px;
left: 10px;
text-align: left;
}
.title-container-<?php echo now()->timestamp; ?> {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
position: relative;
margin-top: 1px;
}
.title-<?php echo now()->timestamp; ?> {
font-size: 12px;
margin-bottom: 5px;
}
.additional-text-<?php echo now()->timestamp; ?> {
font-size: 11px;
}
.claim-info-<?php echo now()->timestamp; ?> {
font-size: {{ $$dynamicVariableName }}px;
/* color: #008C8C; */
text-align: justify;
margin: 0;
padding: 0;
margin-top: 2px;
line-height: 1; /* Atur nilai line-height menjadi 1 atau 100% */
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 1px;
}
table,
th,
td {
/* border: 1px solid #008C8C; */
}
th,
td {
padding: 4px;
text-align: left;
}
.hot-line-<?php echo now()->timestamp; ?> {
background-color: #048B8C;
text-align: center;
align-items: center;
font-size: {{ $$dynamicVariableName }}px;
margin-top: 1px;
padding: 2px;
color: #ffffff;
}
.txt-tindakan-<?php echo now()->timestamp; ?> {
margin-top: 1px;
font-size: {{ $$dynamicVariableName }}px;
}
.txt-pernyataan-<?php echo now()->timestamp; ?> {
margin-top: 5px;
font-size: {{ $$dynamicVariableName }}px;
}
.title-container-page-<?php echo now()->timestamp; ?> {
display: flex;
flex-direction: column;
text-align: justify;
position: relative;
/* border: 1px solid; Warna garis tepi dan lebar dapat disesuaikan */
padding: 3px;
margin-left: auto;
margin-right: auto;
margin-top: 5px;
}
.txt-syarat-<?php echo now()->timestamp; ?> {
font-size: {{ $$dynamicVariableName }}px;
text-align: left;
}
.bottom-left-ttd-<?php echo now()->timestamp; ?> {
color: #000000;
bottom: 200px;
left: 10px;
text-align: left;
}
.bottom-left-ttd-1-<?php echo now()->timestamp; ?> {
color: #000000;
bottom: 290px;
left: 10px;
text-align: left;
}
.bottom-left-ttd-2-<?php echo now()->timestamp; ?> {
color: #000000;
bottom: 225px;
left: 30px;
text-align: left;
}
.bottom-right-ttd-<?php echo now()->timestamp; ?> {
color: #000000;
bottom: 200px;
right: 10px;
text-align: left;
}
.bottom-right-ttd-1-<?php echo now()->timestamp; ?> {
color: #000000;
bottom: 290px;
right: 10px;
text-align: left;
}
.bottom-right-ttd-2-<?php echo now()->timestamp; ?> {
color: #000000;
bottom: 225px;
right: 30px;
text-align: left;
}
.bottom-right1-ttd-<?php echo now()->timestamp; ?> {
color: #000000;
bottom: 100px;
right: 10px;
text-align: left;
}
.logo_company-<?php echo now()->timestamp; ?> {
position: absolute;
top: -35.12px;
left: -35.91px;
width: 10%;
max-width: 45px; /* batasan lebar maksimum gambar */
margin-top: 1px; /* jarak antara segitiga dan gambar */
margin-bottom: 5px;
}
.container2-<?php echo now()->timestamp; ?>:after {
content: "";
display: table;
clear: both;
}
.container2-<?php echo now()->timestamp; ?> > div {
float: left; /* Membuat elemen berdampingan */
width: 48%; /* Atur lebar elemen agar mereka tidak tumpang tindih */
box-sizing: border-box; /* Menghitung padding dan border ke dalam lebar elemen */
}
</style>
</head>
<body>
<div class="triangle2"></div>
<div class="triangle1"></div>
<div class="content-<?php echo now()->timestamp; ?>">
<div class="corner-text-<?php echo now()->timestamp; ?> top-right-<?php echo now()->timestamp; ?>">
The Future Of Healthcare At Your Fingertips
</div>
<img src="data:image/png;base64,{{ base64_encode(file_get_contents( public_path('images/logo-default.png') )) }}">
<div class="title-container-<?php echo now()->timestamp; ?>">
<div class="title-<?php echo now()->timestamp; ?>">
<b>SURAT KETERANGAN SAKIT</b>
</div>
</div>
<div class="hot-line-<?php echo now()->timestamp; ?>">
</div>
<div class="txt-tindakan-<?php echo now()->timestamp; ?>">
Menerangkan Bahwa :
</div>
<div class="container2-<?php echo now()->timestamp; ?>">
<div>
<table class="claim-info-<?php echo now()->timestamp; ?>">
<tr>
<td style="width: 20%;">Nama</td>
<td style="width: 1%;">:</td>
<td style="width: 29%;"><b>{{ $name }} </b></td>
</tr>
<tr>
<td>Umur</td>
<td>:</td>
<td>{{ $age }}</td>
</tr>
<tr>
<td>Pekerjaan</td>
<td>:</td>
<td>{{ $work }}</td>
</tr>
<tr>
<td>Alamat</td>
<td>:</td>
<td>{{ $address }}</td>
</tr>
</table>
</div>
</div>
<div class="txt-pernyataan-<?php echo now()->timestamp; ?>">
Setelah diperiksa kesehatannya ternyata pada saat ini dalam keadaan SAKIT dan memerlukan istirahat selama {{ $calculate_date }} hari, terhitung dari tanggal {{ \Carbon\Carbon::parse($start_date)->format('d M Y') }} sampai {{ \Carbon\Carbon::parse($end_date)->format('d M Y') }}.
<br>
Demikianlah Surat Keterangan ini untuk dapat dipergunakan seperlunya.
</div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-1-<?php echo now()->timestamp; ?> ">
{{ \Carbon\Carbon::parse($date)->format('d M Y') }}
<br>
Pemeriksa,
</div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-2-<?php echo now()->timestamp; ?> ">
</div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-<?php echo now()->timestamp; ?> ">
( {{ $doctor_name }} )
</div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-<?php echo now()->timestamp; ?>">
<b>PT Link Medis Sehat</b><br>
<b>Primaya Hospital Corporate</b><br>
Graha Cempaka Mas Blok D5-6<br>
Jl. Let. Jend. Suprapto, Jakarta Pusat 10640, Indonesia<br>
<b>Telp</b> (021) 4217746/47
</div>
</div>
</body>
</html>