File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,27 @@ final class SendSponsorThanksMail extends Mailable
14
14
{
15
15
use Queueable, SerializesModels;
16
16
17
- public function __construct (string $ name ) {}
17
+ protected $ name ;
18
+
19
+ public function __construct (string $ name )
20
+ {
21
+ $ this ->name = $ name ;
22
+ }
18
23
19
24
public function envelope (): Envelope
20
25
{
21
26
return new Envelope (
22
- subject: __ ('emails.subject ' ),
27
+ subject: __ ('emails/sponsor .subject ' ),
23
28
);
24
29
}
25
30
26
31
public function content (): Content
27
32
{
28
33
return new Content (
29
34
markdown: 'emails.send-sponsor-thanks-mail ' ,
35
+ with: [
36
+ 'name ' => $ this ->name ,
37
+ ],
30
38
);
31
39
}
32
40
Original file line number Diff line number Diff line change 2
2
3
3
<x-mail::panel >
4
4
5
- {!! __ (' emails.greeting' , [' name' => $name ]) ! !}
5
+ {!! __ (' emails/sponsor .greeting' , [' name' => $name ]) ! !}
6
6
7
- {!! __ (' emails.thanks' ) ! !}
7
+ {!! __ (' emails/sponsor .thanks' ) ! !}
8
8
9
- {!! __ (' emails.impact' ) ! !}
9
+ {!! __ (' emails/sponsor .impact' ) ! !}
10
10
11
11
</x-mail::panel >
12
12
<p >
13
- {!! __ (' messages .closing' ) ! !} <br >
14
- {!! __ (' messages .team' ) ! !}
13
+ {!! __ (' emails/sponsor .closing' ) ! !} <br >
14
+ {!! __ (' emails/sponsor .team' ) ! !}
15
15
</p >
16
16
</x-mail::message >
You can’t perform that action at this time.
0 commit comments