translate base
This commit is contained in:
@@ -31,11 +31,11 @@ class DisciplinaryReportCreatedNotification extends Notification implements Shou
|
||||
$employee = $this->report->employee;
|
||||
|
||||
return (new MailMessage)
|
||||
->subject('New Disciplinary Report Created')
|
||||
->line("A new disciplinary report has been created for {$employee->full_name}.")
|
||||
->line("Title: {$this->report->title}")
|
||||
->line("Severity: {$this->report->severity->label()}")
|
||||
->line("Date: {$this->report->report_date->toDateString()}");
|
||||
->subject(__('notifications.disciplinary_report_created.subject'))
|
||||
->line(__('notifications.disciplinary_report_created.line_created', ['name' => $employee->full_name]))
|
||||
->line(__('notifications.disciplinary_report_created.title') . ': ' . $this->report->title)
|
||||
->line(__('notifications.disciplinary_report_created.severity') . ': ' . $this->report->severity->label())
|
||||
->line(__('notifications.disciplinary_report_created.date') . ': ' . $this->report->report_date->toDateString());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,9 +29,12 @@ class EmployeeTerminatedNotification extends Notification implements ShouldQueue
|
||||
public function toMail(object $notifiable): MailMessage
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject('Employee Terminated')
|
||||
->line("{$this->employee->full_name} ({$this->employee->employee_number}) has been terminated.")
|
||||
->line("Termination date: {$this->employee->termination_date?->toDateString()}");
|
||||
->subject(__('notifications.employee_terminated.subject'))
|
||||
->line(__('notifications.employee_terminated.line_terminated', [
|
||||
'name' => $this->employee->full_name,
|
||||
'number' => $this->employee->employee_number,
|
||||
]))
|
||||
->line(__('notifications.employee_terminated.termination_date') . ': ' . $this->employee->termination_date?->toDateString());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,11 +31,11 @@ class VacationApprovedNotification extends Notification implements ShouldQueue
|
||||
$employee = $this->vacation->employee;
|
||||
|
||||
return (new MailMessage)
|
||||
->subject('Vacation Request Approved')
|
||||
->line("The vacation request for {$employee->full_name} has been approved.")
|
||||
->line("Type: {$this->vacation->type->label()}")
|
||||
->line("Dates: {$this->vacation->start_date->toDateString()} to {$this->vacation->end_date->toDateString()}")
|
||||
->line("Days: {$this->vacation->days}");
|
||||
->subject(__('notifications.vacation_approved.subject'))
|
||||
->line(__('notifications.vacation_approved.line_approved', ['name' => $employee->full_name]))
|
||||
->line(__('notifications.vacation_approved.type') . ': ' . $this->vacation->type->label())
|
||||
->line(__('notifications.vacation_approved.dates') . ': ' . $this->vacation->start_date->toDateString() . ' – ' . $this->vacation->end_date->toDateString())
|
||||
->line(__('notifications.vacation_approved.days') . ': ' . $this->vacation->days);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,11 +31,11 @@ class VacationSubmittedNotification extends Notification implements ShouldQueue
|
||||
$employee = $this->vacation->employee;
|
||||
|
||||
return (new MailMessage)
|
||||
->subject('New Vacation Request Submitted')
|
||||
->line("A new vacation request has been submitted for {$employee->full_name}.")
|
||||
->line("Type: {$this->vacation->type->label()}")
|
||||
->line("Dates: {$this->vacation->start_date->toDateString()} to {$this->vacation->end_date->toDateString()}")
|
||||
->line("Days: {$this->vacation->days}");
|
||||
->subject(__('notifications.vacation_submitted.subject'))
|
||||
->line(__('notifications.vacation_submitted.line_submitted', ['name' => $employee->full_name]))
|
||||
->line(__('notifications.vacation_submitted.type') . ': ' . $this->vacation->type->label())
|
||||
->line(__('notifications.vacation_submitted.dates') . ': ' . $this->vacation->start_date->toDateString() . ' – ' . $this->vacation->end_date->toDateString())
|
||||
->line(__('notifications.vacation_submitted.days') . ': ' . $this->vacation->days);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user