mirror of
https://github.com/grokability/snipe-it.git
synced 2026-03-12 17:52:00 +08:00
Extract intro text
This commit is contained in:
@@ -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:';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<x-mail::message>
|
||||
# Introduction
|
||||
|
||||
The body of your message.
|
||||
{{ $introduction }}
|
||||
|
||||
<x-mail::button :url="''">
|
||||
Button Text
|
||||
|
||||
Reference in New Issue
Block a user