Extract intro text

This commit is contained in:
Marcus Moore
2025-10-08 14:12:35 -07:00
parent 17a26b43f0
commit 9a380ac3d4
2 changed files with 11 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ class BulkAssetCheckoutMail extends Mailable
public function envelope(): Envelope
{
return new Envelope(
// @todo: translate
subject: 'Bulk Asset Checkout Mail',
);
}
@@ -45,6 +46,9 @@ class BulkAssetCheckoutMail extends Mailable
{
return new Content(
markdown: 'mail.bulk-asset-checkout-mail',
with: [
'introduction' => $this->getIntroduction(),
],
);
}
@@ -57,4 +61,10 @@ class BulkAssetCheckoutMail extends Mailable
{
return [];
}
private function getIntroduction(): string
{
// @todo:
return 'The following assets have been checked out to you:';
}
}

View File

@@ -1,7 +1,7 @@
<x-mail::message>
# Introduction
The body of your message.
{{ $introduction }}
<x-mail::button :url="''">
Button Text