ifnex/04_Laravel/app/Models
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
..
AddressBookEntry.php feat(address-book): implement customer address book system (phase 3.9) 2026-10-31 19:57:01 +03:30
AuditLog.php feat(core): implement order approval flow, credit system, and import invoicing 2026-09-03 06:04:20 +03:30
CommitmentForm.php feat(core): integrate Kavenegar SMS notifications and audit logging 2026-09-10 00:52:18 +03:30
Country.php feat(core): complete phase 3 integration and enhance country/phone features 2026-08-29 04:38:28 +03:30
CountryZone.php feat(api): implement 4-quadrant rate import and pricing model 2026-10-29 07:18:52 +03:30
CreditSettlement.php feat(finance): rate approval + multi-currency credit system (درخواست ۹) 2026-09-30 05:14:31 +03:30
Currency.php refactor(currency): simplify exchange rate logic to use Rial as base 2026-10-29 03:54:02 +03:30
CustomerCredit.php feat(finance): rate approval + multi-currency credit system (درخواست ۹) 2026-09-30 05:14:31 +03:30
DiscountCode.php feat(logic): integrate discount code application and wallet services 2026-08-05 19:16:09 +03:30
DiscountCodeUsage.php refactor(core): harden production environment and fix discount logic 2026-10-31 19:18:58 +03:30
ExchangeRateHistory.php feat(finance): rate approval + multi-currency credit system (درخواست ۹) 2026-09-30 05:14:31 +03:30
ManualInvoice.php feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
Payment.php feat(api): implement payment gateway integration 2026-08-05 23:49:33 +03:30
RateEntry.php refactor(currency): enforce IRR-only across all UIs and storage 2026-10-29 22:31:26 +03:30
Role.php feat(auth): implement role-based access control using spatie/laravel-permission 2026-08-10 02:44:23 +03:30
Shipment.php feat(api): expand shipment data fields and enhance tracking security 2026-10-29 00:51:50 +03:30
ShipmentCarrierMapping.php ✅ ۱۰ مورد کامل شد (دیتابیس، مدل‌ها، API، Filament، Laravel 11، رفع باگ‌ها) 2026-08-04 01:59:08 +03:30
ShipmentChecklist.php feat(shipment): implement checklist templating and automated instantiation 2026-09-30 18:35:25 +03:30
ShipmentChecklistTemplate.php feat(shipment): implement checklist templating and automated instantiation 2026-09-30 18:35:25 +03:30
ShipmentCommitmentForm.php feat(api): implement shipment commitment forms and document downloads 2026-09-09 13:08:22 +03:30
ShipmentItem.php feat(core): integrate Kavenegar SMS notifications and audit logging 2026-09-10 00:52:18 +03:30
ShipmentPackage.php feat(core): integrate Kavenegar SMS notifications and audit logging 2026-09-10 00:52:18 +03:30
ShipmentReview.php feat(api): implement shipment review and resubmission workflow 2026-09-27 01:00:26 +03:30
ShipmentStatusHistory.php feat(core): integrate Kavenegar SMS notifications and audit logging 2026-09-10 00:52:18 +03:30
ShipmentTrackingEvent.php ✅ ۱۰ مورد کامل شد (دیتابیس، مدل‌ها، API، Filament، Laravel 11، رفع باگ‌ها) 2026-08-04 01:59:08 +03:30
ShippingRate.php refactor(api): improve pricing logic and add test coverage 2026-08-07 04:39:14 +03:30
SystemSetting.php ✅ ۱۰ مورد کامل شد (دیتابیس، مدل‌ها، API، Filament، Laravel 11، رفع باگ‌ها) 2026-08-04 01:59:08 +03:30
User.php feat(finance): rate approval + multi-currency credit system (درخواست ۹) 2026-09-30 05:14:31 +03:30
Wallet.php feat(core): integrate Kavenegar SMS notifications and audit logging 2026-09-10 00:52:18 +03:30
WalletActivityLog.php feat(wallet): complete wallet system with admin adjust, freeze/unfreeze, activity logs 2026-08-07 22:51:42 +03:30
WalletTransaction.php feat(core): integrate Kavenegar SMS notifications and audit logging 2026-09-10 00:52:18 +03:30