# Appointments Module - Quick Activation Guide

## Step 1: Activate via Admin Panel
1. Log in to your CRM admin panel
2. Navigate to: **Setup → Modules**
3. Find "Appointments" module in the list
4. Click the **"Activate"** button

## Step 2: If Module Doesn't Appear
Run this SQL in your database (phpMyAdmin):

```sql
INSERT INTO `tblmodules` (`module_name`, `active`) 
VALUES ('appointments', 1)
ON DUPLICATE KEY UPDATE `active` = 1;
```

## Step 3: Set Permissions
1. Go to: **Setup → Roles**
2. Click on the role you want to configure
3. Find "Appointments" section
4. Enable desired permissions:
   - View (to see appointments)
   - Create (future feature)
   - Edit (future feature)
   - Delete (future feature)

## Step 4: Access the Module
- Click **"Appointments"** in the left sidebar
- Then click **"View All Appointments"**

## Module Location
The module is installed at: `modules/appointments/`

## What It Does
- Displays all appointments from the `tblappointments` table
- Provides filtering by status, center, and service
- Shows appointment details in a modal popup
- Displays statistics dashboard

For more details, see: `modules/appointments/README.md`
