# Implementation Plan

## Phase 1 - Foundation

- Laravel-compatible project structure.
- MySQL migrations.
- Authentication controllers.
- Roles and permissions.
- Public and admin layouts.

## Phase 2 - Catalogue

- Categories, brands, products, variants and images.
- Shop filters, sorting and search.
- Product detail pages and reusable product cards.

## Phase 3 - Customer Ecommerce

- Cart, coupon entry, customer account, orders and addresses.
- Wishlist tables are present for the next UI pass.

## Phase 4 - Checkout

- Delivery zones and slots.
- Substitution preferences.
- Server-side totals.
- Order snapshots.

## Phase 5 - Payments

- PayFast gateway interface.
- Redirect data signing.
- ITN validation.
- Idempotent payment event recording.

## Phase 6 - Admin

- Dashboard KPIs.
- Product create/edit/archive.
- Order listing, status updates and picking list.
- Role and permission schema is ready for broader admin modules.

## Phase 7 - Notifications

- SMTP configuration is documented.
- Order email templates are the next implementation step.

## Phase 8 - Reporting and Polish

- KPI queries are wired.
- Chart rendering and deeper reports can build on existing order data.

## Phase 9 - Deployment

- cPanel, storage, cron, SMTP and PayFast documents are included.

## Phase 10 - Testing

- Initial feature/unit tests are included.
- Run `php artisan test` after installing PHP/composer dependencies.
