diff --git a/app/Services/Frontdesk/NotificationDispatcher.php b/app/Services/Frontdesk/NotificationDispatcher.php index 7d87953..d64cad6 100644 --- a/app/Services/Frontdesk/NotificationDispatcher.php +++ b/app/Services/Frontdesk/NotificationDispatcher.php @@ -25,11 +25,16 @@ class NotificationDispatcher public function visitorArrived(Visit $visit): bool { + $message = "{$visit->visitor->full_name} has checked in and is here to see you."; + if ($visit->purpose) { + $message .= " Purpose: {$visit->purpose}."; + } + return $this->dispatchVisitEvent( $visit, 'visitor_arrived', - 'Visitor has arrived', - "{$visit->visitor->full_name} has checked in.", + 'Visitor here to see you', + $message, ['icon' => 'user-check'], ); } @@ -62,8 +67,8 @@ class NotificationDispatcher $this->dispatchVisitEvent( $visit, 'visitor_waiting', - 'Visitor waiting', - "{$visit->visitor->full_name} is waiting in reception.", + 'Visitor waiting to see you', + "{$visit->visitor->full_name} is waiting in reception to see you.", ['icon' => 'clock'], ); }