diff --git a/dist/app/Http/Controllers/Web/Admin/Tools/PlayerReportsController.php b/dist/app/Http/Controllers/Web/Admin/Tools/PlayerReportsController.php index 8151dba..b182213 100644 --- a/dist/app/Http/Controllers/Web/Admin/Tools/PlayerReportsController.php +++ b/dist/app/Http/Controllers/Web/Admin/Tools/PlayerReportsController.php @@ -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; + } } \ No newline at end of file