mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 19:25:10 -05:00
Added notification for unhandled Player Reports
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user