SHYNAZ V8 - RECEPTION BILLING & MANAGED PORTALS
Upgrade for the existing SHYNAZ PHP website. Brand: SHYNAZ. Owner: Jitesh.

INSTALL ON YOUR EXISTING WEBSITE
1. Back up the live database and website folder before overwriting files.
2. Extract this ZIP into the same website folder as your existing index.php.
   Overwrite the supplied application files. Do not delete the existing folder.
   Keep your live config.php, uploads and storage contents. This ZIP contains
   no live config.php, database export, passwords, client records or uploaded photos.
   It supplies protection rules inside storage/uploads; these do not erase files.
3. Sign in with your EXISTING Supreme Admin account.
4. Open the admin dashboard and click "Apply V8 update" ONCE.
   The application adds the database tables/columns itself. Do NOT import the SQL
   files into phpMyAdmin for this update, and do NOT reinstall the website.
   The upgrade can be retried safely; it does not reset account passwords,
   delete invoices or renumber previous documents.
5. Refresh with Ctrl+F5. Reopen an installed app if it still shows an old page.
6. Review permissions, a sample invoice and your certificate template before use.
   Existing V7 branch WhatsApp sender settings are retained.

WHAT CHANGES
- Public visitors browse services/prices, artists, courses and gallery.
- Public self-registration and service invoice creation are disabled, including
  attempts to post directly to the old endpoints.
- Clients still have a VIEW portal if Supreme Admin creates their account.
  This follows the later request to retain client invoices/offers/referrals.
- New invoices are confirmed immediately by an authorised reception/admin user;
  there is no estimate approval step for these invoices.
- Previous pending/cancelled invoices and their original numbers remain available.
- New invoice numbers: SBL-YYYY-000001, using one brand-wide sequence shared by
  both salons and course fees. Existing numbers remain unchanged.
- Existing salary, expenses, receipts, stock, attendance, learning and permissions
  remain in the application. Staff cannot edit financial invoices unless they are
  an authorised admin/incharge with Edit invoices permission. Only Supreme can delete.

RECEPTION - CREATE AN INVOICE
1. Admin -> Invoices & payments -> Create invoice.
2. Select the salon and open its catalogue.
3. Enter client name and phone OR email. An account is not required to invoice.
4. Tick services. Set quantities and prices. Select performing artists as needed.
   Multiple artists can be selected per service. They may also be assigned later
   using the performing-team section on the saved invoice.
5. Enter any discount, GST percentage and salon GSTIN. No GST rate is assumed.
6. Enter received amount, advance/part/final type, mode, date, reference and proof.
   Leave received amount at zero if nothing was paid. Never record a promised
   payment as money received. Totals and outstanding balance are calculated.
7. For a completed visit, tick "These services have been completed". Leave it
   unticked for a future appointment or a service not yet performed.
8. Create invoice. It is saved immediately; no separate approval is necessary.
9. Open the invoice to download the branded A4 PDF, print, share a file, send
   email, prepare WhatsApp text or use an already-configured WhatsApp API sender.
10. Record later payments against the SAME invoice. Do not create another invoice
    to record the remaining balance. Repeated submission of the same form is
    checked to avoid duplicate billing.

GST
Enter the percentage and GSTIN appropriate to the salon on the invoice.
The GST amount is calculated after the discount and shown in the PDF. This
release does not add GST-return filing, tax advice or a CGST/SGST/IGST ledger.

ACCOUNTS & PERMISSIONS - SUPREME ADMIN
1. Admin -> Accounts & staff -> Add account.
2. Choose Client, Student, Staff or Admin / branch incharge. Supreme Admin is a
   full-access role and should be assigned only when that full access is intended.
3. Enter phone or email, branch, active status and a password of at least 10
   characters. Share login details privately. Passwords are stored as hashes.
4. For staff, add joining date, salary, designation, skills and employment details.
   Choose Artist when the employee also needs an artist profile.
5. Admin -> Staff permissions -> select the employee and grant their work areas.
   Reception normally needs Invoices, Clients and, if applicable, Today/Diary.
   Grant Certificates if they should issue completion certificates.
   Only an authorised Admin / branch incharge can receive invoice editing access.
6. Staff can open My employment & salary for their own employment and salary
   history, payment references, salary proof and travel requests.
7. Admin-created client/student accounts link prior guest invoices and service
   certificates matching their verified customer record. Contact conflicts are
   rejected rather than merged silently.

ADMISSIONS & STUDENTS
1. Visitor chooses a course and submits the public admission enquiry form.
   This creates an admission request, NOT a user account or fee invoice.
   Reception can submit this form for an in-person applicant too.
2. Admin -> Admission requests. Review details and choose Approve.
3. Enter a new-student password, course dates and assigned study plan.
   A matching existing client/student account keeps its password; a new account
   uses the admin-entered password. Staff contact details cannot become students.
4. Approval creates/links the student, active enrollment and confirmed SBL fee
   invoice. Record actual fee payments on that invoice.
5. Admin -> Admissions & students to update progress, dates, study plan and
   download permission. Courses -> Manage learning holds lessons/PDFs/quizzes.
