ifnex/04_Laravel/app/Http/Controllers/Api
Kazem Alghasi a4fc807160 feat(address-book): implement customer address book system (phase 3.9)
Introduce a comprehensive address management system allowing users to
save, manage, and reuse sender and receiver addresses during the
ordering process. This feature bridges the WordPress frontend with the
Laravel backend API.

Key changes:
- Backend (Laravel):
  - Added `AddressBookEntry` model and migration for storing addresses
    with role (sender/receiver), usage tracking, and default status.
  - Implemented `AddressBookController` with full CRUD functionality
    secured via Sanctum and ownership validation.
  - Integrated address usage tracking and upsert logic into the
    `CustomerOrderController` to prevent duplicate entries.
  - Added 18 new feature tests covering ownership, limits, and
    validation.
- Frontend (WordPress):
  - Added a new "Address Book" tab in the user dashboard with card-based
    UI, filtering, and SweetAlert2 integration.
  - Enhanced the order form with dropdown selectors for saved addresses
    and "save this address" checkboxes for both sender and receiver.
  - Implemented secure AJAX proxies in `user-bridge.php` with nonce
    and sanitization.
- Documentation:
  - Updated `AGENT.md` and `CLIENT_DELIVERY.md` to reflect phase 3.9
    completion and updated the project roadmap.
  - Removed obsolete `README-INSTALL.md`.
2026-10-31 19:57:01 +03:30
..
Customer feat(address-book): implement customer address book system (phase 3.9) 2026-10-31 19:57:01 +03:30
AddressBookController.php feat(address-book): implement customer address book system (phase 3.9) 2026-10-31 19:57:01 +03:30
AuthController.php feat: Complete customer ordering system (Phase 3) 2026-08-10 06:09:56 +03:30
BridgeAuthController.php feat: Complete customer ordering and payment system (Phases 1-4) 2026-08-10 13:08:52 +03:30
CommitmentFormController.php refactor(core): harden production environment and fix discount logic 2026-10-31 19:18:58 +03:30
CustomerFinancialController.php feat(finance): rate approval + multi-currency credit system (درخواست ۹) 2026-09-30 05:14:31 +03:30
DiscountCodeController.php refactor(api): expose wallet and discount endpoints and cleanup project 2026-08-05 22:46:31 +03:30
MobileVerificationController.php feat(core): implement order approval flow, credit system, and import invoicing 2026-09-03 06:04:20 +03:30
MockGatewayController.php feat(wallet): complete online payment with Zarinpal + mock gateway 2026-08-08 00:46:54 +03:30
PaymentController.php refactor(core): harden production environment and fix discount logic 2026-10-31 19:18:58 +03:30
PricingController.php fix(pricing): restore array-based calculate() and harden pricing API 2026-10-29 14:40:58 +03:30
StaffOrderController.php refactor(api): relocate StaffApiMiddleware and update routes 2026-09-28 17:25:40 +03:30
TrackController.php feat(api): expand shipment data fields and enhance tracking security 2026-10-29 00:51:50 +03:30
WalletController.php feat(finance): implement Filament admin panel and expand wallet/discount features 2026-08-08 03:15:51 +03:30