From 44a613d9a5f8bff300d739de75804664311c068c Mon Sep 17 00:00:00 2001 From: ilmedova Date: Mon, 5 Dec 2022 14:40:50 +0500 Subject: [PATCH] check the view --- app/Notifications/ApplicationApproved.php | 5 +- app/Notifications/ApplicationRefined.php | 5 +- app/Notifications/NewMessage.php | 5 +- app/Notifications/NewTicket.php | 5 +- public/img/mini-logo.png | Bin 0 -> 900 bytes .../application_approved.blade.php | 84 ++++++++++++++++++ .../application_refined.blade.php | 84 ++++++++++++++++++ .../notifications/new_message.blade.php | 84 ++++++++++++++++++ .../emails/notifications/new_ticket.blade.php | 84 ++++++++++++++++++ 9 files changed, 344 insertions(+), 12 deletions(-) create mode 100644 public/img/mini-logo.png create mode 100644 resources/views/emails/notifications/application_approved.blade.php create mode 100644 resources/views/emails/notifications/application_refined.blade.php create mode 100644 resources/views/emails/notifications/new_message.blade.php create mode 100644 resources/views/emails/notifications/new_ticket.blade.php diff --git a/app/Notifications/ApplicationApproved.php b/app/Notifications/ApplicationApproved.php index a0d3edd9..3385c3ea 100644 --- a/app/Notifications/ApplicationApproved.php +++ b/app/Notifications/ApplicationApproved.php @@ -7,7 +7,7 @@ use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; -class ApplicationApproved extends Notification +class ApplicationApproved extends Notification implements ShouldQueue { use Queueable; @@ -42,8 +42,7 @@ public function toMail($notifiable) { return (new MailMessage) ->from(config('settings.smtp_username'), env('MAIL_FROM_NAME', 'Birzha legalizasia')) - ->greeting('Hello!') - ->line('Your application has been approved!'); + ->view('emails.notifications.application_approved'); } /** diff --git a/app/Notifications/ApplicationRefined.php b/app/Notifications/ApplicationRefined.php index fbbe7381..c0e8ec5f 100644 --- a/app/Notifications/ApplicationRefined.php +++ b/app/Notifications/ApplicationRefined.php @@ -7,7 +7,7 @@ use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; -class ApplicationRefined extends Notification +class ApplicationRefined extends Notification implements ShouldQueue { use Queueable; @@ -42,8 +42,7 @@ public function toMail($notifiable) { return (new MailMessage) ->from(config('settings.smtp_username'), env('MAIL_FROM_NAME', 'Birzha legalizasia')) - ->greeting('Hello!') - ->line('Your application has been refined!'); + ->view('emails.notifications.application_refined'); } /** diff --git a/app/Notifications/NewMessage.php b/app/Notifications/NewMessage.php index 071b8776..cd192a91 100644 --- a/app/Notifications/NewMessage.php +++ b/app/Notifications/NewMessage.php @@ -7,7 +7,7 @@ use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; -class NewMessage extends Notification +class NewMessage extends Notification implements ShouldQueue { use Queueable; @@ -42,8 +42,7 @@ public function toMail($notifiable) { return (new MailMessage) ->from(config('settings.smtp_username'), env('MAIL_FROM_NAME', 'Birzha legalizasia')) - ->greeting('Hello!') - ->line('You have new message!'); + ->view('emails.notifications.new_message'); } /** diff --git a/app/Notifications/NewTicket.php b/app/Notifications/NewTicket.php index 32ae364f..a765cbad 100644 --- a/app/Notifications/NewTicket.php +++ b/app/Notifications/NewTicket.php @@ -7,7 +7,7 @@ use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; -class NewTicket extends Notification +class NewTicket extends Notification implements ShouldQueue { use Queueable; @@ -42,8 +42,7 @@ public function toMail($notifiable) { return (new MailMessage) ->from(config('settings.smtp_username'), env('MAIL_FROM_NAME', 'Birzha legalizasia')) - ->greeting('Hello!') - ->line('You have new ticket!'); + ->view('emails.notifications.new_ticket'); } /** diff --git a/public/img/mini-logo.png b/public/img/mini-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..c92336b7e0a3b0edffc0b9c022ac1033910604eb GIT binary patch literal 900 zcmV-~1AF|5P)h8pHVec8LmU_?F{D|L5DO`y z0~1|X!I`_T7m+d`Au*to1s38A6-!0J04RJ&=~RJQa0CcZkitDDXB@}&os)CoSaLt? z%iS+8|2w<21f8wbYH8%hJ7ibMuF&Hn{%(@-Yh*7-l4PJo!Y>4?cd#S&1rCpBUFuY} z9A~M+mO(Ixxp)|oACPmUe}~h4kw{lI1lERH&$+gHjIZd zIpf(xCdbt?7nu{zy3+Bk6590=R9@}$bgG`1g7VrT7uruWeRK}Ag=@nB<0ylohYlVT zJreLB=#haby87r6uvQLdV2>T2hqIY0!^yCGC~0MwZu#sy1L3z_8&Fn{d#becXj3&y=guEC7w_hI*Q!){Bl51(y=nwlc} zG_xP(vKEBJ-uneRu}gXx6!J-x*Ro7>Aee>i7wpE;vhtvP!8}+TsHkV`%(6aD%=Cx1 zFRjdC46w59jfM6EM}c+1);H>&Se{Dzf;BS9njVvkb{eL#VX)X1S02MB&w-KfLnAhK zAqANNz)f<`lGj*aXrE_QmW9Rh%t_})JF&HGvPzr;Fmyh!-whOfbx>t#8?I%IqTN_) zl@J8x!7?jM-xW^6T7A!s0ali7BEY;@ZZI}9e}a`+Cl-$@2g&W_-2XRlmHdZ;W*Rg5 z;A!1HiEn(+t0glMbhO+mKxvCFtHm2_w0ik*&tEBCJ%qVha)UK8u`2KQz}O1Wxzqcg zEti<+Sb)QzV*}n a==LAn^Hq>&ZTS@d0000 + + + + + + + + + Email template + + + + + + +
+
+ + + + + + + + + + + + + + + + + + +
+
+ + +

+ Your application has been approved. +

+
+
+

+ Helllo! +

+
+

+ Your application has been approved! +

+
+

+ Visit + this link + to see more information on your application status +

+
+ +
+
+ + + + diff --git a/resources/views/emails/notifications/application_refined.blade.php b/resources/views/emails/notifications/application_refined.blade.php new file mode 100644 index 00000000..78fe317f --- /dev/null +++ b/resources/views/emails/notifications/application_refined.blade.php @@ -0,0 +1,84 @@ + + + + + + + + + + Email template + + + + + + +
+
+ + + + + + + + + + + + + + + + + + +
+
+ + +

+ Your application has been refined. +

+
+
+

+ Helllo! +

+
+

+ Your application has been refined! +

+
+

+ Visit + this link + to see more information on your application status +

+
+ +
+
+ + + + diff --git a/resources/views/emails/notifications/new_message.blade.php b/resources/views/emails/notifications/new_message.blade.php new file mode 100644 index 00000000..9e0a687e --- /dev/null +++ b/resources/views/emails/notifications/new_message.blade.php @@ -0,0 +1,84 @@ + + + + + + + + + + Email template + + + + + + +
+
+ + + + + + + + + + + + + + + + + + +
+
+ + +

+ Подтвердите адрес электронной почты. +

+
+
+

+ Здравствуйте, (имя) . +

+
+

+ Вы успешно зарегистрировались на сайте Государственной товарно-сырьевой биржи + Туркменистана. +

+
+

+ Чтобы подтвердить адрес электронной почты и полностью активировать учетную запись, + перейдите по ссылке ... +

+
+ +
+
+ + + + diff --git a/resources/views/emails/notifications/new_ticket.blade.php b/resources/views/emails/notifications/new_ticket.blade.php new file mode 100644 index 00000000..9e0a687e --- /dev/null +++ b/resources/views/emails/notifications/new_ticket.blade.php @@ -0,0 +1,84 @@ + + + + + + + + + + Email template + + + + + + +
+
+ + + + + + + + + + + + + + + + + + +
+
+ + +

+ Подтвердите адрес электронной почты. +

+
+
+

+ Здравствуйте, (имя) . +

+
+

+ Вы успешно зарегистрировались на сайте Государственной товарно-сырьевой биржи + Туркменистана. +

+
+

+ Чтобы подтвердить адрес электронной почты и полностью активировать учетную запись, + перейдите по ссылке ... +

+
+ +
+
+ + + +