=== Tavley Restaurant Booking ===
Contributors: mediazet
Tags: restaurant booking, reservation, table booking, restaurant reservation, bookings
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Restaurant reservations with an interactive floor-plan map, shifts, automatic emails, Staff App, marketing tools and built-in PRO support.

== Description ==

Tavley turns your WordPress site into your restaurant's booking system: customers pick date, shift and even the exact table from your real floor plan — you control everything from the dashboard.

= Free features =

* Up to 5 tables on the interactive map
* 1 active shift (lunch)
* Visual floor-plan editor: shapes, doors, windows, zones and labels
* Customers pick their table on the map
* Anti-fake email verification
* Automatic confirmation and cancellation emails
* Booking states and full history
* Staff App for waiters (PIN, today's arrivals, check-in, search)
* Newsletter & Landing Page builder
* AI assistant (with your own API key)
* Setup wizard and built-in diagnostics

= PRO Medium — yearly license =

* Unlimited tables and multiple rooms
* All shifts + Night Shift for events
* Extraordinary closures and holidays
* Full reports and analytics
* Social SEO and Restaurant Schema.org
* Ticket support (built-in Support PRO area)
* 1 year of updates

= PRO Max — lifetime license =

* Everything in PRO Medium
* Automatic birthday coupons with graphic themes
* Win-back coupons for inactive customers
* Anti no-show reminders
* Table orders and consumption tracking
* Advanced SEO: FAQ, geo, price range, llms.txt
* Lifetime license — no renewals

Official site: https://wptabley.mediazet.it/

== External Services ==

This plugin communicates with the Tavley license server (wptabley.mediazet.it) in the following cases:

* **PRO license validation** — when a PRO key is activated or checked, the plugin sends the license key and site domain to verify validity. Endpoint: https://wptabley.mediazet.it/wp-json/tly/v1/license
* **Telemetry (optional, explicit consent only)** — if you accept the "share statistics" banner, the plugin periodically sends site domain, plugin version, plan and admin email. No content, customer data or bookings are ever sent. Can be disabled anytime in Tavley → Settings.
* **Ticket support (active PRO licenses only)** — support requests sent from the Support PRO menu transmit to the license server: license key, domain, name, email, message and diagnostic data (plugin/WP/PHP versions, theme). Endpoints: https://wptabley.mediazet.it/wp-json/tly/v1/support and /tickets
* **AI assistant (optional, admin only)** — if you configure your own API key in Tavley → AI Assistant, the plugin sends your typed questions and the restaurant profile (name, cuisine, address — data you entered in the venue settings) to the AI provider endpoint you configured (e.g. Groq https://api.groq.com or OpenAI https://api.openai.com). No customer or booking data is sent. The feature is disabled until you enter a key. Groq terms: https://groq.com/privacy-policy/ — OpenAI terms: https://openai.com/policies/privacy-policy/

No other external calls are made.

== Installation ==

1. Upload the `tavley-restaurant-booking` folder to `/wp-content/plugins/` (or install the ZIP via Plugins → Add New → Upload)
2. Activate the plugin
3. Follow the setup wizard: draw your room, set the shifts, publish the booking page
4. To unlock PRO features: Tavley → Upgrade → enter your license key

== Frequently Asked Questions ==

= Does the license work on multiple sites? =
One key = one site. To move it: deactivate on the old site, activate on the new one.

= How does support work? =
With PRO Medium and PRO Max you open tickets right inside the plugin (Support PRO menu): message threads, colored statuses and tracked replies.

= Do I need a developer to install it? =
No: it installs like any WordPress plugin and the setup wizard walks you to your first booking.

== Changelog ==

= 2.0 =
* Built-in ticket support system (Support PRO area with statuses and threads)
* First-run setup wizard
* AI assistant with customer reply drafts
* Newsletter & Landing Page
* Staff App (PWA)
* Advanced SEO: FAQ, geo, llms.txt (PRO Max)

== Upgrade Notice ==

= 2.0 =
Adds ticket support, AI assistant, newsletter and Staff App. Recommended update.
