Small subject tweaks
This commit is contained in:
@@ -76,9 +76,9 @@ class AcceptanceItemAcceptedNotification extends Notification
|
||||
'assigned_to' => $this->assigned_to,
|
||||
'company_name' => $this->company_name,
|
||||
'qty' => $this->qty,
|
||||
'intro_text' => trans('mail.acceptance_accepted_greeting'),
|
||||
'intro_text' => trans('mail.acceptance_accepted_greeting', ['user' => $this->assigned_to, 'item' => $this->item_name]),
|
||||
])
|
||||
->subject('✅ '.trans('mail.acceptance_accepted'))
|
||||
->subject('✅ '.trans('mail.acceptance_accepted', ['user' => $this->assigned_to, 'item' => $this->item_name]))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -75,7 +75,7 @@ class AcceptanceItemAcceptedToUserNotification extends Notification
|
||||
'intro_text' => trans_choice('mail.acceptance_asset_accepted_to_user', $this->qty, ['qty' => $this->qty, 'site_name' => $this->settings->site_name]),
|
||||
])
|
||||
->attach($pdf_path)
|
||||
->subject(trans_choice('mail.acceptance_asset_accepted_to_user', $this->qty, ['qty' => $this->qty, 'site_name' => $this->settings->site_name]))
|
||||
->subject('✅ '. trans_choice('mail.acceptance_asset_accepted_to_user', $this->qty, ['qty' => $this->qty, 'site_name' => $this->settings->site_name]))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -50,7 +50,7 @@ class ExpectedCheckinAdminNotification extends Notification
|
||||
[
|
||||
'assets' => $this->assets,
|
||||
])
|
||||
->subject(trans('mail.Expected_Checkin_Report'))
|
||||
->subject('⏰'.trans('mail.Expected_Checkin_Report'))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -60,7 +60,7 @@ class ExpectedCheckinNotification extends Notification
|
||||
'serial' => $this->params->serial,
|
||||
'asset_tag' => $this->params->asset_tag,
|
||||
])
|
||||
->subject(($today > $this->params->expected_checkin) ? trans('mail.Expected_Checkin_Notification_Pastdue', ['name' => $this->params->display_name]) : trans('mail.Expected_Checkin_Notification', ['name' => $this->params->display_name]))
|
||||
->subject('⏰'. ($today > $this->params->expected_checkin) ? trans('mail.Expected_Checkin_Notification_Pastdue', ['name' => $this->params->display_name]) : trans('mail.Expected_Checkin_Notification', ['name' => $this->params->display_name]))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -53,7 +53,7 @@ class ExpiringAssetsNotification extends Notification
|
||||
'assets' => $this->assets,
|
||||
'threshold' => $this->threshold,
|
||||
])
|
||||
->subject(trans('mail.Expiring_Assets_Report'))
|
||||
->subject('⏰'.trans('mail.Expiring_Assets_Report'))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -54,7 +54,7 @@ class ExpiringLicenseNotification extends Notification
|
||||
'licenses' => $this->licenses,
|
||||
'threshold' => $this->threshold,
|
||||
])
|
||||
->subject(trans('mail.Expiring_Licenses_Report'))
|
||||
->subject('⏰'.trans('mail.Expiring_Licenses_Report'))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -47,7 +47,7 @@ class FirstAdminNotification extends Notification
|
||||
public function toMail()
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject(trans('mail.welcome', ['name' => $this->_data['first_name'].' '.$this->_data['last_name']]))
|
||||
->subject('👋 '.trans('mail.welcome', ['name' => $this->_data['first_name'].' '.$this->_data['last_name']]))
|
||||
->markdown('notifications.FirstAdmin', $this->_data)
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
|
||||
@@ -53,7 +53,7 @@ class InventoryAlert extends Notification
|
||||
'threshold' => $this->threshold,
|
||||
]
|
||||
)
|
||||
->subject(trans('mail.Low_Inventory_Report'))
|
||||
->subject('⚠️ '.trans('mail.Low_Inventory_Report'))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -40,7 +40,7 @@ class MailTest extends Notification
|
||||
public function toMail()
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject(trans('mail.test_email'))
|
||||
->subject('👋 '.trans('mail.test_email'))
|
||||
->markdown('notifications.Test')
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
|
||||
@@ -126,7 +126,7 @@ class RequestAssetCancelation extends Notification
|
||||
'expected_checkin' => $this->expected_checkin,
|
||||
'intro_text' => trans('mail.a_user_canceled'),
|
||||
])
|
||||
->subject(trans('general.request_canceled'))
|
||||
->subject('⚠️ '.trans('general.request_canceled'))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -120,7 +120,7 @@ class RequestAssetNotification extends Notification
|
||||
'intro_text' => trans('mail.a_user_requested'),
|
||||
'qty' => $this->item_quantity,
|
||||
])
|
||||
->subject(trans('mail.Item_Requested'))
|
||||
->subject('👀 '.trans('mail.Item_Requested'))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -47,7 +47,7 @@ class SendUpcomingAuditNotification extends Notification
|
||||
'assets' => $this->assets,
|
||||
'threshold' => $this->threshold,
|
||||
])
|
||||
->subject(trans_choice('mail.upcoming-audits', $this->assets->count(), ['count' => $this->assets->count(), 'threshold' => $this->threshold]))
|
||||
->subject('⏰'.trans_choice('mail.upcoming-audits', $this->assets->count(), ['count' => $this->assets->count(), 'threshold' => $this->threshold]))
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
'X-System-Sender', 'Snipe-IT'
|
||||
|
||||
@@ -45,7 +45,7 @@ class WelcomeNotification extends Notification
|
||||
{
|
||||
|
||||
return (new MailMessage())
|
||||
->subject(trans('mail.welcome', ['name' => $this->user->first_name.' '.$this->user->last_name]))
|
||||
->subject('👋 '.trans('mail.welcome', ['name' => $this->user->first_name.' '.$this->user->last_name]))
|
||||
->markdown('notifications.Welcome', $this->user->toArray())
|
||||
->withSymfonyMessage(function (Email $message) {
|
||||
$message->getHeaders()->addTextHeader(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@component('mail::message')
|
||||
# {{ trans('mail.hello') }},
|
||||
|
||||
{{ $intro_text }}.
|
||||
{{ $intro_text }}
|
||||
|
||||
@component('mail::table')
|
||||
| | |
|
||||
|
||||
Reference in New Issue
Block a user