diff --git a/app/Filament/Resources/RfqTransporterBidResource/Pages/EditRfqTransporterBid.php b/app/Filament/Resources/RfqTransporterBidResource/Pages/EditRfqTransporterBid.php index 79ac3b5..955f4b9 100644 --- a/app/Filament/Resources/RfqTransporterBidResource/Pages/EditRfqTransporterBid.php +++ b/app/Filament/Resources/RfqTransporterBidResource/Pages/EditRfqTransporterBid.php @@ -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 + ) + ); + } }