6. Student signs in with phone/email and password to see the assigned plan,
   lessons, attendance/leave, invoices/payments, offers, certificates and their
   recent successful portal logins. Login history begins with this update.
7. Mark 100% progress and Completed only after the course is completed.

COURSE CERTIFICATE TEMPLATES
1. Admin -> Certificate templates -> Upload blank template.
2. Select its salon and course. Use General / service for a salon-service template.
3. Upload ONE blank A4 LANDSCAPE PDF page (297 x 210 mm), or a PNG/JPG in those
   proportions. Maximum upload is 8 MB. Student names/dates must be absent.
4. Set text positions measured from the TOP in PDF points, and font sizes.
   Fields are centred: heading, student/client name, course/services, completion
   note, dates, certificate/invoice numbers and signatory.
5. Save, then open Preview A4 PDF. Adjust text positions from the template list.
   Upload a new template record if you need a different background.
6. Preview long names/course titles and artist lists before issuing. Leave room
   for wrapped lines. The built-in certificate font supports Latin-script text;
   use Latin-script names/details for this release. It does not shape Punjabi/Hindi.
7. Admin -> Certificates -> choose the student's course registration and template.
   Student details and course dates are fetched from the admission record.
   Fully paid fees, Completed status, 100% progress and course dates are required.
8. Issue. Open the certificate page and wait for "Certificate PDF archived".
   PDF generation runs in your browser using the locally supplied renderer;
   when opened by an authorised admin, the PDF is saved to private document storage.
9. Student sees it under Certificates and can download the PDF. Admin can download,
   print or manually send it. Earlier certificates retain their earlier renderer.
10. Verification uses the printed SBL-CERT number and displays the recipient,
    course/service, branch and valid/revoked completion record without private
    contact details. Keep private PDF links private. Revocation remains recorded;
    copies already downloaded cannot be remotely removed.

SALON SERVICE CERTIFICATES
- Any salon invoice can receive a service certificate from its invoice page.
- It requires full payment, admin confirmation that services are completed and
  performing artists assigned to EVERY service. Client, services, artist names
  and unique artist count are copied into the certificate record.
- For services that routinely need one: edit the service in Service catalogue and
  set "Issue service certificate after paid completion" to Yes.
- If the invoice was marked completed, the required certificate record is created
  after payment and artist assignment are complete, provided the acting account
  has Certificate permission. Otherwise authorised admin issues it from the invoice.
- Open the resulting certificate once as admin to render/archive the actual PDF.
- A service certificate records a performed salon service; it is distinct from an
  academy course-completion certificate.

HR - ATTENDANCE, LEAVE & TRAVEL
1. Staff: use Attendance to Start day, Start/Return from break and Finish day.
   Existing salon public-IP restrictions still apply. Browser Wi-Fi names alone
   do not authenticate attendance.
2. Staff/students can request half-day or full-day leave in attendance.
3. Staff can request travel NOC in My employment & salary.
4. Admin -> Leave & travel inbox to approve/reject requests and write a note.
   Pending counts appear on the main dashboard. Managers cannot approve their
   own requests; Supreme Admin can review all salons.
5. Approved travel NOC has Print / Save PDF. Staff can open their own approved NOC.
6. Salary records continue to hold monthly base, bonus, deductions, payment mode,
   transaction reference and uploaded proof. A salary payment stays linked to its
   expense; it is not recorded as another expense a second time.

OFFERS, LOYALTY & REFERRALS
- Admin -> Portal offers: choose salon, client/student/both audience, dates and text.
  Active offers appear on the Offers tab and in a dismissible popup once per browser
  session for the current set of offers. Expired/closed offers do not appear.
- Admin -> Loyalty & referrals: award (+) or redeem (-) whole loyalty points with
  a reason. Insufficient-point redemptions are rejected. This is a manual ledger;
  reward values are set by your promotion terms, not an automatic cash conversion.
- A client shares their SHY-CL referral ID. Reception enters it on the referred
  person's invoice. Admin sees referred client/invoice details. The referring
  client sees their ID, points history and referral count, not another person's
  private invoice or contact details.

EXISTING DELIVERY / OFFLINE FEATURES
- Email requires working SMTP. Automatic WhatsApp requires the existing registered
  sender/API configuration for the invoice's salon. Numbers alone do not configure
  automatic sending. Manual PDF sharing remains available.
- No external emails or WhatsApp messages were sent during development testing.
- Existing offline drafts still need authenticated sync and server validation.
  An offline draft is not proof of payment. Offline attendance remains disabled
  when salon network verification is required. Certificates/approval require online use.

VALIDATION
Development checks use PHP 8.3 with a disposable SQLite copy of the supplied
schema/data, not your live database. They exercise invoice calculations, roles,
branch restrictions, admissions, portal records, salary proof, certificate upload,
PDF archive, duplicate handling and old V7 document compatibility. PDF layouts
were rendered and visually inspected. Live MySQL, hosting permissions, real-device
printing, SMTP delivery and Meta delivery must be checked on your installation.
