=== CabPhy Lead Connector ===
Contributors: cabphy
Tags: contact form, leads, cab booking, taxi, fleet management, enquiries, crm
Requires at least: 5.8
Tested up to: 6.4
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WordPress contact forms to CabPhy and receive enquiries directly in your mobile app.

== Description ==

**CabPhy Lead Connector** bridges your WordPress website with the CabPhy fleet management app. When visitors submit enquiries through your contact forms, they're instantly delivered to your CabPhy mobile app.

= Key Features =

* **Instant Lead Delivery** - Enquiries from your website appear in your CabPhy app within seconds
* **Push Notifications** - Get notified on your phone whenever a new lead comes in
* **Centralized Management** - Manage website and app enquiries in one dashboard
* **Auto Field Mapping** - Automatically detects common form fields like name, email, phone
* **Activity Logging** - Track all submitted leads with timestamps

= Supported Contact Form Plugins =

* Contact Form 7
* WPForms (Lite & Pro)
* Gravity Forms
* Ninja Forms
* Elementor Pro Forms
* Fluent Forms
* Formidable Forms

= How It Works =

1. Install and activate the CabPhy Lead Connector plugin
2. Get your API Key and Secret from the CabPhy mobile app (More → System → API Keys)
3. Enter your credentials in the plugin settings
4. That's it! Form submissions will now appear in your CabPhy app

= Benefits =

* **Respond Faster** - Beat competitors by responding to leads within minutes
* **Never Miss a Lead** - Push notifications ensure you see every enquiry
* **Convert More** - Turn enquiries into bookings directly from your phone
* **Work Anywhere** - Manage leads on-the-go from your mobile device
* **Secure** - Enterprise-grade API security protects your data

== Installation ==

1. Upload the `cabphy-leads` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to 'CabPhy Leads' in your admin menu
4. Enter your API Key and Secret Key from the CabPhy app
5. Click 'Test Connection' to verify your credentials
6. Save your settings

= Getting Your API Credentials =

1. Open the CabPhy mobile app
2. Tap "More" in the bottom navigation
3. Scroll to the "System" section
4. Tap "API Keys"
5. Tap "Create API Key"
6. Copy the API Key and Secret Key

**Important:** The Secret Key is shown only once. Store it securely!

== Frequently Asked Questions ==

= Do I need a CabPhy account? =

Yes, you need an active CabPhy account with a subscription plan that includes API access.

= Which contact form plugins are supported? =

We support Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Elementor Pro Forms, Fluent Forms, and Formidable Forms. More plugins can be added upon request.

= What fields are sent to CabPhy? =

The plugin sends: Customer Name, Phone, Email, Pickup Location, Drop Location (optional), Travel Date (optional), and Notes/Message (optional).

= Is my data secure? =

Yes, all data is transmitted over HTTPS with enterprise-grade encryption. Your API credentials are stored securely in your WordPress database.

= What happens if my subscription expires? =

Form submissions will stop being sent to CabPhy. You'll see an "Expired" status in the plugin settings. Renew your subscription in the CabPhy app to resume.

= Can I use this with multiple websites? =

Each website needs its own API Key. You can generate multiple keys in the CabPhy app.

== Screenshots ==

1. Plugin settings page with connection status
2. How it works - step by step guide
3. Supported contact form plugins
4. Benefits of using CabPhy Lead Connector
5. Activity log showing recent submissions

== Changelog ==

= 1.0.0 =
* Initial release
* Support for 7 major contact form plugins
* Auto field mapping
* Activity logging
* Connection status monitoring

== Upgrade Notice ==

= 1.0.0 =
Initial release of CabPhy Lead Connector.
