changed logic in transporter bid #131
@@ -41,30 +41,28 @@ class EditRfqTransporterBid extends EditRecord
|
||||
|
||||
// $user1 = Filament::auth()->user();
|
||||
|
||||
$body = "$currentUser current rank is #{$rank}";
|
||||
|
||||
$body = "{$currentUser->name} current rank is #{$rank}";
|
||||
|
||||
Notification::make()
|
||||
->title('Rank Updated')
|
||||
->body("{$currentUser->name} current rank is #{$rank}")
|
||||
->success()
|
||||
->sendToDatabase($recipients);
|
||||
Notification::make()
|
||||
->title('Rank Updated')
|
||||
->body("{$currentUser->name} current rank is #{$rank}")
|
||||
->success()
|
||||
->sendToDatabase($recipients);
|
||||
|
||||
\Log::info('Notification sent', [
|
||||
'rank' => $rank,
|
||||
'recipients' => $recipients->pluck('id'),
|
||||
]);
|
||||
\Log::info('Notification sent', [
|
||||
'rank' => $rank,
|
||||
'recipients' => $recipients->pluck('id'),
|
||||
]);
|
||||
|
||||
|
||||
|
||||
foreach ($recipients as $user) {
|
||||
foreach ($recipients as $user) {
|
||||
$user->notify(
|
||||
new PushAlertNotification(
|
||||
'Rank Updated',
|
||||
$body
|
||||
)
|
||||
);
|
||||
}
|
||||
new PushAlertNotification(
|
||||
'Rank Updated',
|
||||
$body
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user