From 6af1cc1ce5de787cacd7a4241e03149477505d45 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Tue, 18 Feb 2025 16:35:42 +0700 Subject: [PATCH] feat(email-blast): tambahkan kelas EmailBlastMail dan tampilan email blast - Menambahkan kelas EmailBlastMail untuk mengelola pengiriman email blast. - Mengimplementasikan metode build untuk mengatur subjek dan konten email. - Menambahkan tampilan blast.blade.php untuk format email blast. --- app/Mail/EmailBlastMail.php | 29 ++++++++++++++++++++++++++ resources/views/emails/blast.blade.php | 24 +++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 app/Mail/EmailBlastMail.php create mode 100644 resources/views/emails/blast.blade.php diff --git a/app/Mail/EmailBlastMail.php b/app/Mail/EmailBlastMail.php new file mode 100644 index 0000000..087ca5b --- /dev/null +++ b/app/Mail/EmailBlastMail.php @@ -0,0 +1,29 @@ +emailBlastHistory = $emailBlastHistory; + } + + public function build() + { + return $this->subject($this->emailBlastHistory->subject) + ->view('webstatement::emails.blast') + ->with([ + 'content' => $this->emailBlastHistory->content + ]); + } +} diff --git a/resources/views/emails/blast.blade.php b/resources/views/emails/blast.blade.php new file mode 100644 index 0000000..3cf1761 --- /dev/null +++ b/resources/views/emails/blast.blade.php @@ -0,0 +1,24 @@ + + + + + + Email Blast + + + + {!! $content !!} + +