Skip to content

A free open source IT asset/license management system

Extract intro text

Marcus Moore9a380ac3d462
diff --git a/app/Mail/BulkAssetCheckoutMail.php b/app/Mail/BulkAssetCheckoutMail.php
index fe6f375f7d..df54d708e9 100644
--- a/app/Mail/BulkAssetCheckoutMail.php
+++ b/app/Mail/BulkAssetCheckoutMail.php
@@ -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:';
+ }
}
diff --git a/resources/views/mail/bulk-asset-checkout-mail.blade.php b/resources/views/mail/bulk-asset-checkout-mail.blade.php
index de9a155b34..aed6551019 100644
--- a/resources/views/mail/bulk-asset-checkout-mail.blade.php
+++ b/resources/views/mail/bulk-asset-checkout-mail.blade.php
@@ -1,7 +1,7 @@
<x-mail::message>
# Introduction
-The body of your message.
+{{ $introduction }}
<x-mail::button :url="''">
Button Text