Files
aso/resources/views/pdf/view.blade.php
2023-12-26 16:41:45 +07:00

38 lines
949 B
PHP

<!-- your/view.blade.php -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ivan Julian</title>
<style>
body {
color: #fff;
}
h1, p {
/* Gaya teks Anda */
}
img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.3; /* Sesuaikan dengan tingkat kecerahan yang diinginkan */
z-index: -1; /* Letakkan gambar di belakang konten lain */
}
</style>
</head>
<body>
<!-- Sisipkan gambar sebagai elemen img -->
<img src="{{public_path('images/logo-linksehat-vertical-default.png')}}" width="100px">
<!-- Konten HTML -->
<h1>Hello, {{ $key }}</h1>
<p>This is a simple example for generating PDF in Laravel using Dompdf.</p>
</body>
</html>