Merge pull request 'changed logic in transporter bid' (#131) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s

Reviewed-on: #131
This commit was merged in pull request #131.
This commit is contained in:
2026-01-24 09:30:53 +00:00

View File

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