Added notification for unhandled Player Reports

This commit is contained in:
Vari
2024-07-28 22:06:10 +02:00
parent ca6fbc389b
commit 7b1735fc89

View File

@@ -32,4 +32,13 @@ public function handleReport(HandleModerationRequest $request, PlayerReport $rep
Session::flash('alert-success', 'Handled report saved successfully.');
return Redirect::back();
}
public static function getNotificationText(): ?string
{
$unhandledCount = PlayerReport::where('handled', '=', false)->count();
if($unhandledCount > 0)
return 'There are Unhandled Chat Messages';
return null;
}
}