SHYNAZ V5.1 - STAFF, BOOKING AND ARTICLE UPDATE

INSTALL
1. Back up your live files and database.
2. Upload/overwrite the files in this package in the existing website folder.
3. Keep your existing config.php, uploads and storage documents. Do not delete them.
4. Sign in as Supreme Admin and click Apply V5.1 update on the dashboard.
   This expands article storage to LONGTEXT on MySQL. No SQL import is required.
5. Refresh with Ctrl+F5. Reopen the installed app if necessary.

STAFF TO ARTIST - ONE ACCOUNT
Admin > Staff accounts > Edit employee.
Select Employee works as: artist. Choose the salon, tick the services this
employee performs and Save. The same account keeps attendance and salary data.
Use Artist profiles to add their public biography, photo and skills if needed.
Do not create another artist profile for the same linked staff account.
Staff remains the login role; Artist means the employee performs services.
Each service requires its category, price, duration and an active artist.
Changing salon hides and clears incompatible service choices in the form.
Historical invoices and appointments are retained.

BOOKING AND RECEPTION
Client selects one or more services, artists, date/time and contact information.
When a service has one artist, that artist is selected automatically.
Create my client account is optional. Guests still receive a unique client ID
and pending invoice, without creating a login account.
Permitted branch staff use New requests or Invoices & estimates to see contact,
services, time, amount and the linked document. Check the client name, phone,
client ID and invoice number on arrival. Management approves the request.
Record advance/part/balance payments after approval. Pending or cancelled
requests remain records and do not become confirmed sales.
Invoice list now has a direct PDF download. Open an invoice for payment history,
print, PDF file sharing, WhatsApp message and email with PDF attachment.
Automatic WhatsApp delivery is NOT connected: reception must use the WhatsApp
share action or attach the downloaded PDF. It requires a separately configured
WhatsApp Business integration to send automatically. No password is sent.
Existing permissions and branch access rules remain enforced.

ARTICLES
Apply the dashboard update before publishing a long article on MySQL.
Article body supports over 20,000 words with LONGTEXT storage. The editor shows
word count, formatting tools, preview toggle and debounced preview for long text.
Headings, bold, italic and lists use the displayed Markdown syntax. This is a
Markdown editor rather than a visual word processor. SEO score is guidance,
not a search ranking measurement. Hosting PHP post_max_size and max_allowed_packet
must allow the request size; very large images should be uploaded separately.

VALIDATION
126 PHP runtime checks passed on PHP 8.3 with a SQLite test copy of the supplied
data, plus PHP/JavaScript syntax checks. These include staff-to-artist conversion,
branch service markup, long article persistence and guest booking without account.
Live MySQL migration, actual email delivery, device layouts and WhatsApp file
sharing still need a check on your hosting/devices. This package does not deploy
itself or claim those external services have been tested.
