Admin Panel UI
- Navigate to Reports in the admin panel.
- The admin can:
- View all reported blogs, comments, and users.
- Filter reports based on status and actions.
- Take actions such as resolving reports, deleting content, or blocking users.
Features
- View Reports: Displays all reports with details about the reported content, reporter, and reason.
- Filter Reports: Allows filtering by report type (blog, comment, user), status (pending, resolved), and author block status.
- Take Action:
- Delete Blog: Permanently removes the reported blog.
- Block Author: Restricts the reported user from posting further content.
- Resolve Report: Marks the report as resolved without further action.
Usage Flow
- Admin accesses the Reports Management page.
- Admin reviews reported content with details.
- Admin selects an action:
- If the report is valid, admin deletes the content or blocks the user.
- If no violation is found, the report is marked as resolved.
- Changes are reflected in real time.
Error Handling
- Invalid report ID: Returns
404 Not Found - Unauthorized request: Returns
403 Forbidden - Server errors: Returns
500 Internal Server Error

