=== Ulasaslan Multi-Agent Chat ===
Contributors: ulasaslan
Tags: chat button, multi-agent, working hours, click analytics, whatsapp
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a floating contact panel with multiple departments, working hours control, and click analytics.

== Description ==

Ulasaslan Multi-Agent Chat adds a floating contact button to your WordPress site. Visitors can choose which department to contact (Sales, Support, Billing…) and the message opens directly in WhatsApp with a pre-filled greeting.

= Features =

* **Multi-department routing** — Add multiple departments, each with its own WhatsApp number and pre-filled message. Visitors choose who to contact from a popup panel.
* **Working hours control** — Set open hours per day of the week. Outside those hours you can hide the button, show an offline message, or keep it active.
* **Click analytics** — Every button click is logged in your WordPress database. View totals by department, page, and time period from the admin dashboard.
* **Customisable appearance** — Choose button position, colour, and size. No coding required.
* **No external services** — The only external request is the standard WhatsApp `wa.me` link when a visitor clicks. No data is sent to third parties.

= Privacy =

Ulasaslan Multi-Agent Chat records the page URL, browser type, and IP address of button clicks for analytics. All data is stored in your own database. No data is shared with third parties. Update your site's Privacy Policy accordingly.

== Installation ==

1. Upload the `ulasaslan-multi-agent-chat` folder to `/wp-content/plugins/`, or install via **Plugins → Add New**.
2. Activate the plugin.
3. Go to **WhatsApp → Settings** in your admin menu.
4. Enter your WhatsApp number (with country code, e.g. `905551234567`).
5. Optionally add departments, configure working hours, and choose a button style.
6. Save — the button is live.

== Frequently Asked Questions ==

= Do I need a WhatsApp Business account? =

No. The plugin works with any WhatsApp number.

= How many departments can I add? =

There is no limit.

= Does it work on mobile? =

Yes. On mobile the WhatsApp app opens; on desktop WhatsApp Web opens. This is handled by WhatsApp's `wa.me` link format.

= Is it compatible with caching plugins? =

Yes. The working-hours check runs server-side on each page load, so cached pages show the correct button state.

= Where can I get support? =

Open a thread in the [Plugin Support Forum](https://wordpress.org/support/plugin/ulasaslan-multi-agent-chat/).

== Screenshots ==

1. Floating WhatsApp button on a live site.
2. Department popup — visitors choose which team to contact.
3. Settings page — number, style, colour, position, working hours.
4. Analytics dashboard — clicks by department and time period.

== Changelog ==

= 1.0.1 =
* Moved inline styles and scripts to enqueued files (wp_enqueue_style, wp_enqueue_script).
* Removed unnecessary load_plugin_textdomain() call.
* Updated plugin description and display name.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release — no upgrade steps needed.
