# Patel E-Mitra & Aadhaar Seva Kendra CMS

## 🎯 Complete Admin Panel CMS for Digital Service Centers

A professional, feature-rich Content Management System (CMS) designed specifically for E-Mitra and Aadhaar Seva Kendra centers.

---

## ✨ Features

### Admin Panel
- ✅ **Dashboard** - Complete statistics and overview
- ✅ **Services Management** - Add/Edit/Delete services with pricing
- ✅ **Gallery Management** - Upload and manage images
- ✅ **Appointment System** - Manage online bookings
- ✅ **Enquiry Management** - View and respond to contact form submissions
- ✅ **Notice Board** - Publish important notices
- ✅ **Download Manager** - Manage downloadable forms
- ✅ **User Management** - Manage admin users (Admin only)
- ✅ **Backup System** - Database backup/restore (Admin only)
- ✅ **Settings** - Site configuration

### Frontend
- ✅ **Dynamic Homepage** - Auto-updates from admin panel
- ✅ **Services Page** - Display all services with pricing
- ✅ **Gallery** - Image gallery with categories
- ✅ **Appointment Booking** - Online booking system
- ✅ **Contact Form** - With database storage
- ✅ **Downloads** - Downloadable forms
- ✅ **Notice Board** - Dynamic notices
- ✅ **Responsive Design** - Mobile-friendly

### Security
- ✅ Password hashing (bcrypt)
- ✅ CSRF protection
- ✅ SQL injection prevention
- ✅ XSS protection
- ✅ Session management
- ✅ File upload security
- ✅ .htaccess security rules

---

## 📋 Requirements

- **PHP** 7.4 or higher
- **MySQL** 5.7 or higher
- **Apache** with mod_rewrite enabled
- **SSL Certificate** (recommended)

---

## 🚀 Installation

### Step 1: Upload Files
Upload all files to your web server using FTP or cPanel File Manager.

### Step 2: Create Database
1. Login to cPanel or phpMyAdmin
2. Create a new MySQL database
3. Note the database name, username, and password

### Step 3: Run Installation
1. Open your browser and go to: `https://yourdomain.com/install.php`
2. Follow the installation wizard:
   - **Step 1:** Enter database credentials
   - **Step 2:** Import database
   - **Step 3:** Create admin account
   - **Step 4:** Installation complete!

### Step 4: Security
1. **Delete `install.php`** file after installation
2. Change default admin password
3. Configure site settings in admin panel

---

## 🔐 Default Admin Login

After installation, login with the credentials you created during installation.

**Admin Panel URL:** `https://yourdomain.com/admin/login.php`

---

## 📁 Directory Structure

```
patel-emitra-cms/
│
├── admin/                      # Admin panel
│   ├── index.php              # Dashboard
│   ├── login.php              # Login page
│   ├── logout.php             # Logout
│   ├── profile.php            # User profile
│   ├── settings.php           # Site settings
│   ├── services/              # Services management
│   ├── gallery/               # Gallery management
│   ├── appointments/          # Appointment management
│   ├── notices/               # Notice board
│   ├── downloads/             # Download management
│   ├── enquiries/             # Contact enquiries
│   ├── users/                 # User management
│   └── backup/                # Database backup
│
├── assets/                    # Public assets
│   ├── css/                   # Stylesheets
│   ├── js/                    # JavaScript files
│   ├── images/                # Images
│   ├── uploads/               # User uploads
│   └── icons/                 # Icons
│
├── config/                    # Configuration files
│   ├── config.php             # Main config
│   ├── database.php           # Database config
│   └── constants.php          # Constants
│
├── includes/                  # Include files
│   ├── header.php             # Header
│   ├── footer.php             # Footer
│   ├── navbar.php             # Navigation
│   ├── sidebar.php            # Sidebar
│   ├── auth.php               # Authentication
│   └── functions.php          # Helper functions
│
├── pages/                     # Frontend pages
│   ├── about.php              # About page
│   ├── services.php           # Services page
│   ├── appointment.php        # Appointment booking
│   ├── gallery.php            # Gallery page
│   ├── downloads.php          # Downloads page
│   ├── contact.php            # Contact page
│   └── faq.php                # FAQ page
│
├── database/                  # Database files
│   └── patel_emitra.sql       # Database schema
│
├── index.php                  # Homepage
├── install.php                # Installation script
├── .htaccess                  # Apache config
├── robots.txt                 # Robots file
├── sitemap.xml                # Sitemap
└── README.md                  # This file
```

---

## 🎨 Customization

### Change Site Name & Settings
1. Login to Admin Panel
2. Go to **Settings**
3. Update site name, tagline, contact info, etc.

### Add Services
1. Go to **Services** in admin panel
2. Click **Add New Service**
3. Fill in details and save

### Upload Gallery Images
1. Go to **Gallery** in admin panel
2. Click **Upload Image**
3. Select image and add details

### Manage Appointments
1. Go to **Appointments** in admin panel
2. View all bookings
3. Update status (Pending, Confirmed, Completed, Cancelled)

---

## 🔒 Security Best Practices

1. **Delete install.php** after installation
2. **Use strong passwords** for admin accounts
3. **Enable HTTPS/SSL** on your domain
4. **Regular backups** of database
5. **Keep PHP updated** to latest version
6. **Restrict file uploads** to specific types
7. **Monitor activity logs** regularly

---

## 📞 Support

For support or customization:
- **Email:** patelshop03@gmail.com
- **Phone:** +91 70141 55018
- **Website:** https://aadharsevakendra.in

---

## 📄 License

This CMS is proprietary software created for Patel E-Mitra & Aadhaar Seva Kendra.

---

## 🎯 Version History

### Version 1.0 (Current)
- ✅ Complete admin panel
- ✅ Services management
- ✅ Gallery management
- ✅ Appointment system
- ✅ Contact form with database
- ✅ Notice board
- ✅ Download management
- ✅ User management
- ✅ Backup system
- ✅ Security features

---

## 🚀 Quick Start Checklist

- [ ] Upload files to server
- [ ] Create MySQL database
- [ ] Run installation script
- [ ] Delete install.php
- [ ] Login to admin panel
- [ ] Configure site settings
- [ ] Add services
- [ ] Upload gallery images
- [ ] Test frontend
- [ ] Share website URL

---

**Made with ❤️ for Digital India**
