ifnex/04_Laravel/app/Models
Kazem Alghasi b35e933475 Phase 3.5 — Core Features Complete:
✅ Multi-Package Support (3.5.1)
- Add shipment_packages migration and ShipmentPackage model
- Add packages() relation to Shipment model
- Update CustomerOrderController to accept packages[] array
- Auto-calculate volumetric weight from dimensions (L*W*H/5000)
- Repeater UI for adding/removing packages
- Real-time summary of total weights

✅ Invoice Form for PARCEL (3.5.2)
- New step in order form (only for PARCEL type)
- Customs items: description, HS Code, quantity, unit price (USD)
- Auto-calculate total per item and invoice total
- Maximum 9 items
- 5-step order form structure

✅ PDF Redesign (3.5.4)
- Install picqer/php-barcode-generator
- Redesign AWB with barcode, From/To, Value, Service, Type
- Redesign Invoice with 9-row table, legal declaration
- Redesign Label to A5 landscape with large barcode
- DOC/PARCEL condition (only PARCEL has invoice)
- Barcode as base64 embed

✅ Technical Fixes (3.5.5)
- Add Enum casts to Shipment model (status, direction, type)
- Fix deselectAfterCompletion -> deselectRecordsAfterCompletion
- Migration for shipment_items (row_number, unit_price)
- Migration to make name nullable
- Fix Enum method names (DocNormal/DocEconomy)

✅ Tracking Test (3.5.6)
- Update TrackController with status_label
- Redesign tracking page with beautiful timeline
- Status box with colored badge
- Timeline with date, description, location, source
- Carrier mappings section

Documentation:
- Update README, Laravel_README, Roadmap, Checklist
- Add IFNEX_Meeting_Summary.md for client presentation
- Update IFNEX_I18N_Strategy.md (moved to deploy phase)

Phase 3.5 — 90% complete (i18n moved to deploy phase)"
2026-08-29 08:35:34 +03:30
..
Country.php feat(core): complete phase 3 integration and enhance country/phone features 2026-08-29 04:38:28 +03:30
Currency.php feat(admin): implement currency management and rate import system 2026-08-24 01:18:34 +03:30
DiscountCode.php feat(logic): integrate discount code application and wallet services 2026-08-05 19:16:09 +03:30
ExchangeRateHistory.php refactor(ui): redesign admin dashboard widgets and exchange service 2026-08-10 04:08:29 +03:30
Payment.php feat(api): implement payment gateway integration 2026-08-05 23:49:33 +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 Phase 3.5 — Core Features Complete: 2026-08-29 08:35:34 +03:30
ShipmentCarrierMapping.php ✅ ۱۰ مورد کامل شد (دیتابیس، مدل‌ها، API، Filament، Laravel 11، رفع باگ‌ها) 2026-08-04 01:59:08 +03:30
ShipmentItem.php feat: Complete Phase 1 core logic and WP bridge setup 2026-08-01 04:01:22 +03:30
ShipmentPackage.php - Add shipment_packages migration and ShipmentPackage model 2026-08-29 07:09:25 +03:30
ShipmentStatusHistory.php feat(shipment): implement status history tracking and rate import improvements 2026-08-24 03:40:13 +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(auth): implement role-based access control using spatie/laravel-permission 2026-08-10 02:44:23 +03:30
Wallet.php feat(finance): implement Filament admin panel and expand wallet/discount features 2026-08-08 03:15:51 +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(wallet): complete wallet system with admin adjust, freeze/unfreeze, activity logs 2026-08-07 22:51:42 +03:30