mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Add more descriptive subject lines.
This commit is contained in:
@ -32,6 +32,9 @@ class EstimatePdf extends Mailable
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->from($this->notificationEmail)->markdown('emails.send.estimate', ['data', $this->data]);
|
||||
$company = $this->data['company']['name'];
|
||||
return $this->from($this->notificationEmail)
|
||||
->subject("Estimate from $company")
|
||||
->markdown('emails.send.estimate', ['data', $this->data]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,6 +33,9 @@ class PaymentPdf extends Mailable
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->from($this->notificationEmail)->markdown('emails.send.payment', ['data', $this->data]);
|
||||
$company = $this->data['company']['name'];
|
||||
return $this->from($this->notificationEmail)
|
||||
->subject("Payment from $company")
|
||||
->markdown('emails.send.payment', ['data', $this->data]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,6 +32,9 @@ class invoicePdf extends Mailable
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->from($this->notificationEmail)->markdown('emails.send.invoice', ['data', $this->data]);
|
||||
$company = $this->data['company']['name'];
|
||||
return $this->from($this->notificationEmail)
|
||||
->subject("Invoice from $company")
|
||||
->markdown('emails.send.invoice', ['data', $this->data]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user