Give me the code for this site I described, with Register and Login pages and an Admin page.
Admin navigation should include: Analytics, Add Lessons, Add Lesson Packs, Add Notice, User Management, and Slip Requests. The admin UI should use image-style cards for items.

The Student dashboard should have a left-side navigation list (Ui) with: Dashboard, My Classes, Buy Classes, Notices, Profile. Each item should look like a list entry with an icon/image.

On the Buy Classes page the student can see lesson packs that the admin added (each pack shows a price). Students can click an Upload Slip button to upload a payment slip. After a student uploads a slip it appears in the admin Slip Uploads page.

The admin Slip Uploads page should show each slip record with these details: Student name, A/L year, Lesson pack name, Slip preview (view) and Download, plus Accept and Decline buttons. When the admin accepts a slip, the student is granted access to that lesson pack.

On the My Classes page the student can access lessons as embedded YouTube videos — students should not be able to see or copy the raw YouTube link.

The Profile page should show the student’s image and details and allow the student to update them.

When the Admin logs in using the main login panel, the system checks the user’s role in the database.
If the role is admin, the Admin Dashboard will be displayed.

The admin can manage the entire site.
They can add lessons, but before adding lessons, they must first create a lesson pack.

Lesson Pack Creation Form:

The form includes:

Title

Description

Thumbnail

Price

After creating a lesson pack, the admin can go to the Add Lesson Page, which includes:

Lesson Title

Lesson Description

YouTube Embed Video Link (the video thumbnail will automatically use the YouTube video’s thumbnail)

Select the related Lesson Pack

After clicking the Submit button, the lesson will be added to the selected lesson pack.

Student View:

Students can view all available Lesson Packs in their “Buy Lessons” page.

Admin Lesson Pack Management:

On the Lesson Pack Management Page, the admin can scroll down to see all created lesson packs.
Each pack will display:

Number of Lessons

Assigned Student Count

Edit and Delete buttons

Admin User Management:

The User Management Page lists all registered students.
It includes a search bar, and the admin can:

Reset Passwords

Remove Students

Edit Student Details

When the Reset Password button is clicked, the system automatically generates a random new password for that student.

When the admin resets a student's password, a small pop-up window appears showing the new randomly generated password (like a class key).
This new password is automatically saved to the student’s record in the database.

Admin Dashboard:

The Admin Home Page displays charts and statistics summarizing site data.
It includes information such as:

Total Students

Total Lessons

Total Lesson Packs

Additionally, the page features charts showing:

New Student Registrations (growth or decline over time)

Lesson Purchases by Students

The admin can view data trends for different time ranges:

7 Days

1 Month

3 Months

Admin Notices Page:

The Notices Page allows the admin to post announcements or important updates.
Each notice includes:

Title

Description

Image (optional)

All posted notices will be displayed to students on their Notices Page.

After Give Files In PHP and give databse schema 

1.config.php
2.dashboard.php
3.studentdash.php
4.myclass.php
5.notices.php
6.buyclass.php
7.profile.php

8.analytics.php
9.addclass.php
10.addpack.php
11.addnotice.php
12.usermanage.php
13.sliprequests.php