# Conversion Audit

## Converted

- Storefront and admin CakePHP controllers moved into Laravel namespaces.
- Cake routes recreated in `routes/web.php`, including legacy controller/action URLs.
- Cake ORM calls supported through Laravel Query Builder adapters (`find`, conditions, joins, lists, grouping, pagination, save, update and delete).
- Cake request/session methods, mail API, validation API, helpers and `.ctp` layout rendering adapted to Laravel.
- Frontend and admin static assets copied into Laravel `public` paths.
- Razorpay package retained through Composer.
- CCAvenue crypto updated for PHP 7.4 compatibility.
- Original SQL export retained; absent referenced tables added in a separate compatibility SQL file.
- Added controller actions for the four static routes that existed in the original route file but were missing from the original CakePHP controller: Corporate Gifting, Customised Gifting, Cookie Policy and Press.

## Source inconsistencies found

The supplied source itself contains routes/templates for features without corresponding controller actions, including some collection/theme/shape/metal/fabric screens. It also references database tables that were absent from the supplied SQL export. Compatibility tables were added only where the supplied controllers revealed enough fields to do so.

These source gaps cannot be reconstructed with certainty without the missing production code or a current production database. They are isolated from the converted core storefront, cart, customer, checkout and main admin modules.

## Required production checks

- Confirm every database column against the live production schema.
- Rotate all credentials that were present in the original archive.
- Email HTML is now rendered internally rather than making HTTP requests back into the same application; a future cleanup can replace the compatibility mail flow with dedicated Laravel Mailable classes and queues.
- Verify gateway callbacks using sandbox accounts before enabling live mode.
- Add feature tests around checkout totals, stock reduction, coupon handling and order status changes.
