=== ManageGlut ===
Contributors: appglut
Tags: management, crud, builder, roles, no-code
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Build school, restaurant, hotel, POS or any custom management system with a drag and drop builder, generated pages, roles and front-end login.

== Description ==

ManageGlut turns WordPress into a management system you design yourself. Create a **service** (for example School Management), add **modules** (Students, Classes, Fees), and drag **fields** onto each module's form. The plugin generates the admin menu, the list page with statistics, the add and edit forms, roles and permissions.

= Two separate admin areas =

* **Builder** - create and edit services, modules and fields, switch services on or off, manage roles and settings.
* **Service menus** - every running service gets its own top-level menu with its own dashboard and modules. People working in one service never see the others.

= Features =

* Drag and drop field builder with 13 field types: text, long text, number, price, email, phone, select, radio, toggle, date, time, image and relation to another module.
* Generated list pages: statistic cards, status tabs, search, sorting, pagination, bulk delete and CSV export.
* Generated add and edit forms with validation (required, unique, minimum and maximum).
* Ready-made, editable templates: School, Restaurant, Hotel and POS.
* Role builder with a permission grid (view, add, edit, delete) for every module. Menus and buttons are hidden when a role has no permission.
* Front-end shortcodes: `[manageglut_register]`, `[manageglut_login]`, `[manageglut_profile]`.
* Data stays on your site. Nothing is sent to external services.

= Not included =

The templates are starting points made of lists and forms. They do not include a sales screen, stock deduction, booking calendars or accounting.

== Installation ==

1. Upload the `manageglut` folder to `/wp-content/plugins/`, or install the plugin from the Plugins screen.
2. Activate the plugin.
3. Open **ManageGlut Builder** in the admin menu, choose **Templates** or **New Service**, and start building.

== Frequently Asked Questions ==

= Where is my data stored? =

In three database tables created on activation (`manageglut_services`, `manageglut_modules`, `manageglut_records`). Record values are stored as JSON, so changing a module's fields never changes the database structure.

= Does deleting the plugin delete my data? =

Not by default. Switch on "Delete all services, records, roles and settings when the plugin is deleted" in Settings first if you want that.

= Can visitors register as administrators? =

No. New registrations always get the role chosen in Settings, and roles that can manage the site are refused.

= Does it connect to any external service? =

No. All scripts, styles and fonts are bundled with the plugin.

== Source code ==

The admin app in `resources/` is compiled with Vite. The full, human-readable source is in `assets/src/` inside this plugin.

To rebuild it:

1. Install Node.js 18 or newer.
2. In the plugin folder run `npm install`, then `npm run build`.

== Third-party libraries ==

Bundled in `resources/` (compiled from `package.json`):

* React and React DOM - MIT License
* Ant Design (antd) and @ant-design/icons - MIT License
* dnd-kit - MIT License
* Day.js - MIT License
* Inter font (via @fontsource/inter) - SIL Open Font License 1.1

== Changelog ==

= 1.0.0 =
* Initial release: services, modules, drag and drop field builder, generated list and form pages, roles and permissions, School / Restaurant / Hotel / POS templates, and front-end register, login and profile shortcodes.
