Reverse engineered prompt

Build me a payroll and employee management web app that uses Django for the main website and Flask for the API side. I want people to log in and be sent to the right place based on their role, admin, team lead, or employee. Employees should be able to clock in and clock out with live location, see their attendance history, submit leave requests, request work from home, and add daily status updates.

Admins should have a dashboard that shows employee counts, leave numbers, work from home activity, attendance trends, and top or low performers for the month. They should also be able to approve or reject leave and work from home requests, post announcements, view notifications, and see the company hierarchy from manager to team lead to employees.

Please include Excel export for attendance or status reports, a chatbot endpoint for payroll or HR help, and basic session based auth with logout and forgot password. Use what is already in this repo and wire up the front end and API so it actually works end to end. Look up current docs online if you need to.

Want more depth? Deep Reverse