File tree Expand file tree Collapse file tree 3 files changed +29
-2
lines changed
Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,14 @@ public function boot()
2424 __DIR__ .'/app/Tabels ' => app_path ('Tables ' ),
2525 ], 'tables ' );
2626
27+ $ this ->publishes ([
28+ __DIR__ .'/resources/views ' => resource_path ('views ' ),
29+ ], 'email-templates ' );
30+
31+ $ this ->publishes ([
32+ __DIR__ .'/resources/views ' => resource_path ('views ' ),
33+ ], 'vuedatatable-email-templates ' );
34+
2735 $ this ->mergeConfigFrom (__DIR__ .'/config/datatable.php ' , 'enso.datatable ' );
2836 }
2937
Original file line number Diff line number Diff line change @@ -36,8 +36,12 @@ public function toMail($notifiable)
3636 {
3737 return (new MailMessage ())
3838 ->subject (__ ('Export Notification ' ))
39- ->line (__ ('You will find attached the requested report. ' ))
40- ->line (__ ('Thank you for using our application! ' ))
39+ ->view ('emails.exportDone ' , [
40+ 'lines ' => [
41+ __ ('You will find attached the requested report. ' ),
42+ __ ('Thank you for using our application! ' ),
43+ ],
44+ ])
4145 ->attach ($ this ->file );
4246 }
4347
Original file line number Diff line number Diff line change 1+ @extends (' emails.layouts.main' )
2+
3+ @section (' content' )
4+ <table style =" margin : 0 auto ;" cellspacing =" 0" cellpadding =" 0" class =" force-width-80" >
5+ <tr >
6+ <td style =" text-align :left ; color : #6f6f6f ;" class =" spaced-out-lines" >
7+ @foreach ($lines as $line )
8+ <p >
9+ {{ $line } }
10+ <p >
11+ @endforeach
12+ </td >
13+ </tr >
14+ </table >
15+ @endsection
You can’t perform that action at this time.
0 commit comments