You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/Core/Database/Seeders/EmailTemplatesSeeder.php
+23-19Lines changed: 23 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
namespaceModules\Core\Database\Seeders;
4
4
5
+
useIlluminate\Support\Facades\Log;
5
6
useModules\Core\Models\EmailTemplate;
6
7
7
8
class EmailTemplatesSeeder extends \Modules\Core\Database\Seeders\AbstractSeeder
@@ -10,34 +11,37 @@ public function run(?int $companyId = null): void
10
11
{
11
12
$templates = [
12
13
[
13
-
'title' => 'invoice_sent',
14
-
'subject' => 'New Invoice: {{ invoice.number }}',
15
-
'body' => "Dear {{ customer.name }},\n\nA new invoice #{{ invoice.number }} has been created for you.\n\nAmount Due: {{ invoice.total_formatted }}\nDue Date: {{ invoice.due_date_formatted }}\n\nYou can view and pay your invoice by clicking the link below:\n{{ invoice.public_url }}\n\nThank you for your business!\n\n{{ company.name }}",
14
+
'title' => 'invoice_sent',
15
+
'subject' => 'New Invoice: {{ invoice.number }}',
16
+
'body' => "Dear {{ customer.name }},\n\nA new invoice #{{ invoice.number }} has been created for you.\n\nAmount Due: {{ invoice.total_formatted }}\nDue Date: {{ invoice.due_date_formatted }}\n\nYou can view and pay your invoice by clicking the link below:\n{{ invoice.public_url }}\n\nThank you for your business!\n\n{{ company.name }}",
17
+
'company_id' => $companyId,
16
18
],
17
19
[
18
-
'title' => 'payment_received',
19
-
'subject' => 'Payment Received - Invoice #{{ invoice.number }}',
20
-
'body' => "Dear {{ customer.name }},\n\nWe have received your payment of {{ payment.amount_formatted }}\nFor Invoice: {{ invoice.number }}\nPayment Date: {{ payment.paid_at_formatted }}\n\nThank you for your payment!\n\n{{ company.name }}",
20
+
'title' => 'payment_received',
21
+
'subject' => 'Payment Received - Invoice #{{ invoice.number }}',
22
+
'body' => "Dear {{ customer.name }},\n\nWe have received your payment of {{ payment.amount_formatted }}\nFor Invoice: {{ invoice.number }}\nPayment Date: {{ payment.paid_at_formatted }}\n\nThank you for your payment!\n\n{{ company.name }}",
23
+
'company_id' => $companyId,
21
24
],
22
25
[
23
-
'title' => 'quote_sent',
24
-
'subject' => 'New Quote: {{ quote.number }}',
25
-
'body' => "Dear {{ customer.name }},\n\nA new quote #{{ quote.number }} has been prepared for you.\n\nAmount: {{ quote.total_formatted }}\nValid Until: {{ quote.valid_until_formatted }}\n\nYou can view the quote by clicking the link below:\n{{ quote.public_url }}\n\nPlease let us know if you have any questions.\n\nBest regards,\n{{ company.name }}",
26
+
'title' => 'quote_sent',
27
+
'subject' => 'New Quote: {{ quote.number }}',
28
+
'body' => "Dear {{ customer.name }},\n\nA new quote #{{ quote.number }} has been prepared for you.\n\nAmount: {{ quote.total_formatted }}\nValid Until: {{ quote.valid_until_formatted }}\n\nYou can view the quote by clicking the link below:\n{{ quote.public_url }}\n\nPlease let us know if you have any questions.\n\nBest regards,\n{{ company.name }}",
29
+
'company_id' => $companyId,
26
30
],
27
31
[
28
-
'title' => 'user_invitation',
29
-
'subject' => 'You have been invited to {{ company.name }}',
30
-
'body' => "Hello,\n\nYou have been invited to join {{ company.name }}.\n\nPlease click the link below to set up your account:\n{{ invitation_link }}\n\nThis invitation will expire in 7 days.\n\nIf you did not expect this invitation, you can safely ignore this email.\n\nBest regards,\n{{ company.name }}",
32
+
'title' => 'user_invitation',
33
+
'subject' => 'You have been invited to {{ company.name }}',
34
+
'body' => "Hello,\n\nYou have been invited to join {{ company.name }}.\n\nPlease click the link below to set up your account:\n{{ invitation_link }}\n\nThis invitation will expire in 7 days.\n\nIf you did not expect this invitation, you can safely ignore this email.\n\nBest regards,\n{{ company.name }}",
0 commit comments