akaunting 3.0 (the last dance)
This commit is contained in:
@ -51,7 +51,7 @@ class ExportCompleted extends Notification implements ShouldQueue
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject(trans('notifications.export.completed.subject'))
|
||||
->subject(trans('notifications.export.completed.title'))
|
||||
->line(trans('notifications.export.completed.description'))
|
||||
->action(trans('general.download'), $this->download_url);
|
||||
}
|
||||
@ -65,6 +65,11 @@ class ExportCompleted extends Notification implements ShouldQueue
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
return [
|
||||
'title' => trans('notifications.menu.export_completed.title'),
|
||||
'description' => trans('notifications.menu.export_completed.description', [
|
||||
'type' => $this->translation,
|
||||
'url' => $this->download_url,
|
||||
]),
|
||||
'translation' => $this->translation,
|
||||
'file_name' => $this->file_name,
|
||||
'download_url' => $this->download_url,
|
||||
|
@ -50,7 +50,7 @@ class ExportFailed extends Notification implements ShouldQueue
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject(trans('notifications.export.failed.subject'))
|
||||
->subject(trans('notifications.export.failed.title'))
|
||||
->line(trans('notifications.export.failed.description'))
|
||||
->line($this->message);
|
||||
}
|
||||
@ -64,6 +64,10 @@ class ExportFailed extends Notification implements ShouldQueue
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
return [
|
||||
'title' => trans('notifications.menu.export_failed.title'),
|
||||
'description' => trans('notifications.menu.export_failed.description', [
|
||||
'issues' => $this->message,
|
||||
]),
|
||||
'message' => $this->message,
|
||||
];
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ class ImportCompleted extends Notification implements ShouldQueue
|
||||
$dashboard_url = route('dashboard', ['company_id' => company_id()]);
|
||||
|
||||
return (new MailMessage)
|
||||
->subject(trans('notifications.import.completed.subject'))
|
||||
->subject(trans('notifications.import.completed.title'))
|
||||
->line(trans('notifications.import.completed.description'))
|
||||
->action(trans_choice('general.dashboards', 1), $dashboard_url);
|
||||
}
|
||||
@ -62,6 +62,11 @@ class ImportCompleted extends Notification implements ShouldQueue
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
return [
|
||||
'title' => trans('notifications.menu.import_completed.title'),
|
||||
'description' => trans('notifications.menu.import_completed.description', [
|
||||
'type' => $this->translation,
|
||||
'count' => $this->total_rows,
|
||||
]),
|
||||
'translation' => $this->translation,
|
||||
'total_rows' => $this->total_rows,
|
||||
];
|
||||
|
@ -50,7 +50,7 @@ class ImportFailed extends Notification implements ShouldQueue
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
$message = (new MailMessage)
|
||||
->subject(trans('notifications.import.failed.subject'))
|
||||
->subject(trans('notifications.import.failed.title'))
|
||||
->line(trans('notifications.import.failed.description'));
|
||||
|
||||
foreach ($this->errors as $error) {
|
||||
@ -69,6 +69,10 @@ class ImportFailed extends Notification implements ShouldQueue
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
return [
|
||||
'title' => trans('notifications.menu.import_failed.title'),
|
||||
'description' => trans('notifications.menu.import_failed.description', [
|
||||
'issues' => $this->errors,
|
||||
]),
|
||||
'errors' => $this->errors,
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user