Merge remote-tracking branch 'origin/staging' into origin/production

This commit is contained in:
Linksehat Staging Server
2024-05-20 08:49:14 +07:00
107 changed files with 9366 additions and 105 deletions

View File

@@ -7,4 +7,6 @@ return [
'password' => 'Password wrong. Please try again.',
'read_notification' => 'Notification has been read.',
'already_exists' => 'Data already exists.',
'logout' => 'User logged out successfully.',
'token_expired' => 'Token has expired. Please re-request the token.'
];

View File

@@ -6,5 +6,7 @@ return [
'max' => [
'file' => ':attribute max size is :max.',
],
'email' => 'Invalid email format.'
];
'email' => 'Invalid email format.',
'regex' => 'The :attribute must contain at least one uppercase letter, one lowercase letter, and one numeric digit.',
'min' => 'The :attribute must be at least 8 characters.'
];

View File

@@ -7,4 +7,6 @@ return [
'password' => 'Password salah. Silakan coba lagi.',
'read_notification' => 'Notifikasi telah dibaca.',
'already_exists' => 'Data sudah ada.',
'logout' => 'User berhasil logout.',
'token_expired' => 'Token telah kedaluwarsa. Silakan minta ulang token.'
];

View File

@@ -6,5 +6,7 @@ return [
'max' => [
'file' => ':attribute tidak boleh melebihi :max.',
],
'email' => 'Format email salah.'
];
'email' => 'Format email salah.',
'regex' => ':attribute harus berisi setidaknya satu huruf besar, satu huruf kecil, dan satu digit angka.',
'min' => ':attribute setidaknya harus terdiri dari 8 karakter.'
];

View File

@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Verification Code</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: ##5eebd3;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 50px auto;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2 {
text-align: center;
margin-bottom: 20px;
}
.verification-code {
font-size: 24px;
font-weight: bold;
text-align: center;
padding: 20px;
background-color: #3fccb4;
color: #fff;
border-radius: 5px;
}
.info-text {
text-align: center;
margin-top: 20px;
}
.footer-text {
text-align: center;
margin-top: 30px;
color: #666;
}
</style>
</head>
<body>
<div class="container">
<h2>Verification Code</h2>
<div class="verification-code">{{$token}}</div>
<p class="info-text">This code is valid for 60 minutes.</p>
<p class="footer-text">If you did not request this code, please ignore this message.</p>
</div>
</body>
</html>

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>

View File

@@ -0,0 +1,129 @@
<!DOCTYPE html>
<html>
<head>
<title>E-Prescription</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center; /* Teks di tengah layar */
padding: 50px;
margin-top: 2px;;
font-size: 14px;
}
.header {
text-align: right;
margin-right: 2px;
margin-top: 0;
}
.header img {
max-width: 150px; /* Sesuaikan ukuran sesuai kebutuhan */
height: auto;
}
.right {
text-align: right; /* Teks di kanan */
}
.left {
text-align: left;
}
.footer {
width: 100%;
display: flex;
justify-content: space-between;
}
.left-footer {
bottom: 0;
position: fixed;
float: left;
text-align: left;
}
.right-footer {
bottom: 0;
position: fixed;
float: right;
text-align: right;
}
</style>
</head>
<body>
<div class="header">
<?php
// Path ke gambar
$gambarPath = public_path('images/logo-default.png');
// Membaca gambar dan mengonversi ke base64
$gambarBase64 = base64_encode(file_get_contents($gambarPath));
// Membuat tag img dengan base64 sebagai src
echo '<img src="data:image/png;base64,' . $gambarBase64 . '" alt="Logo" />';
?>
</div>
<h1 style="font-size: 14px;">E-PRESCRIPTION</h1>
<br>
<p class="right"><?=$tanggal_resep;?></p>
<p class="left"><?= isset($doctor) ? $doctor->user->detail->sTitlePrefix . ' ' . $doctor->user->sFirstName . ' ' . $doctor->user->sLastName . ' ' . $doctor->user->detail->sTitleSuffix : $prescription->sDokterName; ?></p>
<p class="left"><?= isset($doctor) ? $doctor->speciality->sSpesialis : '-'; ?></p>
<p class="left">Sip : <?= isset($doctor) ? $doctor->jadwalDokter[0]->sSIP : '-'; ?></p>
<br>
<p class="left">Patient Details</p>
<table width="100%">
<tbody>
<tr>
<td width="50%"><?=$pasien['name'];?></td>
<td width="50%"></td>
</tr>
<tr>
<td width="50%"><?=$pasien['tgl_lahir'];?></td>
<td width="50%"></td>
</tr>
<tr>
<td width="50%">(<?=$pasien['kelamin'];?>, <?=$pasien['umur'];?>)</td>
<td width="50%"></td>
</tr>
</tbody>
</table>
<hr>
<br>
<?php foreach($items as $item){ ?>
<table width="100%">
<tbody>
<tr>
<td width="5%">R/</td>
<td width="50%"><?=$item->sItemName;?></td>
<td width="20%">@</td>
<td width="25%"><?=$item->nQty;?> Per <?= $item->sSatuan; ?></td>
</tr>
<tr>
<td width="5%"></td>
<td width="50%"><?= $item->sSigna ? '('.$item->sSigna.')' : ''; ?> per day</td>
<td width="20%"></td>
<td width="25%"></td>
</tr>
<tr>
<td width="5%"></td>
<td width="50%"><?= $item->sNote; ?></td>
<td width="20%"></td>
<td width="25%"></td>
</tr>
</tbody>
</table>
<?php } ?>
<hr>
<p class="right">Valid Until <?=$valid_date;?></p>
<br>
<p class="left"></p>
<p class="left"></p>
<p class="left"></p>
<br>
<p class="left"></p>
<p class="left"></p>
<p class="left"></p>
<div class="footer">
<div class="left-footer">
<p>E-mail: helpdesk@linksehat.com</p>
</div>
<div class="right-footer">
<p>WA: +62 896-8177-3366</p>
</div>
</div>
</body>
</html>