=== Booking Calendar Schedule Form ===
Contributors: ayeshatariq1
Tags: booking, calendar, hotel booking, schedule, reservation
Requires at least: 5.6
Tested up to: 7.0
Stable tag: 1.1.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Customizable booking calendar and schedule form for hotels, rentals, and appointments. Shortcode [qbwdgt_booking].

== Description ==
Booking Calendar Schedule Form adds a two-step booking calendar to any page. Visitors pick check-in/check-out (or arrival/return) dates and times, then submit their details.

Customize colors, fonts, layout, popup mode, and calendar labels (hotel, car rental, appointment, rental) under **Booking Calendar → Form Style** — no coding required.

Bookings are saved in your WordPress database. Approve or reject from the admin dashboard; optional emails go to you and the customer.

== Installation ==

= Step 1 — Install and activate =
1. In WordPress admin go to **Plugins → Add New**.
2. Search for **Booking Calendar Schedule Form** (plugin slug: quick-booking-widget).
3. Click **Install Now**, then **Activate**.

= Step 2 — Customize the form (optional) =
1. Go to **Booking Calendar → Form Style**.
2. Set form title, colors, style preset, popup or inline mode, and max width.
3. Click **Save form design**.

= Step 3 — Add the booking form to a page =
1. Go to **Pages → Add New** (or edit an existing page).
2. Add a **Shortcode** block.
3. Paste: `[qbwdgt_booking]`
4. Click **Update** or **Publish**.
5. View the page — you will see the booking form (or **Book Now** button if popup mode is enabled).

= Step 4 — Manage bookings =
1. Open **Booking Calendar → All Bookings**.
2. View customer details, arrival/return dates, and status.
3. Use **Approve**, **Reject**, or edit and **Save & Send Email**.

== Screenshots ==

1. Inline booking bar — horizontal date, time, and guests fields with Check Availability button.
2. Popup booking modal — stacked fields with calendar and time icons on any page.
3. Form Style admin — colors, layout, field widths, popup options, and booking rules (no code).

== Features ==
* 2-step booking form: Date/Time then Customer Details
* Form Style admin: colors, fonts, presets, popup/inline, layout, max width
* AJAX submission (no page reload)
* Custom database table for bookings
* Admin and customer email notifications
* Approve / reject from dashboard

== Shortcode ==
[qbwdgt_booking]

Optional attributes: mode="popup" trigger="Book Now" layout="horizontal|stacked|compact" columns="4|2|1" align="center" max_width="800px"

Default styling: **Booking Calendar → Form Style**.

== Frequently Asked Questions ==

= Where do I customize colors and layout? =
**Booking Calendar → Form Style** (see screenshot 4).

= Where do I add the booking form? =
Add `[qbwdgt_booking]` to any page using a Shortcode block (see screenshot 2).

= Where are bookings stored? =
In the custom table `wp_quick_bookings`.

= How do I approve a booking? =
**Booking Calendar → All Bookings** → Approve or Reject (see screenshot 3).

== Changelog ==

= 1.1.8 =
* Responsive inline and popup form for mobile, tablet, and desktop
* Inline horizontal bar layout with optional guests in same row
* Custom field width layout (25%–100%) for popup and inline custom mode
* Calendar opens under the clicked date field; icons stay inside inputs
* Popup max width and input field width settings in Form Style
* Elementor widget support
* Fixed plugin update error ("Sorry, you are not allowed to access this page")
* Database upgrade runs once per version, not on every page load

= 1.1.7 =
* Rebranded as Booking Calendar Schedule Form
* Form Style screen: colors, fonts, presets, hotel/rental/appointment labels
* Popup and inline display modes, flex layout, columns, max width, custom CSS
* Shortcode [qbwdgt_booking] with optional attributes
* Booking list with approve/reject and email notifications
* Timezone-safe booked-on display in admin

= 1.1.6 =
* Resolved Plugin Check nonce warnings on admin list query args

= 1.1.5 =
* Fixed admin filter/pagination nonce verification
* Hardened AJAX nonce validation

= 1.1.4 =
* SMTP compatibility and delete booking fix

= 1.1.3 =
* WordPress 6.9 compatibility

= 1.0.0 =
* Initial release
