chanaged logic for rfq transporter bid
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Failing after 2m20s
Laravel Larastan / larastan (pull_request) Failing after 2m22s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Failing after 2m20s
Laravel Larastan / larastan (pull_request) Failing after 2m22s
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Filament\Resources\RfqTransporterBidResource\Pages;
|
||||
use App\Filament\Resources\RfqTransporterBidResource;
|
||||
use App\Models\RfqTransporterBid;
|
||||
use App\Models\User;
|
||||
use App\Notifications\PushAlertNotification;
|
||||
use Filament\Actions;
|
||||
use Filament\Facades\Filament;
|
||||
use Filament\Notifications\Notification;
|
||||
@@ -32,11 +33,23 @@ class EditRfqTransporterBid extends EditRecord
|
||||
$recipients->push($currentUser);
|
||||
}
|
||||
|
||||
$user1 = Filament::auth()->user();
|
||||
|
||||
Notification::make()
|
||||
->title('Rank Updated')
|
||||
->body("Your current rank is #{$rank}")
|
||||
->body("$currentUser current rank is #{$rank}")
|
||||
->success()
|
||||
->sendToDatabase($recipients);
|
||||
|
||||
$body = "$currentUser current rank is #{$rank}";
|
||||
|
||||
|
||||
$user1->notify(new PushAlertNotification(
|
||||
'Rank Update',
|
||||
$body
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
|
||||
Reference in New Issue
Block a user