#41 - cr fix
This commit is contained in:
@@ -46,8 +46,8 @@ class VacationRequestApprovedNotification extends Notification
|
||||
$user = $this->user->first_name;
|
||||
$title = $this->vacationRequest->name;
|
||||
$type = $this->vacationRequest->type->label();
|
||||
$from = $this->vacationRequest->from->format("d.m.Y");
|
||||
$to = $this->vacationRequest->to->format("d.m.Y");
|
||||
$from = $this->vacationRequest->from->toDisplayDate();
|
||||
$to = $this->vacationRequest->to->toDisplayDate();
|
||||
$days = $this->vacationRequest->vacations()->count();
|
||||
$requester = $this->vacationRequest->user->fullName;
|
||||
|
||||
|
@@ -46,8 +46,8 @@ class VacationRequestCancelledNotification extends Notification
|
||||
$user = $this->user->first_name;
|
||||
$title = $this->vacationRequest->name;
|
||||
$type = $this->vacationRequest->type->label();
|
||||
$from = $this->vacationRequest->from->format("d.m.Y");
|
||||
$to = $this->vacationRequest->to->format("d.m.Y");
|
||||
$from = $this->vacationRequest->from->toDisplayDate();
|
||||
$to = $this->vacationRequest->to->toDisplayDate();
|
||||
$days = $this->vacationRequest->vacations()->count();
|
||||
$requester = $this->vacationRequest->user->fullName;
|
||||
|
||||
|
@@ -43,8 +43,8 @@ class VacationRequestCreatedNotification extends Notification
|
||||
$user = $this->vacationRequest->user->first_name;
|
||||
$title = $this->vacationRequest->name;
|
||||
$type = $this->vacationRequest->type->label();
|
||||
$from = $this->vacationRequest->from->format("d.m.Y");
|
||||
$to = $this->vacationRequest->to->format("d.m.Y");
|
||||
$from = $this->vacationRequest->from->toDisplayDate();
|
||||
$to = $this->vacationRequest->to->toDisplayDate();
|
||||
$days = $this->vacationRequest->vacations()->count();
|
||||
$appName = config("app.name");
|
||||
|
||||
|
@@ -46,8 +46,8 @@ class VacationRequestRejectedNotification extends Notification
|
||||
$user = $this->user->first_name;
|
||||
$title = $this->vacationRequest->name;
|
||||
$type = $this->vacationRequest->type->label();
|
||||
$from = $this->vacationRequest->from->format("d.m.Y");
|
||||
$to = $this->vacationRequest->to->format("d.m.Y");
|
||||
$from = $this->vacationRequest->from->toDisplayDate();
|
||||
$to = $this->vacationRequest->to->toDisplayDate();
|
||||
$days = $this->vacationRequest->vacations()->count();
|
||||
$requester = $this->vacationRequest->user->fullName;
|
||||
|
||||
|
@@ -11,7 +11,7 @@ use InvalidArgumentException;
|
||||
use Toby\Eloquent\Models\User;
|
||||
use Toby\Eloquent\Models\VacationRequest;
|
||||
|
||||
class VacationRequestWaitedForAdministrativeNotification extends Notification
|
||||
class VacationRequestWaitsForAdminApprovalNotification extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
@@ -47,8 +47,8 @@ class VacationRequestWaitedForAdministrativeNotification extends Notification
|
||||
$requester = $this->vacationRequest->user->fullName;
|
||||
$title = $this->vacationRequest->name;
|
||||
$type = $this->vacationRequest->type->label();
|
||||
$from = $this->vacationRequest->from->format("d.m.Y");
|
||||
$to = $this->vacationRequest->to->format("d.m.Y");
|
||||
$from = $this->vacationRequest->from->toDisplayDate();
|
||||
$to = $this->vacationRequest->to->toDisplayDate();
|
||||
$days = $this->vacationRequest->vacations()->count();
|
||||
|
||||
return (new MailMessage())
|
@@ -11,7 +11,7 @@ use InvalidArgumentException;
|
||||
use Toby\Eloquent\Models\User;
|
||||
use Toby\Eloquent\Models\VacationRequest;
|
||||
|
||||
class VacationRequestWaitedForTechnicalNotification extends Notification
|
||||
class VacationRequestWaitsForTechApprovalNotification extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
@@ -47,8 +47,8 @@ class VacationRequestWaitedForTechnicalNotification extends Notification
|
||||
$requester = $this->vacationRequest->user->fullName;
|
||||
$title = $this->vacationRequest->name;
|
||||
$type = $this->vacationRequest->type->label();
|
||||
$from = $this->vacationRequest->from->format("d.m.Y");
|
||||
$to = $this->vacationRequest->to->format("d.m.Y");
|
||||
$from = $this->vacationRequest->from->toDisplayDate();
|
||||
$to = $this->vacationRequest->to->toDisplayDate();
|
||||
$days = $this->vacationRequest->vacations()->count();
|
||||
|
||||
return (new MailMessage())
|
Reference in New Issue
Block a user