﻿# GoFlixza v2 Modernization Progress

- **Last Updated:** 2026-11-25
- **Source Baseline (Read-Only):** `D:\Projects\Goflixza\QR-Code` (`main` @ `20a9f76d`, `https://github.com/khandkershahed/QR-Code.git`)
- **Active Workspace:** `D:\Projects\Goflixza\goflixza-v2` (3,255 files, new independent Git `main`, NO commit/push yet)
- **Target Repo:** `https://github.com/khandkershahed/Goflixza-Modification.git` (to be cleanly reset-pushed)
- **Protected Backup:** `D:\Projects\Goflixza\well-known.zip` (custom QR vendor + `.env` backup)

## Completed Checkpoints
- **Live Server Malware Cleanup (PASS):** Removed SEO cloaking (`public/index.php`, `lp.txt`, `google0c06d5df9608d691.html`), 6 `about.php` webshells, `Holmes/rfp.html.php`, and `jsdeliver.link` backlink injections in `jquery-3.6.0.min.js`. Restored clean Laravel `public/index.php`, installed SHA-256 verified official jQuery 3.6.0, hardened `storage/app/public/.htaccess`, verified `~/ecommerce` clean, and confirmed Googlebot sees the real GoFlixza title.
- **Workspace & AI Agent Setup (PASS):** Created `goflixza-v2` with `AGENTS.md`, `.aiignore`, `.agent/rules/core.md`, and `docs/ai/PROGRESS.md`.
- **Initial Sanitization (PASS):** Removed hardcoded Google Maps API key from 4 Blade files (replaced with `config('services.google.maps_api_key')`), added placeholder to `.env.example`, and hardened `.gitignore`.

## Core Modernization Requirements
1. Clean reset of `Goflixza-Modification.git` from scratch.
2. Blade-only app: remove all unused API routes and API controllers (including `CategoryApiController`).
3. Simple, clean, junior-friendly Laravel code with zero compromise on security or speed.
4. Remove all unnecessary/duplicate/dead files and folders.
5. Replace Bootstrap and custom CSS 100% with latest Tailwind CSS with zero visual/UI change.
6. Achieve A+ speed audit, fix non-scannable QR PDFs, preserve custom QR styles, and add new QR customizations.
7. Harden Stripe/Cashier SaaS recurring billing, policies, and webhooks.
8. Never modify live production database schema/data or run destructive migrations.

## Immediate Next Steps (End of Phase 00)
1. Delete obsolete local folders: `D:\Projects\Goflixza\goflixza-app` and `D:\Projects\Goflixza\goflixza-modification`.
2. Inspect 1 secret-scan match in `public\admin\assets\plugins\custom\datatables\datatables.bundle.js` (likely false positive).
3. Add `maps_api_key` under `google` in `config\services.php`.
4. Create first clean commit in `goflixza-v2` and reset-push `main` to `Goflixza-Modification.git`.

## Phase Tracker
| Phase | Scope | Status |
|---|---|---|
| 00 | Clean workspace + AI agent setup + sanitization + Git reset | IN PROGRESS |
| 01 | Fresh codebase audit (`MAP.md`, `AUDIT.md`, unused file cleanup list) | PENDING |
| 02 | Remove unused API + dead/duplicate files + P0 security fixes | PENDING |
| 03 | Stripe/Cashier SaaS recurring billing & policy hardening | PENDING |
| 04 | QR PDF scanability fix + app-owned QR engine + new customizations | PENDING |
| 05 | Laravel & PHP sequential upgrade (10 -> latest stable) | PENDING |
| 06 | Full Tailwind CSS migration (zero UI drift) + A+ speed optimization | PENDING |
