├── favicon.ico ├── src └── images │ ├── banner.png │ ├── profile_picture │ └── default.png │ └── logo.svg ├── profile.php ├── footer.php ├── index.php ├── README.md └── header.php /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Iqbolshoh/php-admin-panel/main/favicon.ico -------------------------------------------------------------------------------- /src/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Iqbolshoh/php-admin-panel/main/src/images/banner.png -------------------------------------------------------------------------------- /src/images/profile_picture/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Iqbolshoh/php-admin-panel/main/src/images/profile_picture/default.png -------------------------------------------------------------------------------- /profile.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 | 7 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |
7 |

150

8 |

New Orders

9 |
10 |
11 | 12 |
13 | More info 14 | 15 | 16 |
17 |
18 | 19 |
20 |
21 |
22 |

53%

23 |

Bounce Rate

24 |
25 |
26 | 27 |
28 | More info 29 | 30 | 31 |
32 |
33 | 34 |
35 |
36 |
37 |

44

38 |

User Registrations

39 |
40 |
41 | 42 |
43 | More info 44 | 45 |
46 |
47 | 48 |
49 |
50 |
51 |

65

52 |

Unique Visitors

53 |
54 |
55 | 56 |
57 | More info 58 | 59 | 60 |
61 |
62 |
63 | 64 | -------------------------------------------------------------------------------- /src/images/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 10 | 11 | 12 | 13 | 15 | 17 | 18 | 19 | 20 | 23 | 26 | 28 | 30 | 33 | 35 | 37 | 39 | 42 | 45 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 📊 PHP Admin Panel 2 | 3 | This project is a **PHP-based web application** 🖥️ developed by **Iqbolshoh Ilhomjonov** 👨‍💻. The application includes various features such as **user alerts**, **data tables**, **a dynamic navigation menu**, and a **customizable admin panel with a banner** 🏆🎯. 4 | 5 | ![Banner](./src/images/banner.png) 6 | 7 | --- 8 | 9 | ## ⚙️ Installation 🏗️ 10 | 11 | To run this project locally, follow these steps: 12 | 13 | 1️⃣ **Clone the repository** 📂: 14 | ```bash 15 | git clone https://github.com/iqbolshoh/php-admin-panel.git 16 | ``` 17 | 2️⃣ **Navigate to the project directory** 📁: 18 | ```bash 19 | cd php-admin-panel 20 | ``` 21 | 3️⃣ **Set up a local server** 🌍 (e.g., **XAMPP, WAMP, MAMP**) and place the project files in the server's root directory **(htdocs/www)**. 22 | 23 | --- 24 | 25 | ## 🚀 Usage 🎯 26 | 27 | To use the application, open your **browser** 🌐 and navigate to: 28 | 29 | 🔗 `http://localhost/php-admin-panel` 30 | 31 | This will load the **main page** of the application. 🎉 32 | 33 | --- 34 | 35 | ## 📌 Adding Sidebar Menu Items 🏗️ 36 | 37 | The **`$menuItems`** array defines the **sidebar menu** 📜. Each item includes: 38 | 39 | ✅ **`menuTitle`** – The section name 🏷️ (e.g., `"Menu"`). 40 | ✅ **`icon`** – The section icon 🎨 (e.g., `"fas fa-home"`). 41 | ✅ **`pages`** – Subpages with `"title"` (name) and `"url"` (link) 🔗. 42 | 43 | ### 📝 Example: Adding/Updating Menu Items 44 | 45 | ```php 46 | $menuItems = [ 47 | [ 48 | "menuTitle" => "Dashboard", 49 | "icon" => "fas fa-tachometer-alt", 50 | "pages" => [ 51 | ["title" => "Home", "url" => "index.php"] 52 | ], 53 | ], 54 | [ 55 | "menuTitle" => "Settings", 56 | "icon" => "fas fa-cog", 57 | "pages" => [ 58 | ["title" => "Profile", "url" => "profile.php"] 59 | ], 60 | ] 61 | ]; 62 | ``` 63 | 64 | 65 | ## 🖥 Technologies Used 66 | ![HTML](https://img.shields.io/badge/HTML-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white) 67 | ![CSS](https://img.shields.io/badge/CSS-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white) 68 | ![Bootstrap](https://img.shields.io/badge/Bootstrap-%23563D7C.svg?style=for-the-badge&logo=bootstrap&logoColor=white) 69 | ![JavaScript](https://img.shields.io/badge/JavaScript-%23F7DF1C.svg?style=for-the-badge&logo=javascript&logoColor=black) 70 | ![jQuery](https://img.shields.io/badge/jQuery-%230e76a8.svg?style=for-the-badge&logo=jquery&logoColor=white) 71 | ![PHP](https://img.shields.io/badge/PHP-%23777BB4.svg?style=for-the-badge&logo=php&logoColor=white) 72 | 73 | ## 📜 License 74 | This project is open-source and available under the **MIT License**. 75 | 76 | ## 🤝 Contributing 77 | 🎯 Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request. 78 | 79 | ## 📬 Connect with Me 80 | 💬 I love meeting new people and discussing tech, business, and creative ideas. Let’s connect! You can reach me on these platforms: 81 | 82 |
83 | 84 | 85 | 91 | 97 | 103 | 109 | 115 | 121 | 127 | 133 | 139 | 140 |
86 | 87 | Website 89 | 90 | 92 | 93 | Email 95 | 96 | 98 | 99 | GitHub 101 | 102 | 104 | 105 | LinkedIn 107 | 108 | 110 | 111 | Telegram 113 | 114 | 116 | 117 | WhatsApp 119 | 120 | 122 | 123 | Instagram 125 | 126 | 128 | 129 | X 131 | 132 | 134 | 135 | YouTube 137 | 138 |
141 |
142 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | "Dashboard", 7 | "icon" => "fas fa-tachometer-alt", 8 | "pages" => [ 9 | ["title" => "Home", "url" => "index.php"] 10 | ], 11 | ], 12 | [ 13 | "menuTitle" => "Settings", 14 | "icon" => "fas fa-cog", 15 | "pages" => [ 16 | ["title" => "Profile", "url" => "profile.php"] 17 | ], 18 | ] 19 | ]; 20 | 21 | $active_pageInfo = null; 22 | foreach ($menuItems as $menuItem) { 23 | foreach ($menuItem['pages'] as $page) { 24 | if ($currentPage === $page['url']) { 25 | $active_pageInfo = [ 26 | "breadcrumb_Items" => [ 27 | ["title" => $menuItem['menuTitle'], "url" => "#"], 28 | ["title" => $page['title'], "url" => $page['url']] 29 | ], 30 | "page_title" => $page['title'], 31 | "active_menu" => $menuItem, 32 | "active_page" => $page 33 | ]; 34 | break 2; 35 | } 36 | } 37 | } 38 | 39 | $breadcrumb_Items = $active_pageInfo['breadcrumb_Items'] ?? []; 40 | $page_title = $active_pageInfo['page_title'] ?? ''; 41 | $active_menu = $active_pageInfo['active_menu'] ?? null; 42 | $active_page = $active_pageInfo['active_page'] ?? null; 43 | ?> 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | <?= htmlspecialchars($page_title) ?> 53 | 54 | 55 | 56 | 57 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
69 | 70 | 71 | 106 | 107 |
108 |
109 |
110 |
111 |

112 |
113 |
114 | 121 |
122 |
123 |
124 |
125 | 126 | 180 | 181 |
182 | 183 |
184 | 185 |
186 | --------------------------------------------------------------------------------