SHYNAZ V3 — WEBSITE, ACADEMY & TWO-BRANCH MANAGEMENT
Owner: Jitesh | Nakodar & Dasuya, Punjab, India

UPDATE YOUR EXISTING LIVE WEBSITE
1. Back up the live website files and MySQL database privately.
2. Extract this ZIP into the SAME website root and overwrite matching app files.
   Keep your existing config.php, uploads/ and storage/ data. The package has no
   private config.php, production database, sessions or installation lock.
   Include the supplied .htaccess files; show hidden files in cPanel if needed.
3. Sign in with your EXISTING Supreme Admin account/password (admin also works).
   Open Today and click ACTIVATE V3 UPDATE. This is the only database update
   step required. No database reinstall and no SQL import are necessary.
   It adds missing columns/tables, retains existing data/passwords and links
   older invoice contacts to client profiles. Repeating activation is safe.
   Your database user needs ALTER, CREATE, INDEX and normal data permissions.
   If activation is interrupted, repeat it before using the new features.
4. Refresh with Ctrl+F5. In Appointment diary, confirm actual lounge/artist
   opening hours, working days, service prices/durations and artist assignments.
   Defaults remain daily 10:00–20:00 IST until configured.
5. Review System & SMTP, real admin email, branch contacts and incharge accounts.
   Send a test email from settings. Test a booking, approval, receipt, admission,
   attendance event and certificate on your hosting before daily staff use.
6. Remove install.php, setup-status.php and any old repair-assets.php from public
   hosting after checks. Existing data and uploads must not be deleted.

DO NOT IMPORT YOUR OLD FULL DATABASE DUMP OVER THE LIVE DATABASE.
Do not replace config.php or the app key. SMTP encryption uses your existing key.
PORTAL-V3.sql documents the newly added tables. The authenticated activation
also adds the required columns/indexes and backfills client references.
The full package still contains the installer for genuinely empty installations;
existing installations do not run it.

NAVIGATION
Reception: Today, diary, service estimates and invoices.
CRM: Client service history and editable client profiles.
HRM: Staff accounts, attendance, staff reports, hiring and artist profiles.
Academy: Courses, lessons, admissions, fee records and certificates.
Finance: Expenses/receipts, inventory, stock ledger, sales/cost reports.
Website: Pages/menus, articles/SEO, gallery, section images, service catalogue.
Communication: Promotional email (Supreme Admin).
Device: Offline desk.
Administration: Staff permissions, branches, system/SMTP and audit.
Every staff action remains subject to server-side role and branch checks.
Only Supreme Admin edits/deletes financial invoices and assigns permissions.
Other removable business/content records are archived to retain their history.

