mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
added index and button into DunningEmailToCoverAccountUsageNotification
This commit is contained in:
+6
-3
@@ -24,21 +24,24 @@ class DunningEmailToCoverAccountUsageNotification extends Notification implement
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$message = $this->dunningMessages();
|
$message = $this->dunningMessages();
|
||||||
|
$index = $this->dunning->sequence - 1;
|
||||||
|
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
->subject($message[$this->dunning->type][$this->dunning->sequence]['subject'])
|
->subject($message[$this->dunning->type][$index]['subject'])
|
||||||
->greeting(__('Hi there'))
|
->greeting(__('Hi there'))
|
||||||
->line($message[$this->dunning->type][$this->dunning->sequence]['line'])
|
->line($message[$this->dunning->type][$index]['line'])
|
||||||
|
->action(__t('show_billing'), url('/user/settings/billing'))
|
||||||
->salutation(__('Regards'));
|
->salutation(__('Regards'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toArray(): array
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
$message = $this->dunningMessages();
|
$message = $this->dunningMessages();
|
||||||
|
$index = $this->dunning->sequence - 1;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'category' => 'payment-alert',
|
'category' => 'payment-alert',
|
||||||
'title' => $message[$this->dunning->type][$this->dunning->sequence]['subject'],
|
'title' => $message[$this->dunning->type][$index]['subject'],
|
||||||
'description' => __t('dunning_notification_description'),
|
'description' => __t('dunning_notification_description'),
|
||||||
'action' => [
|
'action' => [
|
||||||
'type' => 'route',
|
'type' => 'route',
|
||||||
|
|||||||
Reference in New Issue
Block a user