wip del err
This commit is contained in:
1 parent
812736ca9a
commit
9bcd4432c6
1210 files changed
-220941
No files matched your search
@@ -1,27 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions;
|
||||
|
||||
use App\Models\Supervisor;
|
||||
use Filament\Notifications\Notification;
|
||||
|
||||
class SupervisorStatus
|
||||
{
|
||||
public static function set($status = 0)
|
||||
{
|
||||
Supervisor::query()->update(['is_active' => $status]);
|
||||
|
||||
if ($status) {
|
||||
|
||||
Notification::make()
|
||||
->title('All supervisors started successfully')
|
||||
->success()
|
||||
->send();
|
||||
} else {
|
||||
Notification::make()
|
||||
->title('All supervisors stopped successfully')
|
||||
->success()
|
||||
->send();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user