ARTICLES & SEO
The lightweight editor supports headings, subheadings, bold, italic, lists and
links, with a preview. Headings use # / ## / ###, emphasis **bold** / *italic*,
links [label](https://...), and lists - item. HTML/scripts are escaped.
Add a readable slug, hashtags, focus keyword, meta title/description and image.
The automatic score is a content checklist, not a ranking or indexing guarantee.
Published articles open on their own page with their own SEO title/description.

ADMISSIONS / CLIENTS / HIRING
Students visit Admissions, choose a course/lounge and complete the form after
creating an account or signing in. It saves address, guardian, qualification,
emergency contact, experience and preferred batch against the enrollment.
Admin reviews admission details, confirms course status/fees, tracks progress,
sets actual course start/end dates and issues the relevant course certificate.
Course editor controls certificate heading/text. Certificates require 100%
completed status and full fees; they retain QR/online verification and revocation.
The supplied certificate was used as a style reference. No ISO/IAF logos or
unverified accreditation claims are added by this template.
Client profiles get stable numbers per branch/normalised phone. An account is
not verified or linked merely by entering someone else's phone. Public account
access remains tied to the signed-in user. Client profiles can be reviewed,
edited or archived by authorised staff.
Identifiers display automatically: SHY-CL, SHY-ST, SHY-EMP, SHY-INV, SHY-ART,
SHY-JOB, based on existing database IDs. Old invoice references remain traceable.
Hiring captures contact, address, education/training, experience, skills,
portfolio, emergency contact and optional private CV. After hiring approval,
create the staff account and public artist profile. Artist profiles can link to
staff accounts for performance reporting. Staff accounts include designation,
joining date, address, emergency contact, qualification, employment status,
photo, salary reference and optional private document. Marking employment Left
also disables the account. Salary payments are entered as assigned expenses;
this release does not calculate payroll, commissions or statutory deductions.
Password reset tokens are single use; resetting a password invalidates prior
sessions. Logout clears the server session and its cookie.

BOOKING / BILLING
Visitors choose one or more services/artists and a future appointment; reception
can choose Walk-in now. Availability is checked against working hours, service
duration, new slots and older appointments. Services run consecutively.
All new requests remain PENDING for branch approval. Pending/cancelled estimates
remain recorded and excluded from sales. An account owner cannot self-approve
services in V3. Branch staff with invoice permission approve the request.
Pending appointments reserve time until cancelled; review stale requests.
Cancelling a confirmed calendar appointment retains its financial invoice and
payments. It is not an automatic refund or sales reversal. Use the diary to
reschedule; financial invoice editing cannot bypass availability checks.

GALLERY / FRONTEND IMAGES
Both branch Instagram profile links are configured. No automated profile-wide
Instagram image download is included. Published assets remain branch-specific.
Gallery & shoots supports uploaded JPG/PNG/WEBP/MP4, direct image URLs, uploaded
covers/cover URLs and supported YouTube/Vimeo/Instagram post/reel links.
YouTube gets an automatic video thumbnail. Instagram requires a supplied cover
for an image thumbnail; otherwise a branded play card appears. A profile URL is
not a direct image or individual post/reel URL. External hosts may block embeds;
each video has a link to its original platform.
Only one supported embedded player is mounted at a time. Starting a native
video pauses other native videos and removes active embeds. External pages
opened in another tab are outside the website's playback control.
Photos open in a lightbox. Photos/videos can be filtered in the gallery grid.
Website > Section images controls hero, academy, service category, about/auth
and branch images per lounge. Individual services, courses, artists, pages and
articles also have upload fields. Hero/gallery use published branch photos as
a fallback. Use direct image URLs rather than an Instagram profile/post URL.

STAFF / FINANCE / REPORTS
Lists support search, branch restrictions, status/type/date filters as applicable
and compact pagination of 30 records. Search general records by name/email/
phone where present or their numeric/formatted reference.
Expenses can be assigned to staff and carry a private PDF/image receipt. Open
the expense editor to attach/view it. CVs, receipts and staff documents are stored
under protected storage and downloaded only through authenticated branch checks.
Maximum uploaded document/image size: 8 MB (host PHP limits also apply).
Attendance supports multiple sessions, duplicate-submit protection, student
check-ins, completed-hours totals and individual/date-range reports. Managers
can correct shifts with a reason; original values remain in audit. Corrections
are checked for overlaps. Staff cannot correct attendance or read other staff's
attendance through their personal attendance view.
Individual staff reports include assigned expenses and, with reporting access,
invoices created, payments recorded and linked artist service activity. Artist
values are before invoice discounts/tax; these are not commission calculations.
Daily/weekly/monthly/custom sales and cost reports remain available. Receipts,
sales and expenses use their respective payment/confirmation/expense dates.

EMAIL / PROMOTIONS
Use System & SMTP for host, port, account, encrypted password, sender and test.
Booking/admission/application messages use that sender. Delivery errors appear
in the mail log. Promotions are prepared by branch, reviewed and sent in explicit
batches of 10 to active clients/students who opted in. Account holders can change
that preference. Failed/uncertain deliveries are retained for review rather than
silently sent again. This is a manual campaign workflow, not a bulk-mail cron.

INSTALLATION / OFFLINE
PWA installation needs HTTPS (localhost is allowed for testing). Supported
browsers show an install prompt. Other browsers show installation instructions;
iOS uses Safari Share > Add to Home Screen. Installed/standalone sessions suppress
the prompt where the browser reports installation. Browser/device support varies.
Admin > Offline desk > Prepare this device downloads that branch's current
service catalogue and authorised draft types. Open the offline desk online once.
Offline supports SERVICE ESTIMATE DRAFTS, EXPENSE DRAFTS and YOUR ATTENDANCE EVENTS.
It calculates estimates from the saved catalogue and stores drafts in IndexedDB.
Approvals, receipts/payments, inventory changes, admissions and certificates
remain online operations; they are not blindly replayed from a cached dashboard.
The service worker caches the generic offline shell/assets, not private live
admin HTML or session credentials. Staff must sign in again if their session
expires. Drafts sync automatically when connectivity returns WHILE THE APP IS
OPEN, with a Sync button for retries. A closed browser cannot be guaranteed to sync.
Each UUID is remembered server-side with its owner and payload hash. Repeating
it returns the original record; changing a used payload is rejected. The server
rechecks current permissions, branch, prices, hours and appointment conflicts.
Changed prices, unavailable artists and attendance conflicts remain in Review.
Past service/attendance drafts can be reviewed/synced within seven days. Prices
and financial approval remain controlled by the branch. Drafts do not become
confirmed sales or payment receipts automatically.
Edit unsaved/review drafts to correct dates/details. Their reference is retained;
a draft already saved on the server cannot be silently overwritten. Export a
JSON backup of drafts and restore it on a prepared device under the same account.
Do not clear browser storage or lose the device before syncing/exporting drafts.
No website can guarantee recovery after device loss or cleared browser storage.

See VALIDATION-V3.txt for checks and production verification limits.
