=== Simple Lead Generator ===
Contributors: Surror
Tags: lead generation, form, inquiry, contact form, AJAX form
Donate link: https://www.paypal.me/surror/
Tested up to: 6.8
Stable tag: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily generate leads with an AJAX-based form and a modern admin dashboard.

== Description ==

**Simple Lead Generator** adds a lightweight AJAX lead capture form to any page or post via shortcode. Submitted leads are stored privately and listed in the plugin **Leads** admin tab.

= Features =

* Shortcode `[simple_lead_generator]` — drop the form anywhere
* AJAX submission — no full page reload
* Modern React admin (Home, Leads, Settings, Support)
* Optional platform telemetry (opt-in)
* Built-in support inbox when connected to the platform

= Shortcode =

`[simple_lead_generator]`

Customize labels and required fields with shortcode attributes (see plugin admin Home screen).

= Support =

Questions or feature requests: [contact us](https://surror.com/).

== Installation ==

= From within dashboard (recommended) =

1. Navigate to `Dashboard > Plugins > Add New`;
2. Search for `Simple Lead Generator`;
3. Click `Install`, then `Activate`.

= Manual installation =

1. Download the plugin as a .zip file;
2. Unzip and upload the `simple-lead-generator` folder to `/wp-content/plugins/`;
3. Navigate to `Dashboard > Plugins` and activate the plugin.

== Frequently Asked Questions ==

= Where do leads go? =

Each submission is saved as a lead and appears under **Simple Lead Generator → Leads** in wp-admin.

= Does this require an account? =

No. The form works fully offline. Platform registration and telemetry are optional.

== Changelog ==

= 1.2.2 =
* Improvement: Settings split into separate cards — Form & messages, ROI estimates, Platform & telemetry
* Improvement: Platform URL clearly marked optional (leave blank for production default)

= 1.2.1 =
* New: Form settings — success message, form title/description, submit text
* New: ROI settings — close rate, currency symbol, monthly marketing cost
* New: Leads page stat cards — pipeline, estimated revenue, ROI
* Improvement: Polished leads table with mailto/tel links and expandable messages

= 1.2.0 =
* New: **Leads** admin tab — view and delete form submissions
* Change: Lead storage uses private `slg_lead` post type (no wp-admin Customers menu)
* Change: Home links to Leads tab instead of legacy Customers screen

= 1.1.1 =
* Fix: Lead submissions are saved as published (not draft) so Home lead count is accurate
* Fix: Platform diagnostics + weekly telemetry honor per-product platform_enabled filter

= 1.1.0 =
* New: Modern React admin shell (Home, Settings, Support)
* New: Optional platform telemetry and support inbox
* Improvement: WordPress 6.0+ and PHP 7.4+ requirements
* Improvement: Preserved AJAX shortcode from 1.0.x

= 1.0.2 =
* Improvement: Removed unwanted files.
* Improvement: Updated compatibility for WordPress 6.2.2

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.2.2 =
Settings UX polish. Platform URL is optional — the lead form works fully offline without it.

= 1.2.0 =
New Leads admin tab and private lead storage. If you used 1.0.x–1.1.x, old Customer posts are not migrated — delete them manually if needed.
