Fixed :threshold placeholder

This commit is contained in:
snipe 2019-05-05 19:57:23 -04:00
parent e9b9301efb
commit 7d416d1175
2 changed files with 4 additions and 2 deletions

View file

@ -20,6 +20,7 @@ class SendUpcomingAuditNotification extends Notification
public function __construct($params, $threshold)
{
$this->assets = $params;
$this->threshold = $threshold;
}
/**
@ -44,8 +45,9 @@ class SendUpcomingAuditNotification extends Notification
$message = (new MailMessage)->markdown('notifications.markdown.upcoming-audits',
[
'assets' => $this->assets,
'threshold' => $this->threshold,
])
->subject(trans_choice('mail.upcoming-audits', $this->assets->count(), ['count' => $this->assets->count()]));
->subject(trans_choice('mail.upcoming-audits', $this->assets->count(), ['count' => $this->assets->count(), 'threshold' => $this->threshold]));
return $message;
}

View file

@ -1,6 +1,6 @@
@component('mail::message')
### {{ trans_choice('mail.upcoming-audits', $assets->count(), ['count' => $assets->count()]) }}
### {{ trans_choice('mail.upcoming-audits', $assets->count(), ['count' => $assets->count(), 'threshold' => $threshold]) }}
@component('mail::table')
| |{{ trans('mail.name') }}|{{ trans('general.last_audit') }}|{{ trans('general.next_audit_date') }}|{{ trans('mail.Days') }}|{{ trans('mail.supplier') }} | {{ trans('mail.assigned_to') }}