=== Booking Inquiry ===
Contributors: snehalpancholi
Tags: booking, inquiry, appointment, form, reservation
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Booking inquiry form with date/time selection and status management. No payment required — just a request.

== Description ==

**Booking Inquiry** lets you add a professional booking inquiry form to any page or post using a simple shortcode. Visitors fill in their name, email, phone, preferred service, date, time, and party size — no payment gateway required.

**Key Features:**

* Simple shortcode `[booking_inquiry]` — drop it anywhere
* Date picker that blocks past dates and your closed days
* 30-minute time slots from 8:00 AM to 8:00 PM
* Service type dropdown fully configurable from Settings
* Auto-reply confirmation email to the customer
* Admin notification email with full booking details
* Status management: Pending, Confirmed, Cancelled
* AJAX status updates in the admin — no page reload
* Inline expandable detail view for each inquiry
* Dashboard widget showing upcoming inquiries (next 30 days)
* Advance booking requirement (e.g., 1+ days ahead)
* Honeypot spam protection
* CSRF protection via WordPress nonces
* No jQuery — vanilla JavaScript only
* Mobile responsive with dark mode support

**Use Cases:**

Photography studios, event planners, consultants, coaches, salons, tutors — anyone who needs to collect scheduling requests without taking payment upfront.

== Installation ==

1. Upload the `booking-inquiry` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Settings > Booking Inquiry** to configure your email, services, and availability.
4. Add `[booking_inquiry]` to any page or post.

== Frequently Asked Questions ==

= Does this plugin take payments? =
No. This is a pure inquiry/request form. Customers submit a booking request and you confirm it manually.

= Can I customise the service types? =
Yes. Go to **Settings > Booking Inquiry** and edit the Service Types field — one service per line.

= How do I block certain days of the week? =
Under **Settings > Booking Inquiry > Availability**, check the days you want to mark as closed. Customers will be unable to select those days in the date picker.

= Can I require advance notice? =
Yes. Set the "Minimum Days in Advance" field. For example, setting it to 2 means customers cannot book a date less than 2 days from today.

= Where can I view submitted inquiries? =
Go to **Tools > Booking Inquiries**. You can filter by status, view full details, change the status, or delete inquiries.

= What data is stored in the database? =
Inquiries are stored in a custom table `{prefix}biq_inquiries` containing: name, email, phone, service, preferred date and time, party size, notes, status, submission timestamp, and IP address.

= What happens when I uninstall the plugin? =
The plugin deletes its settings (`addlc_biq_options` from `wp_options`) and drops the `{prefix}biq_inquiries` table. All inquiry data will be permanently removed.

== Screenshots ==

1. Booking inquiry form on the front end
2. Settings page — email, services, availability
3. Admin inquiries list with status badges and actions
4. Expanded detail row for a single inquiry
5. Dashboard widget showing upcoming inquiries

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release of Booking Inquiry.
