Update profile pages design

This commit is contained in:
2026-07-25 13:54:21 +02:00
parent 2b1a967065
commit 5af1c3c447
17 changed files with 1031 additions and 362 deletions
@@ -20,10 +20,17 @@ class NotificationController extends Controller
}
/**
* Delete Notifcation
* Delete a notification or clear all.
*/
public function delete(Request $request): RedirectResponse
{
// Clear all notifications if no specific ID is provided
if (! $request->has('id')) {
$request->user()->notifications()->delete();
return redirect()->back()->with('status', 'notifications-cleared');
}
$request->validate([
'id' => 'required|exists:notifications,id',
]);