SHYNAZ V5 — SIMPLE SALON OPERATIONS UPDATE
Owner: Jitesh | Nakodar and Dasuya, with support for additional salons.

UPLOAD / REPLACE
1. Back up your live website and export its database.
2. Extract this ZIP into the same website folder as index.php. Overwrite the included application files.
3. KEEP the existing config.php, existing uploads, and storage/documents. Do not delete those folders. This package contains no live config, database dump, session files or private documents.
4. Sign in with your EXISTING Supreme Admin account.
5. Open the dashboard and click ACTIVATE V5 UPDATE. Wait for the confirmation.
6. Refresh with Ctrl+F5. Reopen the installed app while online, and prepare its offline desk again if used.

NO MANUAL PHPMYADMIN IMPORT IS NEEDED.
The included database/WORKSPACE-V5.sql is used by the dashboard updater together with its PHP column/index migration. It is not a standalone full upgrade. Do not import a fresh schema or overwrite the database with an old backup.
The updater adds the new tables/fields, links existing client records, and retains existing accounts, passwords, attendance and content. Conflicting legacy contacts are flagged in audit history rather than silently merged. MySQL CREATE and ALTER privileges are needed.

IMPORTANT FIRST CONFIGURATION
The supplied database has nine services, two priced services, and NO artist profiles. No artist names or service prices have been invented.
- Create your real artists first, then select them on each service's edit form.
- Check service price, duration, category and active status before online bookings.
- A service with no active assigned artist remains an enquiry until configured.
- SMTP must be configured for email delivery. The dashboard's New requests area also records service requests when SMTP is unavailable.

WHAT CHANGED
- Account registration accepts email OR phone, or both. Existing email/admin logins continue. Phone login accepts country-code/spacing variants; ten-digit local numbers are treated as Indian numbers.
- New phone-only accounts have no fabricated email address. Store the chosen password securely. Email recovery uses SMTP; phone-only recovery is handled by authorised management after verifying the client.
- Brand-wide client/referral IDs are shared across salons. The client ID is separate from invoice numbers. Repeated submissions of the same booking/payment/stock-transfer form reuse the existing transaction or return a conflict if details changed.
- A new guest booking creates a client account when required, using a random undisclosed password and a one-hour password setup link. Passwords are hashed; existing passwords are never sent or displayed.
- Staff land on their assigned tasks. Additional work areas require explicit permission. Staff-profile creation and public artist-profile creation are separate choices.
- Student accounts open a student portal with course progress, lessons, PDFs/quizzes, attendance/leave, fees, invoices, and certificate-in-progress/issued status.
- Staff/students can check in, start/end breaks, check out, and request half-day/full-day leave. Management sees the history and can review leave requests. Active hours subtract recorded breaks. Check-out closes an open break. Leave approval does not fabricate attendance times or automatically deduct salary.
- Inventory retains its branch records and movement ledger. Shared item SKUs group matching titles/units; transfers move allocation between salons with linked out/in entries. Purchases affect total stock and costs; transfers do not create purchase expenses or increase brand totals.
- Service editing includes artist assignment directly, with branch filtering.
- Invoices show selected services, artists, client ID, amount received and balance. Advances, part payments and balance payments support transaction references and private payment proofs.
- Branded PDF downloads include the logo, totals, outstanding balance and payment history. Invoice emails include a PDF attachment.
- WhatsApp: share the PDF file using the supported device file-share menu, or download and attach it in WhatsApp. A prepared text message with service details and a secure PDF link is also available. This package does not automatically send WhatsApp messages: that requires a configured WhatsApp Business provider/API, which was not supplied. File sharing availability depends on the device/browser.
- Supreme Admin can edit invoices. An incharge can edit invoices only when granted Edit invoices permission. Staff cannot edit invoices; permanent deletion remains Supreme-only. Service changes that alter scheduled duration require a fresh estimate or use of the appointment diary, preserving artist availability checks.
- Salary entries can be adjusted before payment, including bonus/deductions, then paid with method/reference/proof. Paid salary records remain linked to one expense; existing salary expenses can be linked without creating another payment.

ADMIN CHECKLIST
[ ] Activate V5 and review Staff permissions.
[ ] Staff & accounts: enter employee details; choose profile type Staff or Artist.
[ ] Artist type creates a linked public artist profile; edit it for biography/photo/skills.
[ ] Service catalogue: select category, price, duration and available artists.
[ ] Assigned tasks: choose employee, title, instructions and optional deadline.
[ ] New requests: open client requests using their client and invoice IDs.
[ ] Approve the service estimate before accepting an advance/payment in the system.
[ ] Invoice: record Advance / Part / Balance, method, reference and optional proof.
[ ] Invoice: Download branded PDF, Share PDF file, WhatsApp message, email or print.
[ ] Create client password setup links only after verifying the recipient. Share the one-hour link, never a password.
[ ] Attendance: filter staff/student/date and review leave requests; correct shifts with a reason if needed.
[ ] Inventory: record purchases/opening/use; use Transfer allocation to move quantities between salons.
[ ] Salary records: add monthly entry, adjust unpaid calculations, then record payment/proof.
[ ] Expenses: filter by category, dates or employee; retain bills/receipts.

STAFF CHECKLIST
[ ] Sign in using your own email or phone and password.
[ ] Open Assigned tasks. Only your own tasks appear unless management access was specifically granted.
[ ] Update status and add a work note.
[ ] Attendance: Check in when arriving, Start break, Return from break, Check out when leaving.
[ ] Request half-day/full-day leave with a reason. Check out separately when you actually leave.
[ ] Create staff/artist profiles only if the matching permission has been granted.
[ ] Use reception, invoices, stock or expenses only when assigned those permissions.

STUDENT CHECKLIST
[ ] Register with email or phone and choose a password.
[ ] Apply for the selected salon's course and wait for admission approval.
[ ] My courses: view progress, fees and learning materials.
[ ] Attendance & leave: choose your approved course, then record attendance/breaks or request leave.
[ ] Fees & invoices: view total, payments, outstanding balance and PDF documents.
[ ] Certificates: see In progress / Awaiting issue / Issued status.
[ ] The academy issues the certificate after course completion and required fee clearance.
[ ] PDFs remain online reading until the academy grants download permission. Reading access cannot prevent screenshots or browser extraction of received material.

CLIENT CHECKLIST
[ ] Select salon → choose services → choose an artist per service → choose time.
[ ] Enter name and phone OR email. Optional: enter the referring person's SHY-CL client ID.
[ ] Submit once and keep the invoice/estimate reference.
[ ] New account: use the setup link to choose a password; existing client: sign in with existing details.
[ ] Your client ID can be shared for referrals. It is not a password or access token.
[ ] The salon approves services and records payments. Your account shows invoices and balances.

OFFLINE LIMITS
Prepare the device online using HTTPS and keep browser storage intact. The existing offline desk supports service, expense and check-in/out drafts and clearly marked draft printing. Break/leave management, full dashboards, payment posting, invoice approval, certificates, course material access and email delivery require the live system. Save an approved invoice PDF online for offline reprinting. Synchronisation runs while the app is open; conflicts remain for review.

VALIDATION / PRACTICAL LIMITS
117 PHP 8.3 runtime checks passed on an isolated database populated from the supplied SQL export, including repeated migration, account preservation, email/phone signup, duplicate contacts, artist assignment, staff scope, student admission/attendance/leave, referrals, advance/balance payments, transaction retry conflicts, stock allocation, salary/payment proof uploads and email attachment structure. PHP sources parse and JavaScript syntax checks pass. Branded PDFs were parsed, text-checked and rendered for inspection.
Live MySQL execution, SMTP delivery, physical printing, automatic WhatsApp delivery and visual layout across physical devices were not tested. Local browser preview could not connect in this environment. Check those on hosting after the update. The live website/database were not modified here.
