feat(email-blast): perbarui tampilan dan logika pengiriman email blast
- Tambahkan pengambilan data penerima dari model Customer. - Modifikasi konstruktor EmailBlastMail untuk menerima objek penerima. - Perbarui tampilan email blast untuk menampilkan subjek dan nama penerima. - Tambahkan styling baru untuk tampilan email agar lebih menarik.
This commit is contained in:
@@ -3,22 +3,69 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Email Blast</title>
|
||||
<title>{{ $subject }}</title>
|
||||
<style>
|
||||
body{
|
||||
font-family: monospace;
|
||||
body {
|
||||
font-family: 'Arial', sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.ql-align-center{
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 20px auto;
|
||||
background-color: #ffffff;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 0 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
.header {
|
||||
background-color: #35c1d080;
|
||||
color: #ffffff;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
.ql-align-right{
|
||||
text-align: right;
|
||||
.header h1 {
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
}
|
||||
.content {
|
||||
padding: 30px;
|
||||
}
|
||||
.footer {
|
||||
background-color: #35c1d080;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
}
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
background-color: #0056b3;
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
border-radius: 5px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{!! $content !!}
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>{{ $subject }}</h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>Halo {{ $recipient->name }},</p>
|
||||
|
||||
{!! $content !!}
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>© 2023 Bank Artha Graha Internasional. All rights reserved.</p>
|
||||
<p>Jika Anda memiliki pertanyaan, silakan hubungi customer service kami.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user