changed logic in edit transporter bid
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Successful in 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Pint / pint (pull_request) Failing after 6m3s
Laravel Larastan / larastan (pull_request) Failing after 6m40s

This commit is contained in:
dhanabalan
2026-01-27 11:59:33 +05:30
parent b419a538dc
commit cdf9f60ffd

View File

@@ -29,6 +29,12 @@ class EditRfqTransporterBid extends EditRecord
->search($this->record->id) + 1;
$recipients = User::role(['Super Admin', 'Rfq Supervisor', 'TransporterBid Employee'])->get();
$recipients1 = User::role(['Super Admin', 'Rfq Supervisor', 'TransporterBid Employee'])->whereHas('pushSubscriptions')->get();
dd($recipients1);
$currentUser = Filament::auth()->user();
@@ -52,26 +58,26 @@ class EditRfqTransporterBid extends EditRecord
'recipients' => $recipients->pluck('id'),
]);
foreach ($recipients as $user) {
// $user->notify(
// new PushAlertNotification(
// 'Rank Updated',
// $body
// )
// );
foreach ($recipients1 as $user) {
$user->notify(
new PushAlertNotification(
'Rank Updated',
$body
)
);
$subscriptions = $user->pushSubscriptions;
// $subscriptions = $user->pushSubscriptions;
dd($subscriptions);
// dd($subscriptions);
foreach ($subscriptions as $sub) {
$sub->notify(
new PushAlertNotification(
'Rank Updated',
$body
)
);
}
// foreach ($subscriptions as $sub) {
// $sub->notify(
// new PushAlertNotification(
// 'Rank Updated',
// $body
// )
// );
// }